LinuxQuestions.org
Visit Jeremy's Blog.
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 12-26-2020, 04:33 PM   #1
cmt29
LQ Newbie
 
Registered: Dec 2020
Posts: 8

Rep: Reputation: Disabled
Error attempting renistall Grub2 bootloader from Opensuse Leap 15.2 Rescue Consolel


Following a recent problematic patch my Opensuse Leap 15.2 system stalled during boot, then landed me at the grub prompt. So I booted to the rescue console and attempted to chroot to reinstall the bootloader.

I followed the instructions from the Opensuse docs here: [1].
My harddrive setup is (from lsblk):

Code:
nvme0n1
    -nvme0n1p1 
    -nvme0n1p2
    --vgopensuse-root
    --vgopensuse-swap_1
When I run yast bootlodaer I receive the following error:

Code:
Error
    Execution of command "[["/usr/bin/grub2-editenv", "list"]]" failed.
    Exit code: 1
    Error output: /usr/bin/grub2-editenv: error: unknown filesystem.
When I run grub2-install -v I get the following error before it quits:

Code:
...
grub2-install: info: /dev/mapper/vgopensuse-root is not present.
    grub2-install: error: unknown filesystem.
Output of ls -l /dev/mapper/vgopensuse-root:

Code:
lrwxrwxrwx 1 root root 7 Dec 26 20:27 /dev/mapper/vgopensuse-root -> ../dm-0
Any ideas?

[1]: https://doc.opensuse.org/documentati...-rescue-access
 
Old 12-27-2020, 01:00 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
what is output of
Code:
lsblk -f
when attempting to run grub2-install
 
Old 12-27-2020, 04:08 PM   #3
cmt29
LQ Newbie
 
Registered: Dec 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for reply. I'm away from home at the moment, so I'll check in a few days when I'm back.
 
Old 01-01-2021, 01:45 PM   #4
cmt29
LQ Newbie
 
Registered: Dec 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
Here's the output of
Code:
lsblk -f
from within the chroot:


Code:
NAME                    FSTYPE      LABEL                            UUID                                   FSAVAIL FSUSE% MOUNTPOINT
loop0                   squashfs                                                                                           
loop1                   squashfs                                                                                           
loop2                   squashfs                                                                                           
loop3                   squashfs                                                                                           
loop4                   squashfs                                                                                           
loop5                   squashfs                                                                                           
sda                     iso9660     openSUSE-Leap-15.2-NET-x86_64695 2020-06-26-06-35-11-10                                
├─sda1                  vfat                                         C010-9270                                             
└─sda2                  iso9660     openSUSE-Leap-15.2-NET-x86_64695 2020-06-26-06-35-10-90                                
sr0                                                                                                                        
nvme0n1                                                                                                                    
├─nvme0n1p1             vfat                                         6AB3-3361                               431.7M    16% /boot/efi
└─nvme0n1p2             LVM2_member                                  harDiA-Ejfm-gK1T-1r5e-GDfj-6ML5-YxN6lv                
  ├─vgopensuse-root     ext4                                         64de3cdc-e29a-41d9-8a4f-bb4de263cf36     18.5G    82% /
  ├─vgopensuse-swap_1   swap                                         ee7dc539-44a1-4236-ae1c-5f87d675782c                  
  └─vgopensuse-VMBackup ext4                                         7b1086f0-677b-42f3-b220-36e5944967eb
 
Old 01-01-2021, 05:07 PM   #5
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
From the openSuse console, run these commands at login prompt:
Code:
root
mount /dev/mapper/vgopensuse-root /mnt
mount /dev/nvme0n1p1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do mount -B $i /mnt$i; done
chroot /mnt
grub2-mkconfig -o /boot/efi/EFI/opensuse/grub.cfg
exit
for i in /run /sys /proc /dev/pts /dev; do umount /mnt$i; done
umount /mnt/boot/efi
umount /mnt 
halt
NOTE:
If you want/need to reinstall grub, do it before the mkconfig step, but likely not needed.

Last edited by Brains; 01-02-2021 at 07:52 AM.
 
Old 01-02-2021, 02:34 AM   #6
cmt29
LQ Newbie
 
