MX-Linux doesn't see Arch Linux in grub  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
popjah
Posts: 32
Joined: Wed Oct 16, 2019 2:11 pm

MX-Linux doesn't see Arch Linux in grub

#1 Post by popjah »

Hi all,

First, here's my info:

Code: Select all

/etc/lsb-release: line 5: unexpected EOF while looking for matching `"'
System:
  Kernel: 6.7.8-1-liquorix-amd64 [6.7-12~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0
    intel_pstate=disable rcupdate.rcu_expedited=1 BOOT_IMAGE=/boot/vmlinuz-6.7.8-1-liquorix-amd64
    root=UUID=<filter> ro quiet splash init=/lib/systemd/systemd
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23.2_ahs_x64 Libretto January 21  2024 base: Debian GNU/Linux
    12 (bookworm)
Machine:
  Type: Desktop System: Gigabyte product: A320M-S2H v: N/A serial: <superuser required>
  Mobo: Gigabyte model: A320M-S2H-CF v: x.x serial: <superuser required> UEFI: American
    Megatrends LLC. v: F56b date: 02/09/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: AMD Ryzen 5 1500X bits: 64 type: MT MCP arch: Zen level: v3 note: check
    built: 2017-19 process: GF 14nm family: 0x17 (23) model-id: 1 stepping: 1 microcode: 0x8001138
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache: L1: 384 KiB
    desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 3493 min/max: N/A cores: 1: 3493 2: 3493 3: 3493 4: 3493 5: 3493 6: 3493
    7: 3493 8: 3493 bogomips: 55892
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP: disabled, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 525.147.05 non-free: 530.xx+
    status: current (as of 2023-03) arch: Pascal code: GP10x process: TSMC 16nm built: 2016-21 pcie:
    gen: 3 speed: 8 GT/s lanes: 4 link-max: lanes: 16 bus-ID: 08:00.0 chip-ID: 10de:1c82
    class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa alternate: nv gpu: nvidia display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.00x11.26") s-diag: 583mm (22.95")
  Monitor-1: HDMI-0 res: 1920x1080 dpi: 102 size: 480x270mm (18.9x10.63") diag: 551mm (21.68")
    modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 525.147.05 renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
    direct-render: Yes
Audio:
  Device-1: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel v: kernel pcie: gen: 3
    speed: 8 GT/s lanes: 4 link-max: lanes: 16 bus-ID: 08:00.1 chip-ID: 10de:0fb9 class-ID: 0403
  Device-2: AMD Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel pcie: gen: 3
    speed: 8 GT/s lanes: 16 bus-ID: 0a:00.3 chip-ID: 1022:1457 class-ID: 0403
  API: ALSA v: k6.7.8-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 07:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Device-2: TP-Link TL-WN823N v2/v3 [Realtek RTL8192EU] type: USB driver: rtl8xxxu bus-ID: 3-1:2
    chip-ID: 2357:0109 class-ID: 0000 serial: <filter>
  IF: wlan0 state: up mac: <filter>
Drives:
  Local Storage: total: 3.89 TiB used: 29.1 GiB (0.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Gigabyte model: GP-GSM2NE3100TNTD size: 953.87 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EDFMB0.5 temp: 33.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10EZEX-75WN4A1 size: 931.51 GiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 7113 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: CC43 scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 vendor: Toshiba model: MQ04ABF100 size: 931.51 GiB block-size:
    physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: 0E
    scheme: GPT
  ID-5: /dev/sdd maj-min: 8:48 vendor: Biostar model: S100-256GB size: 238.47 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: V4.7 scheme: GPT
Partition:
  ID-1: / raw-size: 953.62 GiB size: 937.58 GiB (98.32%) used: 29.1 GiB (3.1%) fs: ext4
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 30.9 C mobo: 24.0 C gpu: nvidia temp: 25 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Repos:
  Packages: pm: dpkg pkgs: 2400 libs: 1327 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mirror.easyname.at/mxlinux-packages/mx/repo/ bookworm main non-free
    2: deb http://mirror.easyname.at/mxlinux-packages/mx/repo/ bookworm ahs
Info:
  Processes: 347 Uptime: 0m wakeups: 2 Memory: 15.54 GiB used: 1.22 GiB (7.9%) Init: systemd v: 252
  target: graphical (5) default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
My Arch is on the ssd, uses grub to boot, and sees and boots MX-Linux properly.
My MX-Linux, installed later on the nvme, uses grub but doesn't see Arch in the grub boot menu.
I have searched this forum and the internet in general, and done what I could:

I uncommented the os-prober line in /etc/default/grub and ran os-prober:

Code: Select all

$ sudo os-prober
/dev/sdd2:Arch Linux:Arch:linux
and

Code: Select all

$ sudo update-grub
Found Arch Linux on /dev/sdd2
Adding boot menu entry for EFI firmware configuration
done
and

I ran sudo dpkg-reconfigure grub-pc with the os-prober option ticked

All showed Arch, but upon reboot I don't see it at all.

My preference is to boot MX-Linux, and not Arch.

What am I doing wrong?

Thanks for your help!

Charlie Brown

Re: MX-Linux doesn't see Arch Linux in grub

#2 Post by Charlie Brown »

popjah wrote: Sun Mar 10, 2024 6:16 pm... but upon reboot I don't see it at all...
Maybe your Grub is still controlled by Arch ?

Do you see "Welcome to MX-Linux !" on top of Grub menu?

popjah
Posts: 32
Joined: Wed Oct 16, 2019 2:11 pm

Re: MX-Linux doesn't see Arch Linux in grub

#3 Post by popjah »

Charlie Brown wrote: Sun Mar 10, 2024 7:04 pm
popjah wrote: Sun Mar 10, 2024 6:16 pm... but upon reboot I don't see it at all...
Maybe your Grub is still controlled by Arch ?

Do you see "Welcome to MX-Linux !" on top of Grub menu?
There's nothing on top of the Grub menu, I only see the entries (except for Arch).

I have a theme installed (through MX-Tools - Boot Options), maybe it's the reason I don't see the "Welcome to MX-Linux" message?

Charlie Brown

Re: MX-Linux doesn't see Arch Linux in grub

#4 Post by Charlie Brown »

They are here: /boot/grub/themes/

i.e. /boot/grub/themes/mx_linux/theme.txt

title-text: ...

select one that has such a title (just to make sure) or you can type your own title and save , to see

(The default one has that , I just can't recall which one was the default :) )

popjah
Posts: 32
Joined: Wed Oct 16, 2019 2:11 pm

Re: MX-Linux doesn't see Arch Linux in grub

#5 Post by popjah »

I removed any theming and rebooted:
No welcome message, only this at the top:

"GNU GRUB version 2.06-13+deb12u1"

Charlie Brown

Re: MX-Linux doesn't see Arch Linux in grub

#6 Post by Charlie Brown »

Charlie Brown wrote: Sun Mar 10, 2024 7:04 pm
popjah wrote: Sun Mar 10, 2024 6:16 pm... but upon reboot I don't see it at all...
Maybe your Grub is still controlled by Arch ?..
I realize just now that this is nonsense. If it's controlled by Arch, then it(self) would be even first 1-2 entries :)

User avatar
fehlix
Developer
Posts: 12608
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Linux doesn't see Arch Linux in grub

#7 Post by fehlix »

popjah wrote: Sun Mar 10, 2024 6:16 pm Hi all,

First, here's my info:

Code: Select all

/etc/lsb-release: line 5: unexpected EOF while looking for matching `"'
Perhaps try to fix the lsb-relase first by editing and add at line 5 missing double quote or remove in case the double quotes are doubled.

Code: Select all

fpad /etc/lsb-release
"Re: MX-Linux doesn't see Arch Linux in grub:"

Two options:

Try this first:
1*)Do un-mount currently mounted esp before running update-grub or dpkg-reconfigure grub-pc

Code: Select all

sudo umount /boot/efi
B/c if I remember correctly os-prober's internal used grub-mount may
have detection issues if ESP is already mounted (in case you have only one ESP),
due to ARCH's way of mounting ESP to /boot.

2*) In case this doesn't help to get grub (os-prober) fixed
use a useful workaround, and install and use rEFInd

Code: Select all

sudo apt install refind
which would probably make rEFInd detect ARCH and to display the efi-loader within the rEFInd boot menu.
HTH
PS: Maybe will install ARCH to check os-prober detection issue... later...

User avatar
asqwerth
Developer
Posts: 7762
Joined: Sun May 27, 2007 5:37 am

Re: MX-Linux doesn't see Arch Linux in grub

#8 Post by asqwerth »

Previously Arch and Manjaro grub menu entries needed extra text on the initrd line to deal with how they loaded microcode. Often, other distro's grub would not pick up on that and generate grub entries for Arch without the extra text.

Last time, @fehlix sorted out MX's grub so it would generate the necessary text for Arch, if I recall correctly.

However, as of 4 March 2024, Arch has changed how it deals with microcode: https://archlinux.org/news/mkinitcpio-h ... -microcode
...Please note that the mkinitcpio flag --microcode, and the microcode option in the preset files, has been deprecated in favour of a new microcode hook. This also allows you to drop the microcode initrd lines from your boot configuration as they are now packed together with the main initramfs image.
That may perhaps change how Arch grub menu entries would look. No idea.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

popjah
Posts: 32
Joined: Wed Oct 16, 2019 2:11 pm

Re: MX-Linux doesn't see Arch Linux in grub

#9 Post by popjah »

- lsb line fixed, thanks!
- unmounting /boot/efi and running update-grub etc. didn't make a difference
- I tried rEFInd some time ago but didn't like it

The thing is I can boot Arch and then go to MX-Linux from Arch's grub, but I have a soft spot for MX-Linux (been using it for years, whereas Arch is very recent on my system).

Many thanks to Charlie Brown, fehlix, and asqwerth for your help!

Cheers!

Senpai
Posts: 474
Joined: Tue Nov 19, 2019 7:39 am

Re: MX-Linux doesn't see Arch Linux in grub

#10 Post by Senpai »

popjah wrote: Mon Mar 11, 2024 5:34 am - lsb line fixed, thanks!
- unmounting /boot/efi and running update-grub etc. didn't make a difference
- I tried rEFInd some time ago but didn't like it

The thing is I can boot Arch and then go to MX-Linux from Arch's grub, but I have a soft spot for MX-Linux (been using it for years, whereas Arch is very recent on my system).

Many thanks to Charlie Brown, fehlix, and asqwerth for your help!

Cheers!
Hi:
This solved it for me with another distribution installed in btrfs that in the MX Grub was not visible, try to create an entry for the @root partition of Arch, see if it works.
viewtopic.php?p=747590#p747590

Best regards

Post Reply

Return to “MX Help”