[root@localhost ~]# fdisk -l Disk /dev/hda: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 255 2048256 7 HPFS/NTFS /dev/hda2 256 1044 6337642+ f W95 Ext'd (LBA) /dev/hda5 256 766 4104544+ 83 Linux /dev/hda6 767 829 506016 82 Linux swap / Solaris
//创建一个交换分区,命名为/hda7(具体命名视实际情况而定)
[root@localhost ~]# fdisk /dev/hda The number of cylinders for this disk is set to 1044. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: