Os-prober does not work as it must

So, I have two OSs: OpenSUSE and Manjaro and I need the os-prober to use one grub menu but every time it types me to create a folder aka mount but when I re-create grub then this folder removes and I see this error again

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.9-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.9-x86_64.img
Found initrd fallback image: /boot/initramfs-5.9-x86_64-fallback.img
mount: /var/lib/os-prober/mount: mount(2) system call failed: No such file or directory.
Found openSUSE Tumbleweed on /dev/sda3
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin

Please, post

inxi -Fxxxza --no-host
sudo parted -l
sudo fdisk -l
sudo efibootmgr -v
  Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=eed5f38c-dcb4-4562-808f-d9b67c6267e0 rw quiet splash apparmor=1 
  security=apparmor resume=UUID=5ec7e255-ac6a-4ba3-b01e-39a199ea6cd5 
  Desktop: GNOME 3.38.2 tk: GTK 3.24.24 wm: gnome-shell dm: GDM 
  Distro: Manjaro Linux 
  Type: Desktop System: LENOVO product: 10US000BRU v: V530-22ICB AIO 
  serial: <filter> Chassis: type: 13 serial: <filter> 
  Mobo: LENOVO model: 313D v: No DPK serial: <filter> UEFI: LENOVO v: M20KT32A 
  date: 05/31/2018 
  Info: 6-Core model: Intel Core i5-8400T bits: 64 type: MCP arch: Kaby Lake 
  note: check family: 6 model-id: 9E (158) stepping: A (10) microcode: DE 
  L2 cache: 9 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 20409 
  Speed: 858 MHz min/max: 800/3300 MHz Core speeds (MHz): 1: 858 2: 858 3: 824 
  4: 871 5: 892 6: 887 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled 
  Type: mds mitigation: Clear CPU buffers; SMT disabled 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, 
  STIBP: disabled, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
  Device-1: Intel UHD Graphics 630 vendor: Lenovo driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:3e92 
  Device-2: Syntek Integrated Camera type: USB driver: uvcvideo bus ID: 1-7:6 
  chip ID: 174f:2425 serial: <filter> 
  Display: wayland server: X.org 1.20.10 compositor: gnome-shell driver: i915 
  note: n/a (using device driver) - try sudo/root display ID: 0 
  resolution: <missing: xdpyinfo> 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.1 
  direct render: Yes 
  Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel 
  v: kernel alternate: snd_soc_skl,snd_sof_pci bus ID: 00:1f.3 chip ID: 8086:a348 
  Sound Server: ALSA v: k5.9.16-1-MANJARO 
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo 
  driver: r8169 v: kernel port: 3000 bus ID: 01:00.0 chip ID: 10ec:8168 
  IF: enp1s0 state: down mac: <filter> 
  Device-2: Intel Dual Band Wireless-AC 3165 Plus Bluetooth driver: iwlwifi 
  v: kernel port: 3000 bus ID: 02:00.0 chip ID: 8086:3166 
  IF: wlp2s0 state: up mac: <filter> 
  Local Storage: total: 931.51 GiB used: 8.57 GiB (0.9%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM035-1RK172 
  size: 931.51 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  serial: <filter> rev: LCM2 
  ID-1: / raw size: 65.97 GiB size: 64.43 GiB (97.67%) used: 8.26 GiB (12.8%) 
  fs: ext4 dev: /dev/sda1 maj-min: 8:1 
  ID-2: /boot/efi raw size: 1.53 GiB size: 1.53 GiB (99.80%) used: 10.4 MiB (0.7%) 
  fs: vfat dev: /dev/sda7 maj-min: 8:7 
  ID-3: /home raw size: 136.58 GiB size: 133.44 GiB (97.70%) used: 303.7 MiB (0.2%) 
  fs: ext4 dev: /dev/sda6 maj-min: 8:6 
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 7.01 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda5 maj-min: 8:5 
  System Temperatures: cpu: 61.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
  Processes: 231 Uptime: 3m wakeups: 0 Memory: 7.63 GiB used: 1.82 GiB (23.9%) 
  Init: systemd v: 247 Compilers: gcc: N/A Packages: pacman: 1177 lib: 366 
  flatpak: 0 Shell: Zsh v: 5.8 running in: gnome-terminal inxi: 3.2.01 
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name  Flags
 7      1049kB  1648MB  1647MB  fat32                 msftdata
 2      1648MB  577GB   575GB   ext4
 3      577GB   766GB   189GB   btrfs
 1      766GB   837GB   70.8GB  ext4
 5      837GB   844GB   7532MB  linux-swap(v1)        swap
 6      844GB   991GB   147GB   ext4
 4      991GB   1000GB  9449MB  linux-swap(v1)        swap
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM035-1RK1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F5EE70F0-67A3-D348-AF2B-4EEE43E6497A

Device          Start        End    Sectors   Size Type
/dev/sda1  1495578624 1633925119  138346496    66G Linux filesystem
/dev/sda2     3219456 1127184383 1123964928 535.9G Linux filesystem
/dev/sda3  1127184384 1495578623  368394240 175.7G Linux filesystem
/dev/sda4  1935065126 1953520063   18454938   8.8G Linux swap
/dev/sda5  1633925120 1648635903   14710784     7G Linux swap
/dev/sda6  1648635904 1935065125  286429222 136.6G Linux filesystem
/dev/sda7        2048    3219455    3217408   1.5G Microsoft basic data
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0024,0025,0019,0001,0023,0022,000F,0000,0002
Boot0000* ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0001* opensuse-secureboot	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002* debian	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0003* Manjaro	HD(7,GPT,fca31bfb-6c2d-d648-90bb-b0757efd4f1c,0x800,0x311800)/File(\EFI\MANJARO\GRUBX64.EFI)
Boot000F* CD/DVD Device	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0019* Generic Usb Device	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0022* Generic Usb Device	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0023* CD/DVD Device	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0024* UEFI OS	HD(7,GPT,fca31bfb-6c2d-d648-90bb-b0757efd4f1c,0x800,0x311800)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0025* opensuse	HD(7,GPT,fca31bfb-6c2d-d648-90bb-b0757efd4f1c,0x800,0x311800)/File(\EFI\OPENSUSE\GRUBX64.EFI)..BO

Your ESP (/dev/sda7) should have ESP and BOOT flag, major problem is probably that OpenSUSE is on a btrfs formatted partition…

1 Like

Hmm… OpenSUSE uses BTRFS partition by default for snapper. Is there a way to fix os-prober in my case?

You can try to start Manjaro with /etc/grub.d/40_custom
and commenting out os-prober.
This will start the bootloader of Manjaro afaik and not manjaro entry direct.
If openSuse or Manjaro update kernels, otherwise there will be much work to repair…
look for: “chainloader”
(Can't boot into windows after updating)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.