Ask Your Question

I have two versions of /home on two different drives on different partitions, how can I replace one with the other?

asked 2017-09-26 01:49:43 -0500

Sol33t303 gravatar image

I backed up my home partition that was previously on my SSD (using dd) before wiping everything off the SSD (I was having grub problems for ages and the result of me trying to fix it was different versions of grub with non of them working spread across multiple partitions, so i decided to just reinstall) I used to have my /home as a separate partition, but now it's not. How can I completely replace /home on my new installation with /home from my backup on a different drive?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-26 10:54:34 -0500

villykruse gravatar image

That is normally done by adding an entry to /etc/fstab:

UUID=521865c1-a8d4-4ebf-ac70-71fc1a89a868 /home                   ext4    defaults        1 2

If you don't know the UUID, then the device name will do as well

/dev/sda5    /home                   ext4    defaults        1 2

Or, if your home file system has a label

LABEL=t-home2   /home      ext4    defaults      1  2

For further info,

man fstab
edit flag offensive delete link more

Question Tools



Asked: 2017-09-26 01:48:23 -0500

Seen: 37 times

Last updated: Sep 26 '17