LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Could Linux corrupt usb drive??? (http://www.linuxquestions.org/questions/linux-hardware-18/could-linux-corrupt-usb-drive-247528/)

melinda_sayang 10-26-2004 12:11 PM

Could Linux corrupt usb drive???
 
Hi,

I just bought usb flash drive Samsung. The first time I use the things is in Linux. I mount it, copy the data, then umount it. Bring to friends house. Try to access. My friend use Windows. It asked the usb flash drive to be formatted. Ok... damn it. We formatted it. Then we copy the data from friends hd to usb. Then I bring it home. When I try to access from Windows in home, some data could not be read. Input output error. The thing is gonna be more crazy. After couple days, when I plug the usb into Windows machine, it detected perfectly. But we cannot access it. Even just explore it.

My usb flash drive is corrupted. I just wonder could Linux cause this ( kernel 2.6 )..... I heard Mandrake installer ( in past months ) could corrupted cdrom.... before.....

michael_j_w 10-26-2004 01:00 PM

I suppose it is possible, maybe, for linux to corrupt the drive, maybe. as far as the issue with mandrake and cd-rom drives mandrake was using an i/o command that for SOME drives overwrote the firmware, as far as i know this has not happened with thumbdrives. I am of course infering from "usb flash drive" you are using a thumbdrive.

To fix your thumbdrive all you have to do is insert it, if it auto mounts issue command

$ umount /dev/sda

after umount or if you don't need to unmount the drive than proceed

$ fdisk /dev/sda

follow the on screen help section to create a empty file table then create a new partition, not an extended one, then write table to drive. now you want to format the partition. if you will be loading files, or viewing them, from a windoze box you will want to use some type of "fat" format

$ mkfs -t vfat /dev/sda

if you want to use a different fs (file system) type the following command and chose one

$ man mkfs

The reason the you are having to do all of this is because many thumbdrives are shipped with file tables that are screwed to you know where. windoze does not have a issue with this but *nix does. so by following the above instructions you will create a valid file table that everybody will be happy with.


PS
Please do not be offended if i have given dumbed down instructions--you may know what you're doing but someone at some time will search for this issue and they might not know as much.

melinda_sayang 10-26-2004 08:01 PM

You know sometimes, in Linux, /dev/sda is missing.... so I cann't umount it, I cann't copy the data......

What do you think? Thank for your tip.

MS3FGX 10-26-2004 10:34 PM

It is possible that the USB drive is physically defective.

jimk 12-03-2004 07:03 AM

I know this thread's kind of old, but maybe somebody will see it.

My camera uses a smart media card, and I have had several go bad after reading them in Linux through a Dazzle USB media reader. Took me about 4 messed up cards to figure out that Linux was the culprit. It seems worse with Suse 9.1. Maybe it's t he 2.6 kernel.

Anyway, I'm never exposing my smart media cards to Linux again.

Thulemanden 12-07-2004 11:58 AM

Sure, I lost 50% of my USB ram-drive on Mandrake.


All times are GMT -5. The time now is 01:28 AM.