How do I use the separate home partition I had after a new install

When I first installed endeavor I partitioned my things separately, such that my home has a separate partition. Recently I had some issues and reinstalled the os and was wondering how can I set as the default my separate home partition. Any help on this would be greatly appreciated, thanks!

Wait! What? Did you install on top of the old /home partition or beside it?

If you reinstalled on top of the old one without choosing to use it for the new install, well, I’m sorry to say… :people_hugging:

However, if you installed it beside it without formating, then either you should see your settings (i.e. if you used the same DE) OR you may have to reinstall again, but this time select your old /home as your new /home.

why?!? just edit the /etc/fstab to use the right partition as home

That’s why I said “may”. I ain’t no expert lol :sweat_smile:

Could you walk me through that please?

I assume by editing the /home line in the etc/fstab file, one would need to first know the UUID of the old /home partition.

A visual way to find this out is to use gnome-disk-utility or a similar tool like partitionmanager on KDE or gparted.

From gnome-disk-utility:

  1. Select your HDD/SSD
  2. Select the old /home partition
  3. Select and copy the UUID to the clipboard

With root privileges

  1. Navigate to and open the “fstab” file located at etc/fstab

  2. Locate the line that has /home ← A UUID will be in front of it

  3. Remove the current UUID and replace it with the one from your clipboard, i.e. your old /home

  4. Save the etc/fstab file

  5. Open your file manager and check to see if your old /home is now your new /home

If not,

  1. Open up a terminal run sudo grub-mkconfig -o /boot/grub/grub.cfg
  2. Logout and log back in and give it another check
  3. Reboot

Is this correct @ricklinux ?

If not, I’ll delete this right away. :man_shrugging:t5:

So… you have

  • a new install with home inside the root partition
  • the old /home partition

and you want to start using the old /home partition instead of the new home.

If not, please clarify.

Hi. Would my method work? Asking for myself. :sweat_smile:

I’m not using gnome-disk-utility but I assume it shows the UUID.
So your method is on the right track.

Some minor additions come to mind:

  • the file to edit is /etc/fstab
  • the “new” and now unnecessary /home folder should be cleared of existing files (also the dotfiles!) and subfolders before mounting the old home to it
1 Like

Yay! No pun intended… I’m learning! :partying_face:

1 Like

Note also that grub.cfg needs not be re-created… :wink:

1 Like

Yes that’s exactly right.

I had a feeling it didn’t, but I was trying to check all my boxes :sweat_smile:

This is a great way to learn. Especially if trying the commands on a spare machine, or in a virtual machine. Every little detail counts. :wink:

1 Like

Another terminal centric method (among many) is:

  • run lsblk -f to see the UUID of the old /home partition
  • edit /etc/fstab (e.g. with sudo nano /etc/fstab) and replace the UUID of the /home definition
  • delete all files and subfolders in the unnecessary /home folder, including file names starting with a dot. This leaves an empty /home folder.
  • reboot

Note: be sure to delete files and folders in the correct /home folder.

My /etc/fstab doesn’t have a home type thing, should I add one myself? If so what should i write at the “defaults,noatime…” section thing

Yes, since your new installation did not have it.
You can look at what man fstab says.

Basically not much needs to be added, but check the needed filesystem type with
lsblk -f.

Why? … :wink:

No, it is not needed. The bootloader does not need to know all partitions in FS. Just /, /boot (if exists), and the $ESP (if exists).

Edit: I am still unfocused! :rofl:

If the file system is the same as / partition (i.e. ext4), use the same flags, but the numbers at the end of the line should be different ( 0 2 for /home)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.