Latest LQ Deal: Linux Power User Bundle
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 03-06-2006, 01:09 AM   #1
Registered: Jul 2005
Posts: 41

Rep: Reputation: 15
The use of fdisk and mkfs

I want to know if what i did is wrong.

i used cfdisk to make a FAT32 partition, type "0C"

then i made sure i used the "write" command, and quits afterward

Then i used "mkfs.vfat -I -F 32 /dev/sda" to Format the drive into FAT32(At least that is what i think im doing)

but after that, when i used "cfdisk /dev/sda" to check the partition table, it said that all i got is "Free Space", my partition table is gone.

Is this how its supposed to be?
Windox XP cannot detect my partition~
am i missing any step?

im using Knoppix and "qtparted" did work for me.
I just wanna learn how to use the command line


Last edited by lunlun; 03-06-2006 at 01:15 AM.
Old 03-06-2006, 02:59 AM   #2
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
yous problem originates with the linux drive naming conventions. /dev/hda is your whole HDD. When you create a partition this partition is named /dev/hda1 so when you try to creat a file system you should specify which partition to format instead of giving the name of the HDD.

Primary partitions are numbered 1-4, extended partitions 5-whatever.
Old 03-06-2006, 03:00 AM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
you already are aware that you created a partition inside /dev/sda, so why did you then think you should format the block device as a whole? you format partitions, not physical disks... "mkfs /dev/sda1" etc..
Old 03-06-2006, 03:40 AM   #4
Registered: Jul 2005
Posts: 41

Original Poster
Rep: Reputation: 15
fixed + thank you!


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
mkfs blackzone Linux - Newbie 1 01-06-2005 11:52 PM
mkfs after fdisk? blackzone Linux - Newbie 1 01-06-2005 11:50 PM
mount / fdisk / mkfs problem rusium Linux - Hardware 3 05-07-2003 09:38 PM
mkfs help SticklerThe1st Linux - Software 3 01-01-2003 05:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:15 AM.

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