![]() |
I decide that I don't want to use the entire drive, so I'm going to partition it into 4 equal 2.5Gb primary partitions. They will become hdb1, hdb2, hdb3 and hdb4. I will use fdisk to partiton.
#fdisk /dev/hdb
The number of cylinders for this disk is set to 1653.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Disk /dev/hdb: 255 heads, 63 sectors, 1653 cylinders
Units = cylinders of 16065 * 512 bytes
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-621, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-621, default 621): +2.5M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p Partition number (1-4): 2
First cylinder (413-1653, default 413):
Using default value of 413
Last cylinder or +size or +sizeM or +sizeK (413-1653, default 1653): +2.5Gb
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
#I continue on in the same manner, creating the other two primary partitions, hdb3 and hdb4. When I have finished the partition table looks like this.
Disk /dev/hdb: 255 heads, 63 sectors, 1653 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 413 2441406 83 Linux
/dev/hdb2 414 827 2441406 83 Linux
/dev/hdb3 828 1240 2441406 83 Linux
/dev/hdb4 1241 1653 2441406 83 LinuxI write out the drive partition with the 'w' command in Linux which brings me back to the prompt.