1830226 Members
1677 Online
109999 Solutions
New Discussion

sfdisk

 
Mubedi Kaninda
New Member

sfdisk

Hi.

Can somebody tell me how to use sfdisk to create say 6 partitions on a drive?
I can get it to create up to 4 primary partitions, but I have problems with more than that.

Thanks.
1 REPLY 1
Stuart Browne
Honored Contributor

Re: sfdisk

This is a limitation that you cannot get around with 'primary partitions'.

This is why the creation of the "Logical" drive in an "Extended Partition" exists.

Under most linux systems, the IDE hard drive is seperated into a small "/boot" partition (primary, activly bootable), some swap, whilst the remainder is created in a single large extended partition utilising the remaining space.

Any further partitions are created in this Extended partition as Logical partitions.

Typically, primary partitions:

/dev/hda1 /boot
/dev/hda2
/dev/hda3 (logical, no reference)

With Logical partitions:

/dev/hda5 /
/dev/hda6 /home
/dev/hda7 /usr

...

you get the picture.
One long-haired git at your service...