You are not logged in.

#1 2020-04-05 19:24:37

catnap
Member
Registered: 2016-10-03
Posts: 131

[WORKAROUND] Moving /home to and existing partition

Previously, I've been using an installation of Arch Linux that has the OS on an SSD and a /home directory on a separate HDD. However, the Seagate HDD has started to make an annoying rumbling noise, perhaps owing to its old age. I've, therefore, unplugged the power from the HDD temporarily. The downside of this temporary arrangement is that the files that reside on my /home directory have become inaccessible. I'm therefore considering to migrate my /home directory to the SSD. It has two partitions:

NAME FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                    
├─sda1
│    vfat                                                       /boot/efi
└─sda2
     ext4                                                       /

There seem to be good guides on how to move the home directory to a new partition that is created specifically for this purpose. Guide. This approach is admittedly more sensible in most situations. But my priority is mainly to resolve the current contingency and avoiding the extra step of creating a new partition seems to be the quicker way to move forward. I would therefore like to migrate the /home folder into the same partition with the root folder.

[EDIT] How to migrate the home folder to an existing partition?

Last edited by catnap (2020-04-07 20:42:35)

Offline

#2 2020-04-05 19:36:48

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,655
Website

Re: [WORKAROUND] Moving /home to and existing partition

Okay? What is your question (and why have you posted this in the Installation subforum..?)

Mod note: Moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-04-05 21:06:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,388

Re: [WORKAROUND] Moving /home to and existing partition

Mount the existing partition somewhere else, mkdir a home on root,

cp -a $otherlocation/$youruser /home/

or use rsync: https://wiki.archlinux.org/index.php/Rs … lternative

Offline

#4 2020-04-07 20:42:16

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [WORKAROUND] Moving /home to and existing partition

I finally decided to go by the recommended way, by creating a new partition for the /home folder. That arrangement works nicely.

Offline

Board footer

Powered by FluxBB