You are not logged in.

#1 2020-11-05 19:43:11

jfabernathy
Member
From: North Carolina
Registered: 2019-01-03
Posts: 123

[SOLVED] Moving /home to new drive

I have a working system where I have one drive with:

/dev/sda1      EFI boot
/dev/sda2      EXT4 /
/dev/sda3      swap

I will be rebuilding this system with a new processor and motherboard that supports M.2 2280 NVMe SSD as a boot drive.  I want to put in a 500GB M.2 as the boot drive with all system files and then use a 500GB SATA 6G/s SSD mounted as /home.

I have a clonezilla backup of the current sda as an image on a NAS. I'm trying to avoid a fresh install of Archlinux and Cinnamon and a lot of other things from scratch.

What would be the recommended process to move /home directory to it's own SSD in the new system?

Last edited by jfabernathy (2020-11-05 20:20:28)

Offline

#2 2020-11-05 20:02:24

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Moving /home to new drive

Just partition, edit /etc/fstab defining /home therein, copy the files over and you're done.  You shouldn't need clonezilla for this... simply rsync will work.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2020-11-05 20:17:51

jfabernathy
Member
From: North Carolina
Registered: 2019-01-03
Posts: 123

Re: [SOLVED] Moving /home to new drive

graysky wrote:

Just partition, edit /etc/fstab defining /home therein, copy the files over and you're done.  You shouldn't need clonezilla for this... simply rsync will work.

This is good to know.  I will probably use clonezilla to restore the current image to the M.2 2280 SSD and after I boot I'll use your method to move /home to it's own drive. It sound simple enough, but I needed reassurance.

Thanks

Offline

#4 2020-11-05 21:32:10

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Moving /home to new drive

Does clonezilla create partitions?  If so, I would not do that personally.  Partition manually, mount manually, rsync data over, setup fstab.  It's trivial.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2020-11-05 22:59:23

jfabernathy
Member
From: North Carolina
Registered: 2019-01-03
Posts: 123

Re: [SOLVED] Moving /home to new drive

graysky wrote:

Does clonezilla create partitions?  If so, I would not do that personally.  Partition manually, mount manually, rsync data over, setup fstab.  It's trivial.

Yes, clonezilla has an option for creating an image of all partitions on a drive and the restore creates the partitions and loads in the data.  I've used it like creating snapshots on a virtual machine.  Just restore to the last good disk image.  Until I got a good Desktop Environment that I like, I kept blowing away what I had and restoring a complete install prior to any DE installation.

Offline

#6 2020-11-06 02:12:27

jfabernathy
Member
From: North Carolina
Registered: 2019-01-03
Posts: 123

Re: [SOLVED] Moving /home to new drive

I did a test on my current system using your method of moving /home. Worked great. Thanks

Offline

Board footer

Powered by FluxBB