LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   TW 32 bit has disappeared from own grub menu (https://www.linuxquestions.org/questions/suse-opensuse-60/tw-32-bit-has-disappeared-from-own-grub-menu-4175733846/)

MakeTopSite 02-14-2024 04:28 AM

TW 32 bit has disappeared from own grub menu
 
It happened after
Code:

zypper dup && reboot
Tuesday. Only Memtest remains in TW grub menu.

Multiboot with Debian 12.

/boot is on separate partition because Debian's grub can't access btrfs.

Code:

# cat /etc/fstab
UUID=SDA6_UUID  /                    btrfs  defaults                      0  0
UUID=SDA6_UUID  /var                btrfs  subvol=/@/var                0  0
UUID=SDA6_UUID  /usr/local          btrfs  subvol=/@/usr/local          0  0
UUID=SDA6_UUID  /tmp                btrfs  subvol=/@/tmp                0  0
UUID=SDA6_UUID  /srv                btrfs  subvol=/@/srv                0  0
UUID=SDA6_UUID  /root                btrfs  subvol=/@/root                0  0
UUID=SDA6_UUID  /opt                btrfs  subvol=/@/opt                0  0
UUID=SDA6_UUID  /home                btrfs  subvol=/@/home                0  0
UUID=SDA7_UUID  /boot/grub2  ext4  defaults  0  0
UUID=SDA6_UUID  /.snapshots          btrfs  subvol=/@/.snapshots          0  0

Code:

# mount | egrep -v "cgroup|rpc|tmpfs|^sys|on /dev|on /proc|on /sys|on /var" | sort
/dev/sda6 on /home type btrfs (rw,relatime,space_cache,subvolid=264,subvol=/@/home)
/dev/sda6 on /opt type btrfs (rw,relatime,space_cache,subvolid=263,subvol=/@/opt)
/dev/sda6 on /root type btrfs (rw,relatime,space_cache,subvolid=262,subvol=/@/root)
/dev/sda6 on /.snapshots type btrfs (rw,relatime,space_cache,subvolid=266,subvol=/@/.snapshots)
/dev/sda6 on /srv type btrfs (rw,relatime,space_cache,subvolid=261,subvol=/@/srv)
/dev/sda6 on /tmp type btrfs (rw,relatime,space_cache,subvolid=260,subvol=/@/tmp)
/dev/sda6 on / type btrfs (rw,relatime,space_cache,subvolid=267,subvol=/@/.snapshots/1/snapshot)
/dev/sda6 on /usr/local type btrfs (rw,relatime,space_cache,subvolid=259,subvol=/@/usr/local)
/dev/sda7 on /boot/grub2 type ext4 (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)

I've tried from TW grub command line:
Code:

set root=(hd0,6)
linux (hd0,7)/boot/vmlinuz-6.5.4-1-pae root=/dev/sda6
initrd (hd0,7)/boot/initrd-6.5.4-1-pae
boot

but
Code:

You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, or "exit" to continue bootup.
Give root password for maintenance
(or press Control-D to continue)
Reloading system manager configuration.
Starting default.target.
You are in emergency mode. After logging in, type "journalctl -xb" to  view system logs, "systemctl reboot" to reboot, or "exit" to continue  bootup.
Give root password for maintenance
(or press Control-D to continue)

Code:

journalctl -xb
mount: /boot/grub2: unknown filesystem type 'ext4'.
...
boot-grub2.mount: Failed with result 'exit-code'.
Failed to mount /boot/grub2.

Any idea please ?

colorpurple21859 02-14-2024 01:30 PM

Post the contents of file /etc/default/grub and directory /etc/grub.d

MakeTopSite 02-15-2024 03:03 AM

Quote:

Originally Posted by colorpurple21859 (Post 6483606)
Post the contents of file /etc/default/grub and directory /etc/grub.d

Code:

# 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=verbose mitigations=auto"
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_DISABLE_OS_PROBER="false"
GRUB_ENABLE_CRYPTODISK="n"
GRUB_CMDLINE_XEN_DEFAULT="vga=gfx-1024x768x16"

Code:

ls grub.d/
00_header    10_linux      25_bli            40_custom              90_persistent
00_tuned    20_linux_xen  30_os-prober      41_custom              95_textmode
05_crypttab  20_memtest86+  30_uefi-firmware  80_suse_btrfs_snapshot  README


pan64 02-15-2024 03:07 AM

it is the same issue as this other thread: https://www.linuxquestions.org/quest...ll-4175733843/

probably this helps: https://bbs.archlinux.org/viewtopic.php?pid=1644982

colorpurple21859 02-15-2024 09:08 PM

what is the output of the following:
Code:

sudo tune2fs -l /dev/sda7 | grep metadata_csum_seed
Code:

sudo grub2-probe --target=fs --device /dev/sda7

MakeTopSite 02-18-2024 03:23 AM

Quote:

Originally Posted by pan64 (Post 6483730)


Problem on archlinux thread was solved after /boot was added to fstab. Here is /boot already present in fstab. ( https://www.linuxquestions.org/quest...6/ )

MakeTopSite 02-18-2024 03:26 AM

Quote:

Originally Posted by colorpurple21859 (Post 6483925)
what is the output of the following:
Code:

sudo tune2fs -l /dev/sda7 | grep metadata_csum_seed
Code:

sudo grub2-probe --target=fs --device /dev/sda7

Code:

# tune2fs -l /dev/sda7 | grep metadata_csum_seed
#

Code:

# grub2-probe --target=fs --device /dev/sda7
ext2
#


colorpurple21859 02-18-2024 09:18 AM

No issues there, this is the other problem I see based on fstab:
Quote:

UUID=SDA7_UUID /boot/grub2 ext4
and grub prompt command:
Quote:

linux (hd0,7)/boot/vmlinuz-6.5.4-1-pae
You have a /boot on the sda7, however mounting sda7 on /boot/grub2. If you are mounting sda7 on /boot/grub2 the only files that should be in the root of sda7 would be the files that are located in /boot/grub2. If you are attempting to create a boot partition, only the files and directories in /boot without the boot directory should be in sda7 and the mount point in fstab would be
Code:

UUID=SDA7_UUID  /boot  ext4 ....
and the grub prompt entry would be
Code:

linux (hd0,7)/vmlinuz-6.5.4-1-pae root=/dev/sda6
initrd (hd0,7)/initrd-6.5.4-1-pae
boot

note the '(hd0,7)/vmlinuz ...." the (hd0,7) overrides the previous "set root=(hd0,6)"
Without knowing the contents of sda6 /boot and the contents of sda7, without sda7 mounted to /boot/grub2 can't give any real advice.

MakeTopSite 03-27-2024 05:27 AM

Quote:

Originally Posted by colorpurple21859 (Post 6484429)
No issues there, this is the other problem I see based on fstab:

and grub prompt command:
You have a /boot on the sda7, however mounting sda7 on /boot/grub2. If you are mounting sda7 on /boot/grub2 the only files that should be in the root of sda7 would be the files that are located in /boot/grub2. If you are attempting to create a boot partition, only the files and directories in /boot without the boot directory should be in sda7 and the mount point in fstab would be
Code:

UUID=SDA7_UUID  /boot  ext4 ....
and the grub prompt entry would be
Code:

linux (hd0,7)/vmlinuz-6.5.4-1-pae root=/dev/sda6
initrd (hd0,7)/initrd-6.5.4-1-pae
boot

note the '(hd0,7)/vmlinuz ...." the (hd0,7) overrides the previous "set root=(hd0,6)"
Without knowing the contents of sda6 /boot and the contents of sda7, without sda7 mounted to /boot/grub2 can't give any real advice.

Quote:

UUID=SDA7_UUID /boot/grub2 ext4
Yes it looks strange but it worked until recently. I had to solve it ASAP and by myself because no one other (on another forum) could help me.

I've corrected it to
Code:

UUID=SDA7_UUID  /boot  ext4 ....
Problem was that latest kernel was from Oct. 2023 so I've booted TW iso from usb flash disk, chrooted and installed kernel-pae.
TW grub is used now and everything works.

But situation has changed - kernel is only installed in sda6:

Code:

ls -lt /mnt/sda6/boot/
drwxr-xr-x 1 root root      98 12 Mar  08:27 grub2
-rw------- 1 root root 47423255 12 Mar  08:26 initrd-6.7.7-1-pae
lrwxrwxrwx 1 root root      18 12 Mar  07:54 initrd -> initrd-6.7.7-1-pae
lrwxrwxrwx 1 root root      19 12 Mar  07:54 vmlinuz -> vmlinuz-6.7.7-1-pae
lrwxrwxrwx 1 root root      37 12 Mar  07:54 config-6.7.7-1-pae -> ../usr/lib/modules/6.7.7-1-pae/config
lrwxrwxrwx 1 root root      42 12 Mar  07:54 sysctl.conf-6.7.7-1-pae -> ../usr/lib/modules/6.7.7-1-pae/sysctl.conf
lrwxrwxrwx 1 root root      41 12 Mar  07:54 System.map-6.7.7-1-pae -> ../usr/lib/modules/6.7.7-1-pae/System.map
lrwxrwxrwx 1 root root      38 12 Mar  07:54 vmlinuz-6.7.7-1-pae -> ../usr/lib/modules/6.7.7-1-pae/vmlinuz
-rw------- 1 root root 47345854  1 Mar  14:59 initrd-6.7.6-1-default
-rw------- 1 root root 47359066  1 Mar  14:58 initrd-6.7.4-1-default
lrwxrwxrwx 1 root root      41  1 Mar  14:40 config-6.7.6-1-default -> ../usr/lib/modules/6.7.6-1-default/config
lrwxrwxrwx 1 root root      46  1 Mar  14:40 sysctl.conf-6.7.6-1-default -> ../usr/lib/modules/6.7.6-1-default/sysctl.conf
lrwxrwxrwx 1 root root      45  1 Mar  14:40 System.map-6.7.6-1-default -> ../usr/lib/modules/6.7.6-1-default/System.map
lrwxrwxrwx 1 root root      42  1 Mar  14:40 vmlinuz-6.7.6-1-default -> ../usr/lib/modules/6.7.6-1-default/vmlinuz
-rw-r--r-- 1 root root        0  1 Mar  14:40 do_purge_kernels
lrwxrwxrwx 1 root root      41 18 Feb 12:47 config-6.7.4-1-default -> ../usr/lib/modules/6.7.4-1-default/config
lrwxrwxrwx 1 root root      45 18 Feb 12:47 System.map-6.7.4-1-default -> ../usr/lib/modules/6.7.4-1-default/System.map
lrwxrwxrwx 1 root root      46 18 Feb 12:47 sysctl.conf-6.7.4-1-default -> ../usr/lib/modules/6.7.4-1-default/sysctl.conf
lrwxrwxrwx 1 root root      42 18 Feb 12:47 vmlinuz-6.7.4-1-default -> ../usr/lib/modules/6.7.4-1-default/vmlinuz
drwxr-xr-x 1 root root        6  9 Feb 00:58 efi
-rw-r--r-- 1 root root  142796  9 Feb 00:58 memtest.bin

Code:

ls -lt /mnt/sda6/boot/grub2
-rw------- 1 root root 14011 12 Mar  08:27 grub.cfg
drwxr-xr-x 1 root root  396 12 Mar  08:27 locale
drwxr-xr-x 1 root root  6536 12 Mar  08:27 i386-pc
drwxr-xr-x 1 root root    16 12 Mar  08:20 themes
drwxr-xr-x 1 root root    22 29 Feb  2020 fonts
-rw-r--r-- 1 root root    30 29 Feb  2020 device.map
-rw-r--r-- 1 root root  1024 29 Feb  2020 grubenv

(called from another distro)

No *6.7.7-1* kernel files in sda7.


All times are GMT -5. The time now is 10:21 AM.