My system boots into GRUB initially

Just tried Recovery Mode and it booted, albeit after a good PT1M30S of trying to access an apparently inaccessible drive via a its (G/U)UID.

Unfortunately it seems like I’m going to be using Recovery Mode for a little while, considering

RokeJulianLockhart@s1e8h4:~> script -a -c 'sudo swapoff -a'
Script started, output log file is 'typescript'.
[sudo] password for root: 
swapoff: cannot find the device for UUID=7ffbb2f4-3e39-410c-9fea-48964cf2ccd1
Script done.
RokeJulianLockhart@s1e8h4:~>

Per

Changed

UUID=579fa64f-308b-4c25-a716-74ec679512e7  /                       btrfs  defaults                      0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /var                    btrfs  subvol=/@/var                 0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /usr/local              btrfs  subvol=/@/usr/local           0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /srv                    btrfs  subvol=/@/srv                 0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /root                   btrfs  subvol=/@/root                0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /opt                    btrfs  subvol=/@/opt                 0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /home                   btrfs  subvol=/@/home                0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /boot/grub2/x86_64-efi  btrfs  subvol=/@/boot/grub2/x86_64-efi  0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /boot/grub2/i386-pc     btrfs  subvol=/@/boot/grub2/i386-pc  0  0
UUID=7ffbb2f4-3e39-410c-9fea-48964cf2ccd1  swap                    swap   defaults                      0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /.snapshots             btrfs  subvol=/@/.snapshots          0  0
UUID=12AC-35DE                             /boot/efi               vfat   utf8                          0  2

to

UUID=579fa64f-308b-4c25-a716-74ec679512e7  /                       btrfs  defaults                      0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /var                    btrfs  subvol=/@/var                 0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /usr/local              btrfs  subvol=/@/usr/local           0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /srv                    btrfs  subvol=/@/srv                 0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /root                   btrfs  subvol=/@/root                0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /opt                    btrfs  subvol=/@/opt                 0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /home                   btrfs  subvol=/@/home                0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /boot/grub2/x86_64-efi  btrfs  subvol=/@/boot/grub2/x86_64-efi  0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /boot/grub2/i386-pc     btrfs  subvol=/@/boot/grub2/i386-pc  0  0
UUID=579fa64f-308b-4c25-a716-74ec679512e7  /.snapshots             btrfs  subvol=/@/.snapshots          0  0
UUID=12AC-35DE                             /boot/efi               vfat   utf8                          0  2

Gonna try rebooting.

That fixed the error that appeared whenever sudo swapoff -a was run and the start job failures at boot using the recovery kernel are gone now, but I still can’t boot using the regular kernel. I wish it would provide some kind of failure message.

I thought maybe the changes to the drive weren’t passed to the kernel, so I recreated its GPT partition table again and added a BTRFS partition. No change. I really don’t want to have to remove this drive to test because it’d involve a fair bit of hardware juggling inside my case.

too.


I’m going to try

It worked! I removed the path of the defunct drive which was listed after resume=.*. I’m rather ecstatic, having fixed a problem adequately enough myself to have considered it my own doing.

However, I now need to permanently remove that flag from grub. I have very little idea where noresume goes, per

RokeJulianLockhart@s1e8h4:~> sudo update-grub
[sudo] password for root: 
sudo: update-grub: command not found
RokeJulianLockhart@s1e8h4:~> grub2-mkconfig -o /boot/grub2/grub.cfg
Absolute path to 'grub2-mkconfig' is '/usr/sbin/grub2-mkconfig', so running it may require superuser privileges (eg. root).
RokeJulianLockhart@s1e8h4:~> sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-6.5.6-1-default
Found initrd image: /boot/initrd-6.5.6-1-default
Found linux image: /boot/vmlinuz-6.5.4-1-default
Found initrd image: /boot/initrd-6.5.4-1-default
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
RokeJulianLockhart@s1e8h4:~> systemctl reboot

resume=noresume doesn’t work. In fact, nor did

I can’t use

update-grub

because

RokeJulianLockhart@s1e8h4:~> sudo update-grub
sudo: update-grub: command not found

states to use update-initramfs -u too, it’s not even in /sbin

and there’s no mkinitrd either


RokeJulianLockhart@s1e8h4:~> cat /proc/swaps
Filename                                Type            Size            Used            Priority
RokeJulianLockhart@s1e8h4:~> cat /etc/initramfs-tools/conf.d/resume
cat: /etc/initramfs-tools/conf.d/resume: No such file or directory

