kanotix.com

Hardware - Formatting a USB stick?

cartesienne - 27.08.2006, 15:39 Uhr
Titel: Formatting a USB stick?
Something went wrong with my USB stick (1G Kingston Data Traveler), I can't delete files from it and it say it has a read-only file system. Is it possible to re-format it under Linux? If so, how do I do it?
ockham23 - 27.08.2006, 17:10 Uhr
Titel: RE: Formatting a USB stick?
First type
Code:
su
fdisk -l
to obtain partition information, e.g. sda1. Then try
Code:
mkdosfs -F32 /dev/sda1

Swynndla - 27.08.2006, 23:53 Uhr
Titel: RE: Formatting a USB stick?
Once I stuffed up my usb stick so bad, it wouldn't mount, and trying to format /dev/sda1 didn't work either (just produces a lot of errors). I had to do "cat /dev/zero >/dev/sda1" and start again ... that seemed to fix it, although I'm not sure if that was the right way of doing it.
cartesienne - 28.08.2006, 10:54 Uhr
Titel:
Thanks!
I did what ockham23 and the device now works again!

Except, now it seems the mounting dialog in KDE takes forever to disappear, only after I move some files in or out of the drive's window. Hope it's okay.
ockham23 - 28.08.2006, 11:04 Uhr
Titel:
Please post /etc/fstab without the stick attached, and /etc/fstab and /etc/mtab with the stick attached.
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007