All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Must I say Goodbye to this PenDrive?
PostPosted: August 27th, 2016, 2:16 
Offline

Joined: September 24th, 2014, 15:11
Posts: 107
Location: on the space
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?


Top
 Profile  
 
 Post subject: Re: Must I say Goodbye to this PenDrive?
PostPosted: August 27th, 2016, 13:37 
Offline

Joined: October 16th, 2013, 13:21
Posts: 232
Location: Brazil
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 ?


Top
 Profile  
 
 Post subject: Re: Must I say Goodbye to this PenDrive?
PostPosted: August 27th, 2016, 17:06 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 9786
Location: Australia
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

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: Must I say Goodbye to this PenDrive?
PostPosted: August 28th, 2016, 2:29 
Offline

Joined: September 24th, 2014, 15:11
Posts: 107
Location: on the space
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group