Domain hosting, cheap domain names & web page promotion services
  

 Home

Red Hat Linux 8.0: The Official Red Hat Linux Customization Guide
PrevChapter 5. Managing Disk StorageNext

Removing a Partition

WarningWarning
 

Do not attempt to remove a partition on a device that is in use.

Before removing a partition, boot into rescue mode (or unmount any partitions on the device and turn off any swap space on the device).

Start parted, where /dev/hda is the device on which to create the partition:

parted /dev/hda

View the current partition table to determine the minor number of the partition to remove:

print

Remove the partition with the command rm. For example, to remove the partition with minor number 3:

rm 3

The changes start taking place as soon as you type [Enter], so review the command before committing to it.

After removing the partition, use the print command to confirm that it is removed from the partition table. You should also view the output of

cat /proc/partitions

to make sure the kernel knows the partition is removed.

The last step is to remove it from the /etc/fstab file. Find the line that declares the removed partition, and remove it from the file.


PrevHomeNext
Creating a PartitionUpResizing a Partition
 

 

 

 

Website promotion and ranking services | Active-Domain.com: Domain name registration | Cheap domain registrar 

Disclaimer: For authoritative source or latest update to this documentation, please refer to http://www.redhat.com/docs/manuals/linux/

 

 
Quotes: Your joy is your sorrow unmasked. And the self-same well from which your laughter rises was often-times filled with your tears.