two home partitions

Hi everyone,
I messed up during the upgrade from 13.2 to LEAP42.2, now I have two /home partitions:
/sda6 accessible from suse 13.2
/sda11 accessible from 42.2
Any way to merge them, or to access /sda6 from LEAP42 ?
Thanks for any help

As long as you the users did not really log in into the 42.2 system, there is nothiing important there. You could thus change your /etc/fstab entry for /home to let it point to the correct partition and then reboot.

Thanks, but the fstab file is just a bunch of numbers to me.
Is there any tool to make it human readable ?

Show us

cat /etc/fstab

or you can set in Yast - boot loader

You can either remove the extra home partition or use it by setting link to directories there

BTW does not matter much if you did log in to the new home I switch home partitions all the time. The important thing is that the user should have the same name and UID . Again can me check and or changed in Yast - users

Here is the content of the fstab file


techwinder@linux-9sh0:~> cat /etc/fstab
UUID=2f956880-90fc-4699-8017-59426c9ca43f swap swap defaults 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b / btrfs defaults 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /opt btrfs subvol=@/opt 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /srv btrfs subvol=@/srv 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /tmp btrfs subvol=@/tmp 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /usr/local btrfs subvol=@/usr/local 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/cache btrfs subvol=@/var/cache 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/crash btrfs subvol=@/var/crash 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/lib/machines btrfs subvol=@/var/lib/machines 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/log btrfs subvol=@/var/log 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/opt btrfs subvol=@/var/opt 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/spool btrfs subvol=@/var/spool 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=63f78d48-1462-43ac-b2dc-0e51c7b2458b /.snapshots btrfs subvol=@/.snapshots 0 0
UUID=8C29-C2E4       /boot/efi            vfat       umask=0002,utf8=true  0 0
UUID=75aaaf22-8c82-46ff-8fe2-6507fc1561ba /home                xfs        defaults              1 2

/etc/fstab is human readable. It may not be understood, but it is human readable (vs. binary blob).

This is the line about your /home.

UUID=75aaaf22-8c82-46ff-8fe2-6507fc1561ba /home                xfs        defaults              1 2

You could simply change it into

/dev/sda6 /home                xfs        defaults              1 2

You could also use tthe UUID of /dev/sda6 to stay in the same mood as the other entries. You wil find that UUID with

ls -l /dev/disk/by-uuid/ | grep sda6

The UUID is the file name there. Replace the 75…ba with that UUID.

One thing to check though: be sure the file system on /dev/sda6 is of the type xfs. It could also be e.g. ext4. In that case, replace xsf in the line by ext4.

When in doubt, post the output of the ls -l command above and what you want to make of the entry here for comment.

oops misspoke about yast it is Yast partitioner of course

Changed the fstab file and everything is OK now.

As always, thanks for the quick support. For those of us who are not linux experts, it’s good to know that there will be some help when faced with an issue that we cannot fix alone.

You are welcome.

Congrats on fixing it. You will be aware of the fact that you now can use the space of /dev/sd11 for something else.