Removing a Partition
Warning
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/sda is the device on which to remove the partition:
remove:
partition with minor number 3:
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
remove it from the /etc/fstab file. Find the line that declares the removed
partition, and remove it from the file.
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/sda is the device on which to remove the partition:
- parted /dev/sda
remove:
partition with minor number 3:
- rm 3
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
remove it from the /etc/fstab file. Find the line that declares the removed
partition, and remove it from the file.
Comments
Post a Comment