Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Extended Partition

Status
Not open for further replies.

jasmjaso

MIS
May 23, 2001
35
US
How do you create an extended partition in Linux, is this done as in dos/windows. In fdisk, or can you create extended partition in disk druid. Can some one show me how.
Thanks.
 
in a shell type "fdisk -l /dev/yourdevice"

this will list the partitions.

then do "fdisk /dev/yourdevice" and hit "p" - this will show you the same again.

now say you have a new blank hdd you just create a partition by typing "n" then follow the on screen propmts. then after type "p" again to see what it's done. you can play around how you like - nothing gets changed until you hit "w". if you do anything wrong ctrl-c or "q" will quit the program.
 
When you typed fdisk -|/dev/yourdevice, what are we speaking of? Hard drive as in scsi or ide. Tell me like what should I have in place of yourdevice, Thanks
 
it must be : hda1
hd=harddisk device
a=master
b=slave
1=partition no.
so if ur harddisk is primary master with linux in 1st partition
then it is hda1
so if ur harddisk is secondary master with linux in 2nd partition
then it is hdc2

Technical Director
Infovalley Interwebspiders Pvt. Ltd.
Microsoft Certified System Engineer
visit
If u find the information provided here useful to u then let me know by clicking on the link below s-)
 
oh sorry, i was maybe a few steps to many ahead. :)

ok the names are described quite well above so i won't repeat it. i'll just add that when you reference a partition you use the drive name with the number. so /dev/hda1 would be your first partition on your first drive.
when partitioning a drive you want to reference the whole drive and that is represented by /dev/hda - no number on the end.

if you do "fdisk -l" without the device it will show all of your drives and their partition layouts. hopefully you can go from there.

if your playing with your main drive then just be careful!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top