LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-02-2006, 07:34 PM   #1
royeo
Member
 
Registered: Jun 2006
Posts: 150

Rep: Reputation: 15
How do you format a partition fat32 (vfat)


I have FC-5 and use KDE.

I bought Partition Magic just so I could format a partition fat32. It works, both Linux and Windows can read and write to it (for a while). But over time I have actually lost a lot of files and it finally came to pass that Linux couldn't even write to it. Can somebody tell me how to format it fat32 in Linux. I'm willing to not have Windows access.

Thanks,

royeo

Last edited by royeo; 09-02-2006 at 08:06 PM.
 
Old 09-02-2006, 07:45 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Quote:
Originally Posted by royeo
I bought Partition Magic just so I could format a partition fat32. It works, both Linux and Windows can read and write to it (for a while). But over time I have actually lost a lot of files and it finally came to pass that Linux couldn't even write to it. Can somebody tell me how to format it fat32 in Linux. I'm willing to not have Windows access.

Thanks,

royeo
Hi,
Linux can absolutely make a fat32 partition. I've made fat32 partition numerous times. Here's a short rundown:

see
Code:
man mkdosfs
Code:
mkdosfs -c -F 32 -v /dev/<disk><partition>
change disk and partition according to your setup.

Interesting thing is that windows doesn't allow you to create more than 32 GB of fat32 partition (i.e. using windows partition tool...not something like partition magic) while Linux will do it for you.

Tux,

Last edited by tuxrules; 09-02-2006 at 07:49 PM.
 
Old 09-02-2006, 07:48 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960
In a terminal:

"mkdosfs -F32 /dev/hdb1"

..substituting your partition device, of course.
"man mkdosfs" for more options.

Edit: Aargh. Beaten to it.

Last edited by David the H.; 09-02-2006 at 07:51 PM.
 
Old 09-06-2006, 09:07 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 780
Blog Entries: 6

Rep: Reputation: 75
i use mkfs.vfat

/dev/hdc1 111G 93G 12G 89% /export/NFS

root@noc:/home/rou# /sbin/fdisk -l /dev/hdc

Disk /dev/hdc: 120.0 GB, 120000000000 bytes
255 heads, 63 sectors/track, 14589 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 14589 117186111 c W95 FAT32 (LBA)

... uh !! did i lost 9G?
 
Old 09-06-2006, 10:58 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960
mkfs.vfat is an alias for "mkdosfs -F32". It's just another way to type it, providing consistency with the mkfs command. Similarly there's mkfs.msdos, which is just an alias for the default fat12/fat16 mkdosfs option.

Try typing "man mkfs.vfat" and see what it gets you.
 
  


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
How to format to FAT32, and how to mount my FAT32 partition. bonniehandi Linux - Newbie 16 03-05-2006 07:54 PM
vfat or fat32 for shared partition? daTerminehtor Linux - Newbie 11 01-12-2006 06:13 PM
Format Fat32 partition IndigoBlu Linux - General 7 12-31-2005 10:02 AM
Partition Problem !! (cannot format vfat over 2048 MB) namgor Linux - Software 6 06-29-2004 12:37 PM
Format a vfat partition with Linux... possible? lazlow69 Linux - Newbie 2 03-03-2004 11:50 PM

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

All times are GMT -5. The time now is 02:24 AM.

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