Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove home partition centos 6

Remove /home Partition on CentOS 6

# umount /home
# lvm lvremove /dev/mapper/VolGroup-lv_home
# lvm lvresize -l+100%FREE /dev/mapper/VolGroup-lv_root
# resize2fs /dev/mapper/VolGroup-lv_root

Now we still need to edit /ect/fstab to prevent CentOS from trying to mount a non-existent partition on start up. remove line /dev/mapper/VolGroup-lv_home /home
 
PREVIOUS NEXT
Tagged: #remove #home #partition #centos
ADD COMMENT
Topic
Name
6+6 =