You are not logged in.
Pages: 1
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!
Last edited by Mladia (2016-05-06 20:18:20)
Offline
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.
(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
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
Offline
Pages: 1