LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 10-26-2004, 01:11 PM   #1
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
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.....
 
Old 10-26-2004, 02:00 PM   #2
michael_j_w
LQ Newbie
 
Registered: Oct 2004
Location: Portland, OR USA
Distribution: mandrake 9.2/fc2
Posts: 13

Rep: Reputation: 0
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.
 
Old 10-26-2004, 09:01 PM   #3
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
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.
 
Old 10-26-2004, 11:34 PM   #4
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
It is possible that the USB drive is physically defective.
 
Old 12-03-2004, 08:03 AM   #5
jimk
LQ Newbie
 
Registered: May 2004
Location: Tennessee, USA
Posts: 19

Rep: Reputation: 0
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.
 
Old 12-07-2004, 12:58 PM   #6
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
Sure, I lost 50% of my USB ram-drive on Mandrake.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 1 07-15-2005 03:12 AM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 07:36 PM
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 6 05-27-2004 12:49 PM
Corrupt Hard Drive?? Memzback Linux - Newbie 2 04-12-2004 06:59 PM
Large Files become Corrupt when copied to cd or usbpen drive shepper Linux - Hardware 4 11-08-2003 11:20 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration