Hi all,
I have just migrated my system from a 240 GB SATA hard drive to a 480 GB SATA SSD. I had pretty vanilla installation with a /swp (type unix sap), a / (type btrfs) and a /home (type xfs) partition, and I had duplicated this with bigger partitions and had already migrated the /swap and the /home to the new SSD, so just had to do the boot partition.
I followed the instructions here: https://www.suse.com/support/kb/doc/?id=7018639 and I used rsync to copy the boot drive data across rather than dd as I had already set up the partition table.
I did make a mistake doing the copy as entered “rsync -zahP /mnt /mnt2” instead of “rsync -zahP /mnt/ /mnt2/” so I ended up with a /mnt2/mnt folder, and rather than redo the rsync which too hours, I just moved everything from /mnt2/mnt to /mnt2 (maybe this is my problem ? ).
Anyhow, after that, I carried on with the procedure and I followed the steps for grub2 although I didn’t bother to change GRUB_CMDLINE_LINUX_DEFAULT as it wasn’t set on the old drive.
The procedure told me I needed to chroot in order to make the grub2 changes and referred me to this: https://www.suse.com/support/kb/doc/?id=7018126
I followed those steps and noticed that when I did mount -a, it threw a load of errors saying that most of my mount points didn’t exist. I aborted the mount -a which had hung on a network drive, and pressed on, and the rest of the procedure seemed to work fine.
After this, I rebooted to from the new SSD, and although it partially boots the system, it doesn’t go all the way, and stops and asks for the root password to go into ‘maintenance mode’.
Looking at the logs, the issue is still the mount points. I get errors like the one below:
[0;32m OK [0m] Reached target Switch Root.
Starting Switch Root…
[0;1;31mFAILED[0m] Failed to mount /var/lib/mailman.
See ‘systemctl status var-lib-mailman.mount’ for details.
[0;1;33mDEPEND[0m] Dependency failed for Local File Systems.
Starting Restore /run/initramfs on shutdown…
for the following mount points:
/var/lib/mailman
/var/spool
/var/tmp
/opt
/var/lib/named
/var/lib/pgsql
/var/lib/machines
/var/cache
/var/log
/.snapshots
/boot/grub2/i386-pc
/usr/local
/var/lib/libvirt/images
/var/opt
/var/lib/mysql
/var/lib/mariadb
/tmp
/boot/grub2/x86_64-efi
/srv
/var/crash
The fstab from the old disk looks identical to the one on new disk apart from the UUID of the disk (which I have checked and re-checked).
The contents of the disk are basically identical apart from the fstab and boot loader (since I rsynced all of the data across when the system was running in rescue mode).
Can anybody tell me what I am missing here ?
It still boots fine from the old disk, so I am not completely stuck, but it’s got me stumped.
Cheers,
Mark