Using Review Suggested edits - Unix & Linux Stack Exchange, note

I don’t know how to remove that parameter.

I never hibernate. I have lots of systems in multiboot. I’d not often remember what I booted last on any given PC, and be unlikely to want to pickup from wherever I left off. Thus, noresume is on all my linu lines, and included in /etc/default/grub for GRUB_CMDLINE_LINUX_DEFAULT=. Noresume is needed because dracut includes resume=UUID=“whateverlongstring” in the initrd.

You only need “noresume” (as a standalone parameter; no resume=…).

What are the errors when you use

grub2-mkconfig -o /boot/grub2/grub.cfg

@susejunky


Don’t know what this means, but I trust you. Regardless, it doesn’t seem to work for me, because it fails to boot like the current unmodified GRUB config does.

[quote=“rokejulianlockhart, post:33, topic:169812”]

I cannot see any errors!

If you want to remove the “resume = …”-statement permanently from your boot setup you should

  1. edit the file /etc/default/grub (to do this you need to be “root”) and replace the “resume = …”-statement in the line beginning with GRUB_CMDLINE_LINUX_DEFAULT="… by “noresume”.

  2. then run (as “root”) the commands

grub2-mkconfig -o /boot/grub2/grub.cfg
dracut -f

What about YaST > System > Bootloader > tab Kernelparameters?

@SUSEJunky, to think it was that easy. Hours of scouting the internet never landed me at /etc/default/grub somehow. I also was under the impression that running the GRUB rebuilder would apply disparate changes made using things like swapoff rather than export a template file (/etc/default/grub) to whatever GRUB actually uses.

Thank you.

@hcvv, I’ve been unable to locate it.

For future reference for myself, per

It’s

  1. 20231024T184325BST

I’ve converted

# If you change this file, run 'grub2-mkconfig -o /boot/grub2/grub.cfg' afterwards to update
# /boot/grub2/grub.cfg.

# Uncomment to set your own custom distributor. If you leave it unset or empty, the default
# policy is to determine the value from /etc/os-release
GRUB_DISTRIBUTOR=
GRUB_DEFAULT=saved
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=8
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/disk/by-uuid/7ffbb2f4-3e39-410c-9fea-48964cf2ccd1 mitigations=auto quiet security=apparmor"
GRUB_CMDLINE_LINUX=""

# Uncomment to automatically save last booted menu entry in GRUB2 environment

# variable `saved_entry'
# GRUB_SAVEDEFAULT="true"
#Uncomment to enable BadRAM filtering, modify to suit your needs

# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
# GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
#Uncomment to disable graphical terminal (grub-pc only)

GRUB_TERMINAL="gfxterm"
# The resolution used on graphical terminal
#note that you can use only modes which your graphic card supports via VBE

# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE="auto"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
# GRUB_DISABLE_LINUX_UUID=true
#Uncomment to disable generation of recovery mode menu entries

# GRUB_DISABLE_RECOVERY="true"
#Uncomment to get a beep at grub start

# GRUB_INIT_TUNE="480 440 1"
GRUB_BACKGROUND=
GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt
SUSE_BTRFS_SNAPSHOT_BOOTING="true"
GRUB_USE_LINUXEFI="true"
GRUB_DISABLE_OS_PROBER="false"
GRUB_ENABLE_CRYPTODISK="n"
GRUB_CMDLINE_XEN_DEFAULT="vga=gfx-1024x768x16"

to

# If you change this file, run 'grub2-mkconfig -o /boot/grub2/grub.cfg' afterwards to update
# /boot/grub2/grub.cfg.

# Uncomment to set your own custom distributor. If you leave it unset or empty, the default
# policy is to determine the value from /etc/os-release
GRUB_DISTRIBUTOR=
GRUB_DEFAULT=saved
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=8
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent noresume mitigations=auto quiet security=apparmor"
GRUB_CMDLINE_LINUX=""

# Uncomment to automatically save last booted menu entry in GRUB2 environment

# variable `saved_entry'
# GRUB_SAVEDEFAULT="true"
#Uncomment to enable BadRAM filtering, modify to suit your needs

# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
# GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
#Uncomment to disable graphical terminal (grub-pc only)

GRUB_TERMINAL="gfxterm"
# The resolution used on graphical terminal
#note that you can use only modes which your graphic card supports via VBE

# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE="auto"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
# GRUB_DISABLE_LINUX_UUID=true
#Uncomment to disable generation of recovery mode menu entries

