Skip to main content
Topic: Keeping my /home parition. (Read 343 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Keeping my /home parition.

Hello, I was wondering if you could install Artix, but keep your old /home partition.

I know I can do that, and pretty easily using the installer that comes with the live environments, but I'm not sure how to without a installer, if so please show me how, or link any sort of documentation, because I couldn't find any.

Re: Keeping my /home parition.

Reply #1
You of course can. But how depends on your setup.

Can you post your /etc/fstab and details of where you intend to install the new rootfs (new Artix)
And how you are doing the the install.

And your user uid
command
Code: [Select]
id
output of
Code: [Select]
sudo blkid
as well if, as likely, it's uuid's in fstab

Re: Keeping my /home parition.

Reply #2
Fstab: https://pastebin.com/ckmbVYZV
id : uid=1001(usernamehere) gid=998(wheel) groups=998(wheel)
blkid output : https://pastebin.com/WizgiAd4

I'm using EFI, with a boot, swap, root, and of course a home partition. I'll be reinstalling my system with the base install, not a live environment with an installer.

I wanna try Void and Artix for some months, and choose one to use as my daily driver, though I'm really loving Artix.

Re: Keeping my /home parition.

Reply #3
So you want to install Artix onto /dev/sda1.
Depending on how you go about it the UUID of the partition will most likely change.

Keep a copy of your current fstab
Leave the other partitions alone.
Once you've installed artix on /dev/sda1 copy your old fstab into /etc on /dev/sda1. BUT replace the UUID in line
Code: [Select]
UUID=b0f189a2-5734-42a8-bd85-53e70a2eca3a /              ext4    defaults,noatime 0 1
with its new UUID if it's changed.

Normally the first user created has uid 1000,
To make thing simple I'd suggest just specifying the uid when you create the user on the new artix, useradd --uid 1001 (along with other options).
Or you can just chown -R the whole of your home dir.

That's about it really. I suspect you'll need to do something with grub but I so rarely use it I'm not going to try and be specific.

You'll potentially be doing yourself a favour if you create a rEFInd boot cd/usb so if the first boot fails you probably won't have to mess around with with live usbs and chroots https://www.rodsbooks.com/refind/getting.html. Test the refind boot before you start.

Of course there's more to installing Artix from a base iso. I'm just addressing keeping your home partition.

Good luck.
If you need more detail ask the specifics.