First look at the output of the fdisk -l and fdisk /dev/sda and you will see what I am trying to fix:
Code:
[root@localhost ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00023628
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 1301 10240000 83 Linux
/dev/sda3 1301 1431 1048576 83 Linux
/dev/sda4 1431 1437 49295 5 Extended
[root@localhost ~]# fdisk /dev/sda
The number of cylinders for this disk is set to 2610.
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): d
Partition number (1-5): 5
Warning: partition 5 has empty type
Command (m for help): t
Partition number (1-5): 5
Partition 5 does not exist yet!
Command (m for help): q
You have new mail in /var/spool/mail/root
[root@localhost ~]#
So, why we have 1 extra partition number here:
Partition number (1-5): and it doesn't exist at all?
How to correct it?
The problem occurred when new partitions were created and in doing that some mistake took place. So, I decided to delete those new partitions but 1 extra number was there and is still there.