Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: creating an partition / formatting hd, xterminal /command line< Next Oldest | Next Newest >
A jerk Offline





Group: Members
Posts: 5
Joined: Oct. 2005
Posted: Oct. 12 2005,04:19 QUOTE

Can anyone tell me what is the *format* command in the terminal if i want to format a drive?

and also. how can i create partitions in my harddrive from my terminal?

any help is appreciated.

thanks.
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Oct. 12 2005,22:17 QUOTE

You need to be superuser or "root" user in order to format or manage partitions:

sudo su


To edit partitions for a drive:

cfdisk /dev/hda

(where hda = primary master IDE drive, hdb=primary slave, hdc=secondary master, etc)

To format partition 1 for this drive with linux EXT2 filesystem:

mkfs -t ext2 /dev/hda1


Or to format a Linux swap partition for #2:

mkswap /dev/hda2
Back to top
Profile PM 
1 replies since Oct. 12 2005,04:19 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: creating an partition / formatting hd

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code