LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2006, 06:06 AM   #1
today53
Member
 
Registered: Oct 2003
Location: sydney
Posts: 70

Rep: Reputation: 15
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
 
Old 06-21-2006, 06:33 AM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
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.
 
  


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
formatting 2nd HD to FAT sploke Mandriva 2 03-23-2006 02:38 PM
Unable to mount FAT Filesystem Sader Linux - General 2 03-01-2006 08:46 AM
Formatting NTFS Filesystem Bi0mic Linux - General 5 08-05-2005 07:02 AM
Use of FAT filesystem pwardy Linux - Software 5 01-31-2005 02:57 PM
Need help from a FileSystem Expert (for SDcard FAT) theYinYeti Linux - Hardware 4 10-04-2004 05:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration