I have separate /
and /home
partitions, of which both use ext4 as their filesystem.
How can I merge them, and what is the easiest way?
Ubuntu – the easiest way to merge / and /home
filesystemhome-directorypartitioning
Related Question
- Ubuntu – Increase the /home partition without losing the data
- Ubuntu – What are the pros and cons of having a separate home partition
- Ubuntu – Re-install and keep home partition with btrfs – lost files
- Ubuntu – The need of /home partition in Ubuntu
- Ubuntu – avoid having differents filesystem for / and /home
Best Answer
I don't think there's an easier way. You need to copy the data from one partition to the other. You need to delete the old home partition and resize the root partition. That cannot be done on a running system, so a live CD or USB seems like as good as it gets.
/mnt/root
./mnt/oldhome
.Copy the data using
rsync
:Open
/mnt/root/etc/fstab
and delete the entry for your home partition.Gparted
.That should be it.