Menu

Restoring to a new SSD. Issues with fstab and UUID

Anonymous
2024-03-10
2024-03-11
  • Anonymous

    Anonymous - 2024-03-10

    I know this has been asked a thousand times, but I've read many threads, websites and forums and I'm still confused.

    I used RescueZilla to restore a RHEL v9.3 installation from one PC to a near identical PC. The actual resoration of partitions and files went well and the new PC booted ... sort of. Howver, I have fallen foul of the UUID and fstab issue.

    On booting I was presented with the "You are in emergency mode" message. After logging in as root I ran "mount -a" which returned the error

     /home: special device /dev/mapper/rhel_server-home does not exist
     /dev/mapper/rhel_server-home: Can't open blockdev
    

    Back in fstab I rem'ed out the /rhel_server-home line:

    /dev/mapper/rhel_server-root / xfs defaults 0 0
    UUID=fdc71136-c745-4738-ad51-ebd4547d1c66 /boot xfs defaults 0 0
    UUID=A3BC-9132 /boot/efi vfat umask=0077,shortname=winnt 0 2
    # /dev/mapper/rhel_server-home /home xfs defaults 0 0
    /dev/mapper/rhel_server-swap none swap defaults 0 0

    and rebooted. The system rebooted as normal but without 'home' of course.

    I've taken a look at "lsblk -r", "blkid", "ls -l /dev/disk/by-uuid" and a few other things.
    This is where I'm stuck. I know I need to fix the UUID but I've hit the wall.

    Guidance and/or pointers much appreciated.
    Thanks from AU.

     
  • Anonymous

    Anonymous - 2024-03-11

    For the benefit of others, I found a solution that seems to work for me.

    Looking at this page from the Rocky Linux site:
    https://docs.rockylinux.org/release_notes/9_2/
    and specifically, the box titled: "Upgrading with LVM devices may result in boot failure"
    I followed 'Option 2' ...

    "Prior to rebooting after upgrading, rename the /etc/lvm/devices/system.devices file (e.g., mv /etc/lvm/devices/system.devices{,.bak}) and, once the system has rebooted, run vgimportdevices --all to regenerate the file in the new format."

    ... and while the issue described wasn't exactly what I was seeing - by renaming "system.devices" and regenerating it did the trick. I was able to un-rem /dev/mapper/rhel_server-home in fstab and get a clean boot.

    This may, or may not, work for others, but maybe it's worth trying as it solved my problem.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.