Choose style:

Author Topic: USB-drive not seen in GParted and not able to format  (Read 8729 times)

0 Members and 1 Guest are viewing this topic.

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
USB-drive not seen in GParted and not able to format
« on: October 19, 2015, 06:35:28 am »
Hi all,


I wanted to install Peppermint OS 6 to an USB-stick, but now the drive, 64 GB is not seen, recognized any longer in GParted. This is what I did:
  • Open the USB-drive in GParted
  • Format the whole drive as ext4
  • Decrease the ext4-partition with 8 GB
  • Format the empty 8 GB space with swap
  • After this: no longer seen by GParted
  • Still seen in Drives: only options are changing mount options and turning off.
Facts:
  • Name drive: Generic USB Flash Disk (7.76)
  • Name device: /dev/sdb
  • Serial number: Generic_USB_Flash_Disk-0:0
  • No media
  • No size
Listing of lsusb (first without the meant USB-drive, second with it):
Code: [Select]
paul@paul-ESPRIMO-P3521 ~ $ lsusb
Bus 001 Device 003: ID 04a9:1909 Canon, Inc. CanoScan LiDE 110
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 04e8:3292 Samsung Electronics Co., Ltd ML-1640 Series Laser Printer
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
paul@paul-ESPRIMO-P3521 ~ $ lsusb
Bus 001 Device 005: ID 058f:1234 Alcor Micro Corp. Flash Drive
Bus 001 Device 003: ID 04a9:1909 Canon, Inc. CanoScan LiDE 110
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 04e8:3292 Samsung Electronics Co., Ltd ML-1640 Series Laser Printer
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
paul@paul-ESPRIMO-P3521 ~ $

So the drive is the first one in the listing:
Code: [Select]
Bus 001 Device 005: ID 058f:1234 Alcor Micro Corp. Flash Drive

So my questions are:
  • What to do to reach my USB-drive again, in order to reformat it?
  • If this succeeds: how to format it, in order to be able to install Peppermint OS 6 to it, without to fall into this trap again?
Thanks for helping!

paulus
« Last Edit: October 19, 2015, 07:42:52 am by paulus »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26328
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: USB-drive not seen in GParted and not able to format
« Reply #1 on: October 19, 2015, 03:31:52 pm »
Boot a Peppermint 6 LiveUSB, then use the
menu > System Tools > USB Stick Formatter
or "Disks" utility to format the USB stick.

then don't pre partition the USB stick .. let the installer do that during the Peppermint installation.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: USB-drive not seen in GParted and not able to format
« Reply #2 on: October 19, 2015, 04:31:54 pm »
Hi PCNetSpec,

Thanks for helping!

It didn't work out: that matches with the fact that the USB-stick cannot be seen in GParted: it is much more grave than you think it is. The disk must be approached from the deepest level possible. The problem is: I don't know how to do that!

Thank you for the answer on the second question: if/when the drive has been revived again, I should do nothing with it for preperation, but let the Peppermint Installer do the work! :P

