📜  删除主分区 centos 6 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:33.343000             🧑  作者: Mango

代码示例1
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