My Linux installation is on a small partition, and I’m running short on space for downloads and personal files. Can I move /home to another partition without reinstalling, and what should I watch out for?
Can I move my Linux home folder to another partition?
Answers
Yes, you can do it without reinstalling. The careful version is to back up anything you cannot replace, prepare a Linux-compatible filesystem on the new partition, and copy the contents of /home while preserving ownership and permissions. For example, a command such as cp -a is more suitable than a plain recursive copy.
Then mount the new partition at /home, usually by adding its UUID to /etc/fstab. Check the UUID and mount settings before restarting, and keep the old home data until you have confirmed you can log in and everything is present. A mistake in the mount entry can leave the system unable to mount the new home as expected.
Reply to this answer
First check what the “other partition” actually is. If it is NTFS and shared with Windows, I would not use it as a normal Linux home partition. Linux home files rely on ownership and permissions that may not behave properly there. A native Linux filesystem is the safer choice.
If the installation is new and there is little to preserve, reinstalling with a better partition layout may be simpler than changing mounts by hand. Also check how much space Linux itself is using. A separate home helps with personal files, but it does not give the root filesystem more room for system packages and updates.
Reply to this answer
You could also avoid moving all of /home if the main problem is large downloads. Put a downloads folder on the larger partition and point your browser there. That is a smaller change and leaves system configuration alone.
If you do move the whole home directory, make sure the new partition has enough room and is mounted reliably at startup. Keep a backup before changing partitions or editing fstab.
Reply to this answer
Add your answer
Answers are reviewed before publication.
JollyWrench:
So I should leave the old copy in place until I’ve tested a reboot and login?
B2~Ternlet:
Exactly. It gives you a fallback if the copy or mount configuration needs fixing.