So again: how to approach the USB-drive at the deepest level possible in Peppermint OS, or Ubuntu, or even Windows, if there should no way to do it in Linux? >:(

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: USB-drive not seen in GParted and not able to format
« Reply #3 on: October 19, 2015, 04:55:45 pm »
Hi paulus, you could try wiping the MBR with dd and fill it with zeros.  You could then then create a new msdos partition table in GParted or fdisk.  It's brutal and it will have catastrophic consequences if you accidentally apply it to the wrong drive.  My advice is to wait to see if there's another way that's more forgiving.  We can always come back to this if no one has a better plan  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: USB-drive not seen in GParted and not able to format
« Reply #4 on: October 19, 2015, 05:01:52 pm »
Hi AndyInMokum,

Thank you for helping as well!

I'm afraid that is the only way to be able to revive the USB-drive.
How could I do that? How could I ever do something with a drive that is not approachable in any way? :-\


What do you mean by dd?
« Last Edit: October 19, 2015, 05:06:09 pm by paulus »

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: USB-drive not seen in GParted and not able to format
« Reply #5 on: October 19, 2015, 05:05:20 pm »
Hi paulus, with the usb drive plugged in.  What's the output from:
Code: [Select]
sudo fdisk -l
« Last Edit: October 19, 2015, 05:08:00 pm by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: USB-drive not seen in GParted and not able to format
« Reply #6 on: October 19, 2015, 05:14:29 pm »
Output of fdisk -l:
Code: [Select]
paul@paul-ESPRIMO-P3521 ~ $ sudo fdisk -l
[sudo] password for paul:


Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 koppen, 63 sectoren/spoor, 30401 cilinders, totaal 488397168 sectoren
Eenheid = sectoren van 1 * 512 = 512 bytes
Sectorgrootte (logischl/fysiek): 512 bytes / 512 bytes
in-/uitvoergrootte (minimaal/optimaal): 512 bytes / 512 bytes
Schijf-ID: 0x000a9663


 Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
/dev/sda1   *        2048    81344069    40671011   83  Linux
/dev/sda2        81344510   488396799   203526145    5  uitgebreid
/dev/sda5       471885824   488396799     8255488   82  Linux wisselgeheugen
/dev/sda6        81344512   471885823   195270656   83  Linux


Partitietabel-items liggen niet in schijfvolgorde.
paul@paul-ESPRIMO-P3521 ~ $


Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: USB-drive not seen in GParted and not able to format
« Reply #7 on: October 19, 2015, 05:23:30 pm »
Output of fdisk -l:
Code: [Select]
paul@paul-ESPRIMO-P3521 ~ $ sudo fdisk -l
[sudo] password for paul:


Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 koppen, 63 sectoren/spoor, 30401 cilinders, totaal 488397168 sectoren
Eenheid = sectoren van 1 * 512 = 512 bytes
Sectorgrootte (logischl/fysiek): 512 bytes / 512 bytes
in-/uitvoergrootte (minimaal/optimaal): 512 bytes / 512 bytes
Schijf-ID: 0x000a9663


 Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
/dev/sda1   *        2048    81344069    40671011   83  Linux
/dev/sda2        81344510   488396799   203526145    5  uitgebreid
/dev/sda5       471885824   488396799     8255488   82  Linux wisselgeheugen
/dev/sda6        81344512   471885823   195270656   83  Linux


Partitietabel-items liggen niet in schijfvolgorde.
paul@paul-ESPRIMO-P3521 ~ $

I see what you mean.  The drive isn't being recognised at all  :-\.  That's my idea out of the window.  I think you'll have to wait for PCNetSpec to give you his verdict.  I really hope you get it resolved - good luck neighbour  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: USB-drive not seen in GParted and not able to format
« Reply #8 on: October 19, 2015, 05:30:31 pm »
I will wait for PCNetSpec.


But what did you mean by dd? Is it a kind of program? Or could even "dd" do nothing, as the drive isn't recognized in any way? :'( :o


Great to meet you here again, neighbor! :)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26328
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: USB-drive not seen in GParted and not able to format
« Reply #9 on: October 19, 2015, 05:43:12 pm »
Boot to Linux

once you're at the desktop insert the USB stick, then post the output from:
Code: [Select]
dmesg | tail -n 40

if you booted with the USB already inserted, unplug the USB stick, wait 10 seconds, reinsert the USB stick, THEN run:
Code: [Select]
dmesg | tail -n 40
and post the output
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: USB-drive not seen in GParted and not able to format
« Reply #10 on: October 19, 2015, 05:55:02 pm »
Output:
[/code]
Code: [Select]
[font=verdana][size=0.7em]peppermint@peppermint ~ $ dmesg | tail -n 40[/size][/font]
[font=verdana][size=0.7em][   62.304068] device-mapper: multipath: version 1.7.0 loaded[/size][/font]
[font=verdana][size=0.7em][   62.925890] usblp 2-1:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04E8 pid 0x3292[/size][/font]
[font=verdana][size=0.7em][   62.925951] usbcore: registered new interface driver usblp[/size][/font]
[font=verdana][size=0.7em][   64.175827] gpio_ich: GPIO from 206 to 255 on gpio_ich[/size][/font]
[font=verdana][size=0.7em][   64.246670] snd_hda_intel 0000:00:1b.0: irq 45 for MSI/MSI-X[/size][/font]
[font=verdana][size=0.7em][   65.737486] sound hdaudioC0D2: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line[/size][/font]
[font=verdana][size=0.7em][   65.737490] sound hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)[/size][/font]
[font=verdana][size=0.7em][   65.737492] sound hdaudioC0D2:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)[/size][/font]
[font=verdana][size=0.7em][   65.737493] sound hdaudioC0D2:    mono: mono_out=0x0[/size][/font]
[font=verdana][size=0.7em][   65.737495] sound hdaudioC0D2:    inputs:[/size][/font]
[font=verdana][size=0.7em][   65.737497] sound hdaudioC0D2:      Front Mic=0x19[/size][/font]
[font=verdana][size=0.7em][   65.737499] sound hdaudioC0D2:      Rear Mic=0x18[/size][/font]
[font=verdana][size=0.7em][   65.737501] sound hdaudioC0D2:      Line=0x1a[/size][/font]
[font=verdana][size=0.7em][   65.785262] input: HDA Intel HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input5[/size][/font]
[font=verdana][size=0.7em][   65.785328] input: HDA Intel Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6[/size][/font]
[font=verdana][size=0.7em][   65.785390] input: HDA Intel Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7[/size][/font]
[font=verdana][size=0.7em][   65.785452] input: HDA Intel Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8[/size][/font]
[font=verdana][size=0.7em][   65.785515] input: HDA Intel Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9[/size][/font]
[font=verdana][size=0.7em][   65.785578] input: HDA Intel Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10[/size][/font]
[font=verdana][size=0.7em][   65.837550] init: failsafe main process (1243) killed by TERM signal[/size][/font]
[font=verdana][size=0.7em][   76.377305] r8169 0000:03:00.0 eth0: link down[/size][/font]
[font=verdana][size=0.7em][   76.377316] r8169 0000:03:00.0 eth0: link down[/size][/font]
[font=verdana][size=0.7em][   76.377348] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready[/size][/font]
[font=verdana][size=0.7em][   78.099643] r8169 0000:03:00.0 eth0: link up[/size][/font]
[font=verdana][size=0.7em][   78.099653] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready[/size][/font]
[font=verdana][size=0.7em][   79.081963] init: alsa-restore main process (1656) terminated with status 99[/size][/font]
[font=verdana][size=0.7em][   87.404869] init: plymouth-upstart-bridge main process ended, respawning[/size][/font]
[font=verdana][size=0.7em][   87.410326] init: plymouth-upstart-bridge main process ended, respawning[/size][/font]
[font=verdana][size=0.7em][  235.180044] usb 1-5: new high-speed USB device number 4 using ehci-pci[/size][/font]
[font=verdana][size=0.7em][  235.781693] usb 1-5: New USB device found, idVendor=058f, idProduct=1234[/size][/font]
[font=verdana][size=0.7em][  235.781699] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0[/size][/font]
[font=verdana][size=0.7em][  235.781702] usb 1-5: Product: Mass Storage Device[/size][/font]
[font=verdana][size=0.7em][  235.781706] usb 1-5: Manufacturer: Alcor Micro[/size][/font]
[font=verdana][size=0.7em][  237.543084] usb-storage 1-5:1.0: USB Mass Storage device detected[/size][/font]
[font=verdana][size=0.7em][  237.543399] scsi2 : usb-storage 1-5:1.0[/size][/font]
[font=verdana][size=0.7em][  237.543484] usbcore: registered new interface driver usb-storage[/size][/font]
[font=verdana][size=0.7em][  237.617597] usbcore: registered new interface driver uas[/size][/font]
[font=verdana][size=0.7em][  238.540838] scsi 2:0:0:0: Direct-Access     Generic  USB Flash Disk   7.76 PQ: 0 ANSI: 4[/size][/font]
[font=verdana][size=0.7em][  238.541225] sd 2:0:0:0: Attached scsi generic sg2 type 0[/size][/font]
[font=verdana][size=0.7em][  238.549545] sd 2:0:0:0: [sdb] Attached SCSI removable disk[/size][/font]
[font=verdana][size=0.7em]peppermint@peppermint ~ $ [/size][/font]


Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: USB-drive not seen in GParted and not able to format
« Reply #11 on: October 19, 2015, 05:55:38 pm »
I will wait for PCNetSpec.


But what did you mean by dd? Is it a kind of program? Or could even "dd" do nothing, as the drive isn't recognized in any way? :'( :o


Great to meet you here again, neighbor! :)
This may help you understand the dd utility: https://nl.wikipedia.org/wiki/Dd_(Unix).  I say the dd stands for Data  Destroyer because it's really brutal if you get it wrong.  It works when used correctly though.  Unfortunately, you need to be able to see the drive to use it.

English Wikipedia: https://en.wikipedia.org/wiki/Dd_(Unix).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: USB-drive not seen in GParted and not able to format
« Reply #12 on: October 19, 2015, 05:58:20 pm »
I will wait for PCNetSpec.


But what did you mean by dd? Is it a kind of program? Or could even "dd" do nothing, as the drive isn't recognized in any way? :'( :o


Great to meet you here again, neighbor! :)
This may help you understand the dd utility: https://nl.wikipedia.org/wiki/Dd_(Unix).  I say the dd stands for Data  Destroyer because it's really brutal if you get it wrong.  It works when used correctly though.  Unfortunately, you need to be able to see the drive to use it.

English Wikipedia: https://en.wikipedia.org/wiki/Dd_(Unix).


Thank you very much, AnyInMokum!


For the moment I will follow the instructions of PCNetSpec.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: USB-drive not seen in GParted and not able to format
« Reply #13 on: October 19, 2015, 06:09:14 pm »
Quote
...For the moment I will follow the instructions of PCNetSpec:- paulus
A very wise idea  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26328
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: USB-drive not seen in GParted and not able to format
« Reply #14 on: October 19, 2015, 06:13:37 pm »
Quote
[  238.549545] sd 2:0:0:0: [sdb] Attached SCSI removable disk

suggests it's being given a device node /dev/sdb

First make 100% sure sdb isn't your hard drive or any other drive you don't want wiped

Then what happens if you run:
Code: [Select]
sudo fdisk /dev/sdb
then hit then
o
then
w
key to create a new empty DOS partition table, then write a new partition table.

then see if gparted /disks / USB formatter will see the drive



Or to COMPLETELY erase /dev/sdb
Code: [Select]
sudo dd if=/dev/zero of=/dev/sdb bs=1M
then see if gparted /disks / USB formatter will see the drive
« Last Edit: October 19, 2015, 06:22:22 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec