Sunday 13 January 2013

how to delete any partition in linux?


#umount /data (unmount the directory on the partition)

#vim /etc/fstab

remove line entry with /dev/sda5 /data (press dd in esc mode and :wq! Save and exit )

#mount -a

#fdisk -c /dev/sda (go to hdd)

press d enter and partition number which is you select in the mounting point.

5 enter

p (print to see the table)


w (save the table)

#partx -a /dev/sda (always run this command two time )

No comments:

Post a Comment