unmount and delete partition

unmount and delete partition.
=============================================================================================================
Unmount the partition

# umount /dev/sda12
=============================================================================================================
Delete the partition.

1> unmount the partition
#umount /dev/sda12

=============================================================================================================
2> remove the entry from /etc/fstab

=============================================================================================================
3> remove partition
#fdisk /dev/sda

-press d to delete
-press w to save partition table

OR

#cfdisk /dev/sda

-select the partition to delete
-press delete tab
-write / save
-quit
=============================================================================================================

4> permanantly save partition table
#partx -a /dev/sda
=============================================================================================================

5> remove mounting directory
# rm -rf /data1
=============================================================================================================

6> #mount -a and # reboot
=============================================================================================================

Posted in partitions

Leave a Reply