rearranging mount points

Hello,

Due to unrecoverable errors in the startup of my opensuse 13.2 I installed LEAP42.1 but wanted to keep my /home partition especially the data on it.

So I did a fresh install of LEAP42.1 and during that install I selected to NOT use a separate filesystem(?). So after installation I see this when I do df -k

I don’t see the output.

During install, partitioning, one has the “Expert” option, amongst which “Import mountpoints”. That’s what you should have used.

But now we need to know if the original partition mounted on /home is still there. If so, you can use YaST to recreate the mountpoint. The best way to do this is from the console, whilst no “normal” users logged in:

  • At login screen hit Ctrl+Alt+F2
  • Login as root
  • type
yast

and you will see the ncurses version of YaST. Proceed to the partitioning module and add /home as the mountpoint for the partition your homedirs are on.

this is the complete message:

Hello,

Due to unrecoverable errors in the startup of my opensuse 13.2 I installed LEAP42.1 but wanted to keep my /home partition especially the data on it.

So I did a fresh install of LEAP42.1 and during that install I selected to NOT use a separate filesystem(?) for /home. So after installation I see this when I do df -k
stefan@ldqk-server:/run/media/stefan/73ede3cc-bf03-423b-afa3-e8e8df317ccc> df -k
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 4022184 4 4022180 1% /dev
tmpfs 4030116 26780 4003336 1% /dev/shm
tmpfs 4030116 2180 4027936 1% /run
tmpfs 4030116 0 4030116 0% /sys/fs/cgroup
/dev/sda2 41946112 7463704 34170184 18% /
/dev/sda2 41946112 7463704 34170184 18% /.snapshots
/dev/sda2 41946112 7463704 34170184 18% /var/tmp
/dev/sda2 41946112 7463704 34170184 18% /usr/local
/dev/sda2 41946112 7463704 34170184 18% /srv
/dev/sda2 41946112 7463704 34170184 18% /opt
/dev/sda2 41946112 7463704 34170184 18% /var/spool
/dev/sda2 41946112 7463704 34170184 18% /var/opt
/dev/sda2 41946112 7463704 34170184 18% /var/crash
/dev/sda2 41946112 7463704 34170184 18% /var/log
/dev/sda2 41946112 7463704 34170184 18% /tmp
/dev/sda2 41946112 7463704 34170184 18% /boot/grub2/x86_64-efi
/dev/sda2 41946112 7463704 34170184 18% /var/lib/mysql
/dev/sda2 41946112 7463704 34170184 18% /var/lib/pgsql
/dev/sda2 41946112 7463704 34170184 18% /var/lib/named
/dev/sda2 41946112 7463704 34170184 18% /var/lib/mariadb
/dev/sda2 41946112 7463704 34170184 18% /var/lib/libvirt/images
/dev/sda2 41946112 7463704 34170184 18% /var/lib/mailman
/dev/sda2 41946112 7463704 34170184 18% /home
/dev/sda2 41946112 7463704 34170184 18% /boot/grub2/i386-pc
/dev/sda3 200050240 53842748 146207492 27% /run/media/stefan/73ede3cc-bf03-423b-afa3-e8e8df317ccc
/dev/sdb1 488384000 343055032 145328968 71% /run/media/stefan/Lokaal station

My goal is to mount /dev/sda3 as /home since all my users (2 actually, stefan and mariadb) and their content is still there.

I think I can accomplish this by first doing an unmount of
**/dev/sda2 41946112 7463704 34170184 18% /home
followed by a mount of
/dev/sda3 on /home

**I’ve read a lot of documentation and I came up with the following sequence of commands that should do the trick;
**umount -v /home
mount -M ****/run/media/stefan/73ede3cc-bf03-423b-afa3-e8e8df317ccc /home
**
Is this correct or am I missing something?
(ofcourse I need to logon as root first)

Any help is greatly appreciated.
zion_2008

That works one time but I assume you want to mount it at each boot so add to fstab via yast or direct edit of /etc/fstab

I just used the method as described by Knurpht in the first reply.
This worked just fine.

Also the hint how I can do this during my initial install is interesting as I am sure this will happen again someday…

Everything is now as I want it to be.

So thank you for the quick and adequate replies.

Regards, zion_2008

You can even import the user(s) from a previous install :slight_smile:

IIRC what worked for me was really easy, and didn’t really require complicated setting mount points.

IIRC I just set to use separate home partition which is the default setting (which in itself sets a mount point for a /home partition) and when the install found an already existing mount point of that setting and name, auto accepted the existing partition without trying to wipe anything from the partition.

Of course, before attempting this, I copied my entire /home to external storage first…

TSU