Page 1 of 1

Moving /home to a different drive [Solved]

PostPosted: May 29th, '16, 01:28
by rodgoslin
I have a problem, in that the HDD that I'm using is rather smaller than I would desire. Rather than re-build the whole thing on a larger disk, I've decided to move /home onto another disk entirely. I've done this before, a number of times, without problem, but these were on a new install. So, I'm proposing adding a new (larger) drive, naming it, and mounting it as (say) newhome, and copying the whole of /home onto it. Then renaming the existing home directory to home2 and newhome to home. The difficulty here is that since processes are running from /home, it cannot be unmounted. Is there a (simple) way of overcoming this? Options I've come up with are to do it in single user mode, the other, is to run an install in 'update ' mode, which will change nothing, but use the Diskdrake function to setup the old and new drives in the changed configuration. How this will affect other aspects, as sy, printers, scanner, external shared drives, I'm not sure. I'd welcome any (simple) suggestions, up to re-installing the whole thing from scratch, from backups.

Re: Moving /home to a different drive

PostPosted: May 29th, '16, 02:08
by Ken-Bergen
Copy everything in the old /home to a partition on the new drive.
Edit /etc/fstab to reflect the new mount point for /home .
Reboot.

Re: Moving /home to a different drive

PostPosted: May 29th, '16, 02:44
by rodgoslin
Ahh! An excellent, elegant Cheers!and simple solution. Thanks. I'll give it a try, in the morning.

Rod

Re: Moving /home to a different drive

PostPosted: Jun 3rd, '16, 22:00
by rodgoslin
Thanks, ken-bergen. That worked fine.I must remember it if I find myself in the same situation again. There were a couple of options in fstab, that had to be changed, as well, but all worked well, straight off.

Cheers, Rod Goslin

Re: Moving /home to a different drive [Solved]

PostPosted: Jun 4th, '16, 12:37
by AstorBG
Ahh I needed that solution one week ago! LOL
Now I know, thanks to ken :)