Registered: Dec 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks. Followed your instructions. Error messages when running
Code:
grub2-mkconfig
Code:
/usr/bin/grub2-editenv: error: unknown filesystem.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.18-lp152.57-default
Found initrd image: /boot/initrd-5.3.18-lp152.57-default
/usr/sbin/grub2-probe: error: unknown filesystem.
Found linux image: /boot/vmlinuz-5.3.18-lp152.54-default
Found initrd image: /boot/initrd-5.3.18-lp152.54-default
Found linux image: /boot/vmlinuz-5.3.18-lp152.50-default
Found initrd image: /boot/initrd-5.3.18-lp152.50-default
/usr/bin/grub2-editenv: error: unknown filesystem.
done
However, I now see the Grub menu upon reboot, not the grub prompt. So some progress. However, when I try to boot any of the options I get the following:

Code:
Loading Linux 5.3.18-lp152.57-default ...
error: file '/boot/vmlinuz-5.3.18-lp152.57-default' not found.
Loading initial ramdisk
error: you need to load the kernel first.
 
Old 01-02-2021, 07:18 AM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
at the grub menu e for edit
add
Code:
insmod lvm
before the
Code:
set root=
line
ctrl-X or f10 to boot

add this to /etc/default/grub and/or append line if it doesn't exist
Code:
GRUB_PRELOAD_MODULES="lvm"
rerun grub2-mkconfig
 
Old 01-02-2021, 07:58 AM   #8
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by cmt29 View Post
Thanks. Followed your instructions. Error messages when running
Code:
grub2-mkconfig
I had OpenSUSE installed in the not so distant past, made an image of it's partition and the EFI partition, loaded both and found the name of the folder is "opensuse" in the EFI partition. So try again using the code in my previous post as the mkconfig step now has proper path identified.
 
Old 01-02-2021, 09:23 AM   #9
ember1205
Member
 
Registered: Oct 2014
Posts: 176

Rep: Reputation: 16
You could also download the Leap 15.2 Net Install media and boot to the Rescue Console from THAT. Then, you would want to do all of the mount/chroot things PLUS build a new INITRD.

In other words, mount the file system(s) under /mnt then verify your disk info with lsblk. Once you have the details, do:

Code:
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys

chroot /mnt
Now, check your /etc/fstab to ensure the details are correct. Edit if not. Then, you can move on to reconfiguring and reinstalling grub. Just be sure to build a new initial ramdisk which will have all of the correct modules baked in AND should point to the correct disk info for the kernel to load.
 
Old 01-02-2021, 01:01 PM   #10
cmt29
LQ Newbie
 
Registered: Dec 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for various replies. I'll respond in order:
  1. @colorpurple21859 Thanks, but insmod lvm was already included in the grub command, and it still fails.
  2. @Brains Yes, I'd already spotted that, so the full command I ran was grub2-mkconfig -o /boot/efi/EFI/opensuse/grub.cfg. But as I posted, it ran with errors, and although I then got a Grub menu instead of a Grub prompt, the system still wouldn't boot.
  3. @ember1205 Thanks, but as per my original post, I was already in a OpenSuse Leap 15.2 Rescue Console when I met my problem. I've also tried from the OpenSuse Leap 15.2 Live image. /etc/fstab is fine as far as I can see, and from within the chroot, mount -a runs with no problems.

I don't know whether the context for why I'm having to reinstall the bootloader would help? For some reason, the OpenSuse package team modified something that meant a number of systems automatically installed a preempt kernel (see, e.g., https://forums.opensuse.org/showthre...Kernel-preempt). I was totally oblivious to this and was just running normal updates. But upon next boot, the system threw up some weird error messages (and no, I didn't write them down!) and then hung. Upon restart I was at a Grub prompt. Hence the need to reinstall Grub, which for some reason keeps failing. Not sure if any of that is relevant.

From within the chroot, I have removed the preempt kernel using zypper.

Any thoughts as to what I could try next?
 
Old 01-02-2021, 01:40 PM   #11
ember1205
Member
 
Registered: Oct 2014
Posts: 176

Rep: Reputation: 16
Quote:
Originally Posted by cmt29 View Post
Thanks for various replies. I'll respond in order:
  1. @colorpurple21859 Thanks, but insmod lvm was already included in the grub command, and it still fails.
  2. @Brains Yes, I'd already spotted that, so the full command I ran was grub2-mkconfig -o /boot/efi/EFI/opensuse/grub.cfg. But as I posted, it ran with errors, and although I then got a Grub menu instead of a Grub prompt, the system still wouldn't boot.
  3. @ember1205 Thanks, but as per my original post, I was already in a OpenSuse Leap 15.2 Rescue Console when I met my problem. I've also tried from the OpenSuse Leap 15.2 Live image. /etc/fstab is fine as far as I can see, and from within the chroot, mount -a runs with no problems.

I don't know whether the context for why I'm having to reinstall the bootloader would help? For some reason, the OpenSuse package team modified something that meant a number of systems automatically installed a preempt kernel (see, e.g., https://forums.opensuse.org/showthre...Kernel-preempt). I was totally oblivious to this and was just running normal updates. But upon next boot, the system threw up some weird error messages (and no, I didn't write them down!) and then hung. Upon restart I was at a Grub prompt. Hence the need to reinstall Grub, which for some reason keeps failing. Not sure if any of that is relevant.

From within the chroot, I have removed the preempt kernel using zypper.

Any thoughts as to what I could try next?
Did you build a new initrd? When you do the "mount -a" from the rescue system, you have all of the relevant modules loaded. If there's a module missing from the initrd, that could be causing issues with being able to see the drive at boot time...
 
Old 01-02-2021, 02:29 PM   #12
cmt29
LQ Newbie
 
Registered: Dec 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
Yes, sorry, I did run mkinitrd which seems to run without error.
 
Old 01-05-2021, 04:06 PM   #13
cmt29
LQ Newbie
 
Registered: Dec 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
It looks like the problem occurs when grub2-install calls grub2-editenv. This is the output of grub2-editenv list -v:
Code:
grub2-editenv: info: cannot open `/boot/grub2/device.map': No such file or directory.grub2-editenv: info: changing current directory to /dev/mapper.
grub2-editenv: info: /dev/mapper/vgopensuse-root is not present.
grub2-editenv: info: /dev/nvme0n1p2 is not present.
grub2-editenv: info: Looking for /dev/nvme0n1p2.
grub2-editenv: info: /dev/nvme0n1 is a parent of /dev/nvme0n1p2.
grub2-editenv: info: /dev/nvme0n1p2 starts from 1050624.
grub2-editenv: info: opening the device hostdisk//dev/nvme0n1.
grub2-editenv: info: drive = 0.
grub2-editenv: info: the size of hostdisk//dev/nvme0n1 is 500118192.
grub2-editenv: info: drive = 0.
grub2-editenv: info: the size of hostdisk//dev/nvme0n1 is 500118192.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid1x devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09 devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09_be devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for dmraid_nv devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for ldm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: scanning hostdisk//dev/nvme0n1 for LDM.
grub2-editenv: info: no LDM signature found.
grub2-editenv: info: Scanning for lvm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: no LVM signature found.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid1x devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09 devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09_be devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for dmraid_nv devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for ldm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: scanning hostdisk//dev/nvme0n1 for LDM.
grub2-editenv: info: no LDM signature found.
grub2-editenv: info: Scanning for lvm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: no LVM signature found.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid1x devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09 devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09_be devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for dmraid_nv devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for ldm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: scanning hostdisk//dev/nvme0n1 for LDM.
grub2-editenv: info: no LDM signature found.
grub2-editenv: info: Scanning for lvm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Found array vgopensuse.
grub2-editenv: info: Inserting hostdisk//dev/nvme0n1 (+1050624,499066880) into vgopensuse (lvm)
.
grub2-editenv: info: drive = 0.
grub2-editenv: info: the size of hostdisk//dev/nvme0n1 is 500118192.
grub2-editenv: info: Partition 0 starts from 2048.
grub2-editenv: info: Partition 1 starts from 1050624.
grub2-editenv: info: changing current directory to /dev.
grub2-editenv: info: changing current directory to cpu.
grub2-editenv: info: changing current directory to 7.
grub2-editenv: info: changing current directory to 6.
grub2-editenv: info: changing current directory to 5.
grub2-editenv: info: changing current directory to 4.
grub2-editenv: info: changing current directory to 3.
grub2-editenv: info: changing current directory to 2.
grub2-editenv: info: changing current directory to 1.
grub2-editenv: info: changing current directory to 0.
grub2-editenv: info: changing current directory to snd.
grub2-editenv: info: changing current directory to by-path.
grub2-editenv: info: changing current directory to vfio.
grub2-editenv: info: changing current directory to mqueue.
grub2-editenv: info: changing current directory to hugepages.
grub2-editenv: info: changing current directory to usb.
grub2-editenv: info: changing current directory to vgopensuse.
grub2-editenv: info: changing current directory to dri.
grub2-editenv: info: changing current directory to by-path.
grub2-editenv: info: changing current directory to disk.
grub2-editenv: info: changing current directory to by-label.
grub2-editenv: info: changing current directory to by-uuid.
grub2-editenv: info: changing current directory to by-partlabel.
grub2-editenv: info: changing current directory to by-partuuid.
grub2-editenv: info: changing current directory to by-path.
grub2-editenv: info: changing current directory to by-id.
grub2-editenv: info: changing current directory to bus.
grub2-editenv: info: changing current directory to usb.
grub2-editenv: info: changing current directory to 007.
grub2-editenv: info: changing current directory to 006.
grub2-editenv: info: changing current directory to 005.
grub2-editenv: info: changing current directory to 004.
grub2-editenv: info: changing current directory to 003.
grub2-editenv: info: changing current directory to 002.
grub2-editenv: info: changing current directory to 001.
grub2-editenv: info: /dev/nvme0n1p2 is present.
grub2-editenv: info: Looking for /dev/nvme0n1p2.
grub2-editenv: info: /dev/nvme0n1 is a parent of /dev/nvme0n1p2.
grub2-editenv: info: /dev/nvme0n1p2 starts from 1050624.
grub2-editenv: info: opening the device hostdisk//dev/nvme0n1.
grub2-editenv: info: drive = 0.
grub2-editenv: info: the size of hostdisk//dev/nvme0n1 is 500118192.
grub2-editenv: info: drive = 0.
grub2-editenv: info: the size of hostdisk//dev/nvme0n1 is 500118192.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid1x devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09 devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09_be devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for dmraid_nv devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for ldm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: scanning hostdisk//dev/nvme0n1 for LDM.
grub2-editenv: info: no LDM signature found.
grub2-editenv: info: Scanning for lvm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: no LVM signature found.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid1x devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09 devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09_be devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for dmraid_nv devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for ldm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: scanning hostdisk//dev/nvme0n1 for LDM.
grub2-editenv: info: no LDM signature found.
grub2-editenv: info: Scanning for lvm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: no LVM signature found.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Partition 0 starts from 2048.
grub2-editenv: info: Partition 1 starts from 1050624.
grub2-editenv: info: /dev/mapper/vgopensuse-root is not present.
grub2-editenv: info: /dev/nvme0n1p2 is present.
grub2-editenv: info: Looking for /dev/nvme0n1p2.
grub2-editenv: info: /dev/nvme0n1 is a parent of /dev/nvme0n1p2.
grub2-editenv: info: /dev/nvme0n1p2 starts from 1050624.
grub2-editenv: info: opening the device hostdisk//dev/nvme0n1.
grub2-editenv: info: drive = 0.
grub2-editenv: info: the size of hostdisk//dev/nvme0n1 is 500118192.
grub2-editenv: info: drive = 0.
grub2-editenv: info: the size of hostdisk//dev/nvme0n1 is 500118192.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid1x devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09 devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09_be devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for dmraid_nv devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for ldm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: scanning hostdisk//dev/nvme0n1 for LDM.
grub2-editenv: info: no LDM signature found.
grub2-editenv: info: Scanning for lvm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: no LVM signature found.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid1x devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09 devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09_be devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for dmraid_nv devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for ldm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: scanning hostdisk//dev/nvme0n1 for LDM.
grub2-editenv: info: no LDM signature found.
grub2-editenv: info: Scanning for lvm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: no LVM signature found.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Partition 0 starts from 2048.
grub2-editenv: info: Partition 1 starts from 1050624.
grub2-editenv: info: changing current directory to /dev.
grub2-editenv: info: changing current directory to cpu.
grub2-editenv: info: changing current directory to 7.
grub2-editenv: info: changing current directory to 6.
grub2-editenv: info: changing current directory to 5.
grub2-editenv: info: changing current directory to 4.
grub2-editenv: info: changing current directory to 3.
grub2-editenv: info: changing current directory to 2.
grub2-editenv: info: changing current directory to 1.
grub2-editenv: info: changing current directory to 0.
grub2-editenv: info: changing current directory to snd.
grub2-editenv: info: changing current directory to by-path.
grub2-editenv: info: changing current directory to vfio.
grub2-editenv: info: changing current directory to mqueue.
grub2-editenv: info: changing current directory to hugepages.
grub2-editenv: info: changing current directory to usb.
grub2-editenv: info: changing current directory to vgopensuse.
grub2-editenv: info: changing current directory to dri.
grub2-editenv: info: changing current directory to by-path.
grub2-editenv: info: changing current directory to disk.
grub2-editenv: info: changing current directory to by-label.
grub2-editenv: info: changing current directory to by-uuid.
grub2-editenv: info: changing current directory to by-partlabel.
grub2-editenv: info: changing current directory to by-partuuid.
grub2-editenv: info: changing current directory to by-path.
grub2-editenv: info: changing current directory to by-id.
grub2-editenv: info: changing current directory to bus.
grub2-editenv: info: changing current directory to usb.
grub2-editenv: info: changing current directory to 007.
grub2-editenv: info: changing current directory to 006.
grub2-editenv: info: changing current directory to 005.
grub2-editenv: info: changing current directory to 004.
grub2-editenv: info: changing current directory to 003.
grub2-editenv: info: changing current directory to 002.
grub2-editenv: info: changing current directory to 001.
grub2-editenv: info: /dev/nvme0n1p2 is present.
grub2-editenv: info: Looking for /dev/nvme0n1p2.
grub2-editenv: info: /dev/nvme0n1 is a parent of /dev/nvme0n1p2.
grub2-editenv: info: /dev/nvme0n1p2 starts from 1050624.
grub2-editenv: info: opening the device hostdisk//dev/nvme0n1.
grub2-editenv: info: drive = 0.
grub2-editenv: info: the size of hostdisk//dev/nvme0n1 is 500118192.
grub2-editenv: info: drive = 0.
grub2-editenv: info: the size of hostdisk//dev/nvme0n1 is 500118192.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid1x devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09 devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09_be devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for dmraid_nv devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for ldm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: scanning hostdisk//dev/nvme0n1 for LDM.
grub2-editenv: info: no LDM signature found.
grub2-editenv: info: Scanning for lvm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: no LVM signature found.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid1x devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09 devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for mdraid09_be devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for dmraid_nv devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Scanning for ldm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: scanning hostdisk//dev/nvme0n1 for LDM.
grub2-editenv: info: no LDM signature found.
grub2-editenv: info: Scanning for lvm devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: no LVM signature found.
grub2-editenv: info: Scanning for DISKFILTER devices on disk hostdisk//dev/nvme0n1.
grub2-editenv: info: Partition 0 starts from 2048.
grub2-editenv: info: Partition 1 starts from 1050624.
grub2-editenv: info: /dev/mapper/vgopensuse-root is not present.
grub2-editenv: error: unknown filesystem.
Can anyone shed any light on what the problem here might be please?
 
Old 01-15-2021, 10:00 PM   #14
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,813
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by cmt29 View Post
grub2-mkconfig -o /boot/efi/EFI/opensuse/grub.cfg. But as I posted, it ran with errors
As I would expect. There is no such file /boot/efi/EFI/opensuse/grub.cfg in any normal openSUSE installation. The correct filename is /boot/grub2/grub.cfg. My question is what via ordinary updates caused the failing result observed. I'm not aware of anything special about a preempt kernel that could foul the boot process. It seems to me more likely the grub.cfg regeneration process during updates was corrupted or aborted. In attempting rescue, not executing mount -a after executing chroot /mnt, resulted in /dev/sdb1 not being mounted within the chroot environment. Just guessing, this could have resulted in writing a bad grub.cfg to a directory hidden whenever /dev/sdb1 is correctly mounted. This could be verified by unmounting /dev/sdb1 and learning whether /boot/efi/EFI/opensuse/grub.cfg exists. If this happens on next kernel update, please report this on the openSUSE Install/Boot/Login forum, or go directly to the openSUSE bug tracker to create a report.

A clue to learning what went wrong might be possible by searching through /var/log/pbl*.
 
Old 01-16-2021, 07:50 AM   #15
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
Following a recent problematic patch my Opensuse Leap 15.2 system
What is this patch you are referring to, details please.
 
  


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: openSUSE Leap 15.0 Reached End of Life, Upgrade to openSUSE Leap 15.1 Now LXer Syndicated Linux News 0 12-01-2019 09:21 AM
LXer: openSUSE Leap 42.3 Linux OS Reached End of Life, Upgrade to openSUSE Leap 15.1 LXer Syndicated Linux News 0 06-30-2019 01:54 AM
LXer: openSUSE Leap 42.2 is out, how to upgrade safely from openSUSE Leap 42.1 LXer Syndicated Linux News 0 11-17-2016 07:18 AM
grub2 can't see my win 7 partition and yast2 bootloader can't reinstall grub2 jjrojaspy SUSE / openSUSE 5 07-07-2013 10:38 PM

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

All times are GMT -5. The time now is 10:30 PM.

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