In this short post I will show you how to delete partitions on Redhat or any other Linux system with fdisk.
First of all we run fdisk with the disk we want to delete, in my case it is /dev/sdb, then type d for delete and then write 1 for the partition of of disk /dev/sdb.
# fdisk /dev/sdb
Command (m for help): p
Disk /dev/sdb: 255 heads, 63 sectors, 525 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 525 4217031 6 FAT16
Command (m for help): d
Partition number (1-1): 1
Before confirming the deletion, be sure you are not deleting the wrong disk. If you want to change your mind, exit from fdisk with the q command.
Once you are sure, proceed with the w command
Command (m for help): w
You don’t have to reboot, just run the partprobe command which rereads the partition table.
# partprobe
You can verify your work with fdisk again
# fdisk /dev/sdb
Be sure to delete the partition from /etc/fstab if it was there.
Hope that helped.