I installed OpenSuse 15.3 in a dual boot situation with a fresh Debian 11/Mate . Now when I boot into Debian 11 I get a screen saying you are in Emegerncy Mode.
This same thing happened when I installed Debian 11 with my old Opensuse install, I got Emergency mode when booting into Opensuse.
Can anyone tell me what happened and how to fix it?
To expand on what arvidjaar wrote, most installers format the swap partition. This invalidates the swap partition entry in fstab in already existing installation(s) by changing the swap partition’s UUID. Easiest way to fix this is to swapoff -a and mkswap -L, putting a LABEL of your choice on the swap, making it easy to update the FSTABs to match, by using a shorter LABEL= instead of an immemorable 36 character UUID= for the entry in each fstab. The UUID change also affects /boot/grub(2)/grub.cfg, which carries the swap’s UUID as well in the resume= parameter. Thus grub.cfg must be updated to match, either using LABEL= instead of UUID=, or with the new UUID. The initrds also include the swap’s UUID, so should be rebuilt after all the other edits are done, unless each Grub linu line carries a noresume parameter instead of resume=.
Looking at the fstab from each system, there is a swap entry in the Debian file, but not the OpenSuse file.
Using Partitioner in Opensuse, there is no label or mount point for swap. Am I correct in assuming Debian is trying to mount swap and Opensuse does not?
Also Debian’s root entry is:
UUID=9bfd8342-8f96-41f9-a026-be15e4dc0688 / ext4 errors=remount-ro 0 1
Opensuse’s is:
UUID=1a9998d1-ad95-4201-9eb1-741855b06c54 / ext4 defaults 0 1
They are different partitions . The UUIDs for each partition match in each file.
What you show are the / (root) partitions of both systems. They are of course different.
Please tell less and show more. E.g. show those /etc/fstabs of both systems. And all please between CODE tags (the # button in th tool bar of the post editor).
Given Debian is the installation failing to boot, check to see whether the root= and the resume= on the linu line from which you are attempting to boot Debian matches the actual UUID of the swap partition, and the UUID for the swap partition in Debian’s fstab. All three must match. Since openSUSE was last installed, you are probably attempting to boot Debian from openSUSE’s grub.cfg. If you are trying to boot Debian from its own grub.cfg, then that is currently the most important one to reconcile.
Maybe posting here parted -l and lsblk -f and efibootmgr -v output, and content of both fstabs, would be a good idea.
UUID=9bfd8342-8f96-41f9-a026-be15e4dc0688 / ext4 errors=remount-ro 0 1
# /15_3 was on /dev/sdb2 during installation
UUID=95347d99-497a-4175-b160-3338607adf9e /15_3 ext4 defaults 0 2
# /Back was on /dev/sdb6 during installation
UUID=e37bf6ce-c51c-4400-b48d-83c13e0dbe3f /Back ext4 defaults 0 2
# /Open was on /dev/sdb1 during installation
UUID=f852782d-7fd6-43a8-9e85-76487f691649 /Open ext4 defaults 0 2
# /home was on /dev/sda5 during installation
UUID=3784f265-7b38-44d8-8649-1f9ba604b604 /home ext4 defaults 0 2
# /stuff was on /dev/sda6 during installation
UUID=b5c2d241-8055-44f7-982c-aaff861ca9a9 /stuff ext4 defaults 0 2
# swap was on /dev/sda1 during installation
UUID=ed3cd9aa-a1fb-4960-a5e5-53d38b9ee8d3 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
in Debian’s fstab and Debian might boot. The linu lines in the two grub.cfg files needs the correct, according to lsblk -f, 15.3 / UUID for root=, and the UUID for the swap in Debian’s fstab also needs to match the swap partition’s, according to lsblk -f, actual UUID.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb5 during installation
UUID=9bfd8342-8f96-41f9-a026-be15e4dc0688 / ext4 errors=remount-ro 0 1
# /15_3 was on /dev/sdb2 during installation
UUID=95347d99-497a-4175-b160-3338607adf9e /15_3 ext4 defaults 0 2
# /Back was on /dev/sdb6 during installation
UUID=e37bf6ce-c51c-4400-b48d-83c13e0dbe3f /Back ext4 defaults 0 2
# /Open was on /dev/sdb1 during installation
UUID=f852782d-7fd6-43a8-9e85-76487f691649 /Open ext4 defaults 0 2
# /home was on /dev/sda5 during installation
UUID=3784f265-7b38-44d8-8649-1f9ba604b604 /home ext4 defaults 0 2
# /stuff was on /dev/sda6 during installation
UUID=b5c2d241-8055-44f7-982c-aaff861ca9a9 /stuff ext4 defaults 0 2
# swap was on /dev/sda1 during installation
UUID=ed3cd9aa-a1fb-4960-a5e5-53d38b9ee8d3 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1
│ swap 1 ed3cd9aa-a1fb-4960-a5e5-53d38b9ee8d3 [SWAP]
├─sda2
│
├─sda5
│ ext4 1.0 home 3784f265-7b38-44d8-8649-1f9ba604b604 8.9G 94% /home
└─sda6
ext4 1.0 stuff b5c2d241-8055-44f7-982c-aaff861ca9a9 35.2G 87% /stuff
sdb
├─sdb1
│ ext4 1.0 Open f852782d-7fd6-43a8-9e85-76487f691649 45.3G 0% /Open
├─sdb2
│ ext4 1.0 15_3 1a9998d1-ad95-4201-9eb1-741855b06c54
├─sdb3
│
├─sdb5
│ ext4 1.0 Buster
│ 9bfd8342-8f96-41f9-a026-be15e4dc0688 65.2G 11% /
└─sdb6
ext4 1.0 Back e37bf6ce-c51c-4400-b48d-83c13e0dbe3f 58.9G 88% /Back
sr0
I am now able to boot into both operating systems.
I used LABEL= instead of UUID= for the / and /15_3 partitions in the Debian fstab. I am writing this from the Debian install.
Thanks for all the help and pointers.
This is why changing Debian’s fstab to mount 15.3’s / filesystem by LABEL instead of UUID enables Debian to boot without noauto or nofail as mount options for the 15.3 filesystem.