$sudo fdisk /dev/hda
The number of cylinders for this disk is set to 4865.
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)
Command (m for help): p
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 127 1020096 83 Linux
/dev/hda2 128 764 5116702+ 83 Linux
/dev/hda3 765 1401 5116702+ 83 Linux
/dev/hda4 1402 4865 27824580 5 Extended
/dev/hda5 1402 1656 2048256 83 Linux
/dev/hda6 1657 1911 2048256 83 Linux
/dev/hda7 1912 2038 1020096 82 Linux swap
Command (m for help): n
First cylinder (2039-4865, default 2039):
Using default value 2039
Last cylinder or +size or +sizeM or +sizeK (2039-4865, default 4865): +5120M
Command (m for help): p
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 127 1020096 83 Linux
/dev/hda2 128 764 5116702+ 83 Linux
/dev/hda3 765 1401 5116702+ 83 Linux
/dev/hda4 1402 4865 27824580 5 Extended
/dev/hda5 1402 1656 2048256 83 Linux
/dev/hda6 1657 1911 2048256 83 Linux
/dev/hda7 1912 2038 1020096 82 Linux swap
/dev/hda8 2039 2661 5004216 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.