Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Corrupt Flash Drive

  Date: Jan 08    Category: Unix / Linux / Ubuntu    Views: 364
  

I've managed to create myself a major problem - I have a 8Gb EMTech
(BASF) USB flash disk (new toy - just bought it) which I was using to
transfer files from one PC (running Kubuntu 7.04) to another (Win98SE,
I'm afraid) ... sadly, they're not networked, and whilst transferring the
files from the source machine, I managed to terminate the file copy
process somewhat uncleanly, resulting in a somewhat corrupted flash
disk - lots of weird files and directories with implausible names and such.
I've tried fsck-ing it (it's always worked when I've had similarly corrupted
disks under SunOS, Solaris and HP-UX in the past), but to no avail. I also
cannot manage to simply delete the files/directories by hand either.

Basically, I'm at a loss as to where to go from here in order to recover
my flash disk (not bothered about the files, just the disk).

Any ideas?

Share: 

 

5 Answers Found

 
Answer #1    Answered On: Jan 08    

It certainly sounds like you scrambled the Super-block to that drive. It
sounds like it got unplugged at the worst possible moment. If you still have
the files on the source machine I'd just format the USB stick and start over.

 
Answer #2    Answered On: Jan 08    

I'd try fdisk on it (on the Linux machine) and delete the partition(s)
on the flash drive, then recreate it/them. I'd probably do the
formatting of the file system on the Windows machine, as I've (on rare
occasions) had flash drives that I've formatted on Linux machines not
work quite right on Windows machines.

 
Answer #3    Answered On: Jan 08    


They are usually formatted in FAT 32 from the vendors. At least the ones that
I own are and from other reading on the web that seems to be the consences.
Later....

 
Answer #4    Answered On: Jan 08    


I'm not quit sure what the point of you post is, in light of my trying
to help Graeme get his to work again. I didn't ask what file system
was used on factory formatted flash drive after all...

More info on what I have recently done with flash drives, for those
who are interested:

The first thing I did when I got my 2G Lexar was to delete the factory
partition, create two new ones, format one for Windows, and format the
other ext3 for Linux. Works great.

I think I did the Windows formatting under Linux with mkfs.vfat, but I
can't remember. I formated a little 128M generic flash drive that way
the other night, and I could use it on one Windows machine, but my
wife's laptop couldn't see it, and I had to reformat it on her
machine, then they both could see it. I remember this happening at
work some years back as well. Works on some machines, not others.
Every other time I can think of that I've formatted a Windows
partition with Linux, it has worked out.

 
Answer #5    Answered On: Jan 08    


I can get away with simply reformatting the thing can I? I was unsure
about this - my knowledge of these new-fangled USB thingies is
somewhat limited ... I was concerned that I might do more damage
than I've already done by doing this.

 
Didn't find what you were looking for? Find more on Corrupt Flash Drive Or get search suggestion and latest updates.




Tagged: