You are not logged in.

#1 2016-05-06 18:52:57

Mladia
Member
Registered: 2016-04-30
Posts: 59

[SOLVED]Move home to another disk

Hey guys,

I have been using Arch for a week, I pre-installed a couple of times now, but the last time I forgot something. I divided my disks to have separate /home and /root (and /boot but irrelevant for my question). So I installed everyting on /dev/sdaX, but now it got me, that I forgot to assign /home to be on /sdaY. I'd like to have my home on the other partition. Is it possible now. (even considering losing all my data on the user now), can I just mount (reassign) the home directory on the other partition?

I hope someone understands my quesion! big_smile

Last edited by Mladia (2016-05-06 20:18:20)

Offline

#2 2016-05-06 19:48:41

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [SOLVED]Move home to another disk

Mladia wrote:

can I just mount (reassign) the home directory on the other partition?

Yes, assuming you already created a filesystem on the new partition. Add an entry in /etc/fstab to make it mount automatically after reboot.

Mladia wrote:

(even considering losing all my data on the user now),

To save data, mount new home partition to somewhere else, copy data (ie. with "rsync -a" as root), then umount the partition and mount it again on /home.

Offline

#3 2016-05-06 20:07:14

Mladia
Member
Registered: 2016-04-30
Posts: 59

Re: [SOLVED]Move home to another disk

Perfect, done!

I find this guide extremely useful - https://help.ubuntu.com/community/Parti … ome/Moving

In short:

1. I got the UUID for the /dev/sda8 (that I want to make new /home)
2. added entry to fstab for it to be mounted on /media/home (random dir)
3. sudo mount -a
4. coppied everything with rsync and fancy arguments
5. changed the last added entry to fstab for the location from /media/home to /home
6. sudo mount -a
7. done
8. ???
9. profit!

Good luck to all, who are trying this smile

Offline

Board footer

Powered by FluxBB