LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-14-2024, 04:28 AM   #1
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 252

Rep: Reputation: 3
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 ?
 
Old 02-14-2024, 01:30 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Post the contents of file /etc/default/grub and directory /etc/grub.d

Last edited by colorpurple21859; 02-14-2024 at 01:31 PM.
 
Old 02-15-2024, 03:03 AM   #3
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 252

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by colorpurple21859 View Post
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
 
Old 02-15-2024, 03:07 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
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
 
Old 02-15-2024, 09:08 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
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

Last edited by colorpurple21859; 02-15-2024 at 09:13 PM.
 
Old 02-18-2024, 03:23 AM   #6
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 252

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by pan64 View Post

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/#post6483477 )
 
Old 02-18-2024, 03:26 AM   #7
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 252

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by colorpurple21859 View Post
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
#
 
Old 02-18-2024, 09:18 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
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.

Last edited by colorpurple21859; 02-18-2024 at 09:24 AM.
 
Old 03-27-2024, 05:27 AM   #9
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 252

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by colorpurple21859 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Microsoft has created its own FreeBSD. Repeat. Microsoft has created its own FreeBSD LXer Syndicated Linux News 0 06-09-2016 11:42 AM
LXer: Microsoft has developed its own Linux. Repeat. Microsoft has developed its own Linux LXer Syndicated Linux News 0 09-18-2015 04:51 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
application menu disappeared and the main menu item has no response sunnior Ubuntu 12 11-03-2011 04:28 AM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration