#relocating home on active machine
51 messages · Page 1 of 1 (latest)
rsync needs additional parameters
[Reply to:](#1236013348311531670 message) How best to migrate /home to a new place on a new drive from ACTIVE system? Will the following work …
-arxvh or something
And yes you can do it on running system
🙂
to ensure the ownership is preserved
[Reply to:](#1236013348311531670 message) -arxvh or something
But to get rid of /home you'll need to be in emergency mode
How do you enter that and exit that?
are you using systemd
[Reply to:](#1236013348311531670 message) How do you enter that and exit that?
if so, just run systemctl start emergency.target
you need to be on SysV run level 1
or its equivalent (emergency.target for systemd)
systemd not found
init 1
So I can do this in GUI correct?
You need to be in single-user mode to be more specific
to ensure that you don't mount /home
No
[Reply to:](#1236013348311531670 message) So I can do this in GUI correct?
You should first do the rsync
Then edit fstab
but to get rid of /home (so you can declare what it'll be populated with) you need it to be unused
You can do that on emergency mode or while only root is logged in
Since root's home is at /root
So basically you need to ensure no user whose home directory is in /home is logged in
so it's safe to wipe it
So log out everyone and on a tty log in as root
I got it. and here we go
Then like I said you edit fstab
rsync
is doing its thing.
Gonna free up so much space now.
Gonna also create a Steam library in /usr/games
Log out everyone
log in as root
then edit fstab to automatically mount the new home at /home
I actually like home in /var/home and tmp in /var/tmp
but for backwards compat I symlink them to their fhs equivalents
I'm used to /home
been that way forever
I messed up. putting / made it put home inside the drive instead of put users directory into the drive.
/run/media/deane/HOME/ was how I put it if I left out the / I'd have done the users directory me thinks.
Hmm
rm -fr /run/media/deane/HOME/home? and remove trailing / this time in the rsync?
or mv users to root of drive?
mv is best
Ok Logout/exit GUI.
Login root from TTY.
init 1 if NOT on Systemd. if on Systemd systemctl start emergency.target
Edit Fstab to add the drive
rm -fr /home/*
mount drive to /home
Reboot