# GRUB_DISABLE_RECOVERY="true"
#Uncomment to get a beep at grub start

# GRUB_INIT_TUNE="480 440 1"
GRUB_BACKGROUND=
GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt
SUSE_BTRFS_SNAPSHOT_BOOTING="true"
GRUB_USE_LINUXEFI="true"
GRUB_DISABLE_OS_PROBER="false"
GRUB_ENABLE_CRYPTODISK="n"
GRUB_CMDLINE_XEN_DEFAULT="vga=gfx-1024x768x16"

and performed

RokeJulianLockhart@s1e8h4:~> code-insiders /etc/default/grub
RokeJulianLockhart@s1e8h4:~> grub2-mkconfig -o /boot/grub2/grub.cfg
Absolute path to 'grub2-mkconfig' is '/usr/sbin/grub2-mkconfig', so running it may require superuser privileges (eg. root).
RokeJulianLockhart@s1e8h4:~> sudo grub2-mkconfig -o /boot/grub2/grub.cfg
[sudo] password for root: 
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-6.5.8-1-default
Found initrd image: /boot/initrd-6.5.8-1-default
Found linux image: /boot/vmlinuz-6.5.6-1-default
Found initrd image: /boot/initrd-6.5.6-1-default
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
RokeJulianLockhart@s1e8h4:~> dracut -f
dracut[I]: Executing: /usr/bin/dracut -f
dracut[F]: No permission to write to /boot.
RokeJulianLockhart@s1e8h4:~> sudo dracut -f
dracut[I]: Executing: /usr/bin/dracut -f
dracut[I]: Module 'systemd-networkd' will not be installed, because command 'networkctl' could not be found!
dracut[I]: Module 'systemd-networkd' will not be installed, because command '/usr/lib/systemd/systemd-networkd' could not be found!
dracut[I]: Module 'systemd-networkd' will not be installed, because command '/usr/lib/systemd/systemd-networkd-wait-online' could not be found!
dracut[I]: Module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because command 'portablectl' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because command '/usr/lib/systemd/systemd-portabled' could not be found!
dracut[I]: Module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because command 'resolvectl' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because command '/usr/lib/systemd/systemd-resolved' could not be found!
dracut[I]: Module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut[I]: Module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut[I]: Module 'connman' will not be installed, because command 'connmand' could not be found!
dracut[I]: Module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut[I]: Module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut[I]: 35network-legacy: Could not find any command of 'dhclient wicked'!
dracut[I]: Module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut[I]: Module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut[I]: Module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut[I]: memstrack is not available
dracut[I]: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut[I]: Module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because command 'portablectl' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because command '/usr/lib/systemd/systemd-portabled' could not be found!
dracut[I]: Module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because command 'resolvectl' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because command '/usr/lib/systemd/systemd-resolved' could not be found!
dracut[I]: Module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut[I]: Module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut[I]: Module 'connman' will not be installed, because command 'connmand' could not be found!
dracut[I]: Module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut[I]: Module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut[I]: 35network-legacy: Could not find any command of 'dhclient wicked'!
dracut[I]: Module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut[I]: Module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut[I]: memstrack is not available
dracut[I]: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: drm ***
dracut[I]: *** Including module: plymouth ***
dracut[I]: *** Including module: btrfs ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: suse-btrfs ***
dracut[I]: *** Including module: suse-xfs ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: dracut-systemd ***
dracut[I]: *** Including module: ostree ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including module: suse ***
dracut[I]: *** Including module: suse-initrd ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing AuthenticAMD.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: Stored kernel commandline:
dracut[I]:  rd.driver.pre=btrfs
dracut[I]:  root=UUID=579fa64f-308b-4c25-a716-74ec679512e7 rootfstype=btrfs rootflags=rw,relatime,ssd,discard=async,space_cache=v2,subvolid=266,subvol=/@/.snapshots/1/snapshot,subvol=@/.snapshots/1/snapshot
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file '/boot/initrd-6.5.8-1-default' ***
dracut[I]: *** Creating initramfs image file '/boot/initrd-6.5.8-1-default' done ***
RokeJulianLockhart@s1e8h4:~>

Time to

systemctl reboot

!

1 Like

I do not understand. Is your page long post with all sorts of images any different from my one liner?

1 Like

Yes, @hcvv. The names you used didn’t correspond to what I saw in YaST, as the screenshots depict.


Worked. Thank you lots, @susejunky.