How Do I Unmount a Home Partition in Linux?
Contents 3 Answers. You Can Enter Single User Mode for Such Operations by Adding ‘S’ to the End of Grub Boot Line Edit or Run Sudo Init 1. There You Can Umount...
Contents
3 Answers. You can enter single user mode for such operations by adding ‘s’ to the end of grub boot line edit or run sudo init 1 . there you can umount /home, if again get errors run sudo umount -fl /home .
What happens if I unmount home?
When you log in now, the processes will be using your new home directory. You can see which processes are still using your old home directory (or anything else on the home filesystem) by running fuser /home or lsof /home . Once you kill these processes, you’ll be able to unmount /home .
How do I resize the home directory in Linux?
5 Answers
- umount /home $ umount /home.
- shrink the /home filesystem $ fsck -f /dev/mapper/VolGroup-lv_home $ resize2fs /dev/mapper/VolGroup-lv_home 80G.
- shrink the /home logical volume $ lvreduce -L -40G /dev/mapper/VolGroup-lv_home.
- resize the /home partition to the size of the LV $ resize2fs /dev/mapper/VolGroup-lv_home.