LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   messed up my usb disk (http://www.linuxquestions.org/questions/linux-hardware-18/messed-up-my-usb-disk-639608/)

PlancksCnst 05-03-2008 10:41 AM

messed up my usb disk
 
So I have a flash disk which I attempted to mount via:
Code:

mount -t ext3 /dev/sdc1 /media/usbdrive/
I guess I did that by habit. The problem is the disk was actually formatted as fat32.

Now I can't do anything with it. It won't mount. I cant fsck; fdisk doesn't work on it. Does anyone have any ideas? I thought maybe there was a way to write blocks directly to the device without mounting it.

MensaWater 05-03-2008 10:47 AM

Did you verify it didn't actually mount? Your issue may simply be it is "busy" because it thinks it IS mounted. Try a umount on it.

If the device appears in your /dev list then you should be able to write to it using the dd command though I'm not quite sure what kind of blocks you want to write to it.u

PlancksCnst 05-04-2008 07:39 AM

Thanks for the quick response, jlightner.

I did some experimenting, and it had several different behaviors. Usually the first time after boot, it would automount and I could do some stuff (such as reading or writing files) for a very limited time, then the device would dissapear. It's not just not mounted anymore: it's not in /dev/. If I unplug it and plug it back in, it doesn't show up again until I reboot. When working in recovery mode, it's the same behavior (except for the automounting - I mount it manually), and I get messages that are something like "Assuming write through" and "Logic error block N".

I think what I will try next is to reformat a good usb stick, then reboot and dd the good stick onto the bad stick.


All times are GMT -5. The time now is 06:09 PM.