1

Topic: [SOLVED] format usb drive error

My USB drive does not work so i want to format it.

gparted shows my usb drive as following

partition: unallocated     filesystem: unallocated
partition: /dev/sdb1         filesystem: unknown


When I try to format "/dev/sdb1" i am getting an error:

What should I do?

Error detail:

GParted 0.7.0 --enable-libparted-dmraid

Libparted 2.3
Format /dev/sdb1 as fat32  00:00:00    ( ERROR )
        
calibrate /dev/sdb1  00:00:00    ( SUCCESS )
        
path: /dev/sdb1
start: 8192
end: 7843839
size: 7835648 (3.74 GiB)
set partition type on /dev/sdb1  00:00:00    ( ERROR )
libparted messages    ( INFO )
        
Error fsyncing/closing /dev/sdb: Input/output error
Input/output error during write on /dev/sdb
Error fsyncing/closing /dev/sdb: Input/output error

2

Re: [SOLVED] format usb drive error

You might look at the output for the dmesg command to see if there are any hardware errors occurring.

You might also try the latest GParted Live image (currently 0.8.1-3).

3

Re: [SOLVED] format usb drive error

gedakc wrote:

You might look at the output for the dmesg command to see if there are any hardware errors occurring.

You might also try the latest GParted Live image (currently 0.8.1-3).


dmesg | grep -i usb   command gave me following result. I think there is no hardware error.

[    0.314284] usbcore: registered new interface driver usbfs
[    0.314305] usbcore: registered new interface driver hub
[    0.314346] usbcore: registered new device driver usb
[    0.840676] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.840782] ehci_hcd 0000:00:13.5: new USB bus registered, assigned bus number 1
[    0.840848] ehci_hcd 0000:00:13.5: applying AMD SB600/SB700 USB freeze workaround
[    0.852028] ehci_hcd 0000:00:13.5: USB 2.0 started, EHCI 1.00
[    0.852204] hub 1-0:1.0: USB hub found
[    0.852355] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.852452] ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2
[    0.908180] hub 2-0:1.0: USB hub found
[    0.908372] ohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3
[    0.968196] hub 3-0:1.0: USB hub found
[    0.968381] ohci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 4
[    1.024188] hub 4-0:1.0: USB hub found
[    1.024363] ohci_hcd 0000:00:13.3: new USB bus registered, assigned bus number 5
[    1.080198] hub 5-0:1.0: USB hub found
[    1.080373] ohci_hcd 0000:00:13.4: new USB bus registered, assigned bus number 6
[    1.136179] hub 6-0:1.0: USB hub found
[    1.136292] uhci_hcd: USB Universal Host Controller Interface driver
[   91.564082] usb 1-1: new high speed USB device using ehci_hcd and address 2
[   91.887683] usbcore: registered new interface driver uas
[   91.907543] Initializing USB Mass Storage driver...
[   91.907709] scsi6 : usb-storage 1-1:1.0
[   91.907858] usbcore: registered new interface driver usb-storage
[   91.907861] USB Mass Storage support registered.

4

Re: [SOLVED] format usb drive error

Since you were trying to format /dev/sdb1, it would be good to check for errors on this device since this is the device name that experienced the input/output error.

5

Re: [SOLVED] format usb drive error

Read test was successful hoverer write failed !

00:00:18.89 - ! Write fatal (3/3) error at LBN = 7680 -- The request could not be performed because of an I/O device error. (1117.)
00:00:18.93 - ! Write fatal (3/3) error at LBN = 7808 -- The request could not be performed because of an I/O device error. (1117.)
00:00:18.97 - ! Write fatal (3/3) error at LBN = 7936 -- The request could not be performed because of an I/O device error. (1117.)
00:00:19.00 - ! Write fatal (3/3) error at LBN = 8064 -- The request could not be performed because of an I/O device error. (1117.)

My device was write protected but "JetFlash" recovery tool helped me. Thank You gedakc for your help

6

Re: [SOLVED] format usb drive error

'Glad to hear that you were able to resolve the problem.   smile

To help others with searches for answers, you can edit your initial post and prefix SOLVED in front of the title.

7

Re: [SOLVED] format usb drive error

(I mark the thread 'SOLVED' and transfer it to the Live media section)

*** It is highly recommended to backup any important files before doing resize/move operations. ***