LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   formatting USB to FAT filesystem (https://www.linuxquestions.org/questions/linux-newbie-8/formatting-usb-to-fat-filesystem-456870/)

today53 06-21-2006 05:06 AM

formatting USB to FAT filesystem
 
Hello all,

I have been doing a lot of searching, trying to find out how to format a MP3 player/flashdrive to a FAT filesystem.

My MP3 player/flashdrive uses the FAT filesystem. Lately, it has not been working properly. I was thinking may be formatting it would solve the problem.

I am currently using Ubuntu Live. Anyone know how?

cheers

bernied 06-21-2006 05:33 AM

I have done this but my memory is poor on details. I would look in these directions:
fdisk
and
mkfs.fat
Use fdisk to check the 'geometry' of the usb drive, perhaps delete the existing 'partition' and create a new one.
Use mkfs.fat to 'format' - put a fresh filesystem on it. There may be options to do a thorough format. And I would look for ways to find bad 'sectors' and isolate them, though I don't know how possible/difficult this is.

You will need to know what device your flash drive is. If Ubuntu has been automatically detecting this and mouting it for you, try:
Code:

$mount
when it is inserted and you can read/write to it.
One of the entries on that list will be your drive (look for a /dev/xxxx where x might be sda1 or hdb1), and that's the one you use in the fdisk and mkfs.fat commands. Make sure you get this right - else you may end up formatting your hard-drive - that might give you a bad day. (take it out and try the mount command again, it should be missing)

Also make sure you:
Code:

umount /dev/xxxx
before you do any of this stuff, and make sure it really is unmounted with the mount command again.

Apparently these flash drives don't survive as many write cycles as hard disks, so we are warned that one day (soon) they will die if we keep changing what is on them. Apparently reading from them doesn't cause as much damage.


All times are GMT -5. The time now is 12:05 PM.