LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-06-2006, 01:09 AM   #1
lunlun
Member
 
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

Thankyou

Last edited by lunlun; 03-06-2006 at 01:15 AM.
 
Old 03-06-2006, 02:59 AM   #2
linmix
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
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
lunlun
Member
 
Registered: Jul 2005
Posts: 41

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


Reply



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

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

All times are GMT -5. The time now is 09:42 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
Open Source Consulting | Domain Registration