SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# 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.
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"
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.