You are not logged in.

#1 2011-11-20 15:20:45

MilosC
Member
From: Serbia
Registered: 2008-06-04
Posts: 79

USB stick corrupting files

Recently I formatted new 4GB USB stick (no-name, dmesg says Generic Flash Disc) to FAT32 but I couldn't open any file written on it, because all files were corrupted. So I wiped the disc (dd if=/dev/zero of=/dev/sdb) and reformatted it to FAT16, but it's the same. Some PDFs can pass undamaged, but every bigger file, like movie, is corrupted when i try to open it. Is this the hardware problem, or it can be repaired?

Offline

#2 2011-11-20 17:14:28

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: USB stick corrupting files

Are you properly unmounting the stick after copying files to it, before you unplug it? You can also type "sync" in a terminal or change the mount options of your stick to obtain a similar effect (never done that myself but you can find information on the forum.)

Offline

#3 2011-11-20 17:25:59

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: USB stick corrupting files

Sounds like a dead stick...


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2011-11-20 17:30:45

MilosC
Member
From: Serbia
Registered: 2008-06-04
Posts: 79

Re: USB stick corrupting files

stqn wrote:

Are you properly unmounting the stick after copying files to it, before you unplug it? You can also type "sync" in a terminal or change the mount options of your stick to obtain a similar effect (never done that myself but you can find information on the forum.)

Of course I do. Other sticks have no such problems.

Offline

#5 2011-11-21 01:55:23

MilosC
Member
From: Serbia
Registered: 2008-06-04
Posts: 79

Re: USB stick corrupting files

Yeah, I have tried it on Windows, it seems it's dead.

Offline

#6 2011-11-21 07:23:52

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: USB stick corrupting files

You might have some corrupt sectors, you could always try a file system check so those sectors get marked and not written to anymore. If that doesn't work then it's definitely faulty hardware though.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2011-11-21 16:00:19

MilosC
Member
From: Serbia
Registered: 2008-06-04
Posts: 79

Re: USB stick corrupting files

I have tried to repair bad sectors, but there aren't any improvements, I think it's definitely dead. Thanks for help.

Offline

Board footer

Powered by FluxBB