Switch to full style
CompactFlash, SD, MMC, USB flash storage. Anything that does not have moving parts inside.
Post a reply

Must I say Goodbye to this PenDrive?

August 27th, 2016, 2:16

Hello.
I have a Flash drive with below information :
Code:
Bus 003 Device 004: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) 64MB QDI U2 DISK


I did below commands on Linux and you can see their result :
Code:
sudo mkfs.ext2 /dev/sdc
mke2fs 1.42.5 (29-Jul-2012)
/dev/sdc is entire device, not just one partition!
Proceed anyway? (y,n) y
/dev/sdc: Read-only file system while setting up superblock


Code:
sudo fsck -fy /dev/sdc
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
fsck.ext2: Read-only file system while trying to open /dev/sdc
Disk write-protected; use the -n option to do a read-only
check of the device.


Code:
sudo hdparm -r0 /dev/sdc

/dev/sdc:
setting readonly to 0 (off)
readonly      =  0 (off)


Code:
sudo dumpe2fs /dev/sdc
dumpe2fs 1.42.5 (29-Jul-2012)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sdc
Couldn't find valid filesystem superblock.


How can I fix it?

Re: Must I say Goodbye to this PenDrive?

August 27th, 2016, 13:37

If you were formatting it, there isn´t data in it that you need to keep, right ?

Then, can you try

*** CAUTION -> MAKE SURE YOUR USB DRIVE IS REALLY /DEV/SDC ***

sudo dd if=/dev/zero of=/dev/sdc

and post the result here ?

Re: Must I say Goodbye to this PenDrive?

August 27th, 2016, 17:06

What capacity is reported by the device?

Doesn't the "read-only" error suggest that the flash drive has run out of spare blocks?

I believe the following command should attempt to read sector 0:

    sudo dd count=1 bs=512 if=/dev/sdc of=sector0.bin

Re: Must I say Goodbye to this PenDrive?

August 28th, 2016, 2:29

rogfanther wrote:If you were formatting it, there isn´t data in it that you need to keep, right ?

Then, can you try

*** CAUTION -> MAKE SURE YOUR USB DRIVE IS REALLY /DEV/SDC ***

sudo dd if=/dev/zero of=/dev/sdc

and post the result here ?


dd: opening `/dev/sdc': Read-only file system
Post a reply