Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-03-2006, 02:16 AM   #1
Registered: Jun 2006
Posts: 150

Rep: Reputation: 15
Trying to format fat32

I want to format a partition fat32 and I don't care if Windows can read it. I tried the "mkdosfs" command but it doesn't work for me:

[royeo@localhost ~]$ su
[root@localhost royeo]# mkdosfs -c -F 32 -v /dev/sda2
bash: mkdosfs: command not found
[root@localhost royeo]# mkdosfs -c -F32 -v /dev/sda2
\bash: mkdosfs: command not found
[root@localhost royeo]#

I have no idea why it isn't working. "mkdosfs" is in /sbin.

If anybody has knowledge that would help me I'd sure appreciate it.


Old 09-03-2006, 02:31 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Perhaps /sbin isn't in your $PATH? Have you tried "/sbin/mkdosfs ..."?
Old 09-03-2006, 04:26 AM   #3
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
Re : Trying to format fat32

Please try the same command by prefixing "./" to it.

for example try
>./mkdosfs -c -F 32 -v /dev/sda2
Old 09-03-2006, 04:33 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Su to root by running "su -" instead. This will start a log in shell which will run root's .profile script. Then root's $PATH variable will be setup.


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 FAT32 on pendrive satimis Linux - Software 8 03-16-2006 09:23 PM
How to format to FAT32, and how to mount my FAT32 partition. bonniehandi Linux - Newbie 16 03-05-2006 08:54 PM
Format Fat32 partition IndigoBlu Linux - General 7 12-31-2005 11:02 AM
FORMAT the FAT32 partitions??? Pakiman Linux - General 5 09-16-2003 07:12 PM
Does mke2fs format in FAT32 format? blueleft Linux - General 2 08-09-2003 09:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration