Move Drive Containing /Home to New Computer

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Mike365
Level 2
Level 2
Posts: 72
Joined: Wed Jul 02, 2014 7:02 pm

Move Drive Containing /Home to New Computer

Post by Mike365 »

I have a computer with a separate drive containing the Home partition. I would like to transfer this drive to a new computer which has an SSD that contains /root and /boot.
Is it just a case of connecting the Home drive and booting with a live USB, and mounting the data drive to /Home using GParted?
There is plenty of information about transferring the Home folder to another drive but not a lot about relocating the drive.
Last edited by LockBot on Sun Dec 03, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
kato181
Level 9
Level 9
Posts: 2577
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Move Drive Containing /Home to New Computer

Post by kato181 »

You have told nothing about the system you are using. In terminal copy & paste the following command and post the results back here in between the code display brackets 5th icon above the text box.

Code: Select all

inxi -Fxz

Code: Select all

sudo lsblk
hal8000
Level 4
Level 4
Posts: 436
Joined: Sun May 04, 2008 2:04 pm
Location: UK

Re: Move Drive Containing /Home to New Computer

Post by hal8000 »

Without the extra information its not possible to answer.

However you also need to know to UUID identify of the current home partition.
This can be found from command

Code: Select all

blkid
The new drive that contains / the filesystem table will need to be modified with the mount details for home.
From your existing linux system you need to backup the fstab
Using command

Code: Select all

cat /etc/fstab > filesystem-table
The above command run as normal user will create a text file called filesystem-table in your
current home directory (or wherever its run from) with your current home partition UUID and mount options.
motoryzen
Level 10
Level 10
Posts: 3465
Joined: Sun Dec 08, 2019 12:25 am

Re: Move Drive Containing /Home to New Computer

Post by motoryzen »

mike365, no offense, but kato's point still must be answered

See that pink section above that is virtually impossible to miss? Where it talks about how to get help That's a link...click it. step 5 is pretty much what kato asked you to do earlier.... .

...Or if you prefer the gui method which many beginners understandably would...

1. start button aka windows logo button on your keyboard. without quotes type system reports
2. click System information button upper left, copy button bottom right
3. Come back here, paste into the white area where you reply.

This will show us how Linux Mint deals with your hardware, but won't give any personally identifiable info.

This site's/domain's management put that there to save everyone on time wasting speculation.
Last edited by motoryzen on Sat Jun 10, 2023 11:40 am, edited 1 time in total.
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
linux-rox
Level 10
Level 10
Posts: 3334
Joined: Sun Jul 19, 2020 9:17 pm

Re: Move Drive Containing /Home to New Computer

Post by linux-rox »

Mike365 wrote: Sat Jun 03, 2023 12:08 am ... a new computer which has an SSD that contains /root and /boot.
FYI, /root is not the system partition; it's the home folder of user-root. Also, why a /boot partition? Is your system encrypted? Is the new computer running the same version of Mint as the old one? Is your username the same?
... mounting the data drive to /Home using GParted?
GParted has no such functionality. Can be done with Disks, but not what I would recommend. To do this correctly, you're going to want to edit fstab manually. What's your experience level with editing config files?
Locked

Return to “Installation & Boot”