I cannot disable os-prober MX23  [Solved]

Help with the version of MX KDE officially released by the Development Team.
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
Byteria
Posts: 34
Joined: Wed Jun 13, 2018 10:23 am

I cannot disable os-prober MX23

#1 Post by Byteria »

Installed MX Linux 23 "Libretto" yesterday, then added to /etc/fstab the line /home from previous installation (MX 21) in order to keep previous user's configurations, and MX23 is working fine.

The only problem I have found so far, is that I cannot disable os-prober, anyway.

I did try "MX Tools >> Boot Options", , both "Yes" and "No", but it didn't disable os-prober.

In /etc/default/grub, I have set GRUB_DISABLE_OS_PROBER=true, then GRUB_DISABLE_OS_PROBER="true".

I have also edited /etc/default/grub.mx-defaults, and then renamed it to grub.mx-defaults.txt

Then, in /etc/default/grub, I have disabled all this block, still without results:

Code: Select all

# GRUB_DISABLE_OS_PROBER=true
# if [ -e /etc/default/grub.mx-defaults ]; then
#      .  /etc/default/grub.mx-defaults
# fi
# GRUB_DISABLE_OS_PROBER=true
My system:

Code: Select all

System:
  Kernel: 6.1.0-10-amd64 [6.1.38-2] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-10-amd64 root=UUID=<filter> ro quiet splash
  Desktop: KDE Plasma v: 5.27.5 wm: kwin_x11 vt: 7 dm: SDDM Distro: MX-23_KDE_x64 Libretto July
    31 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF B360M-PLUS GAMING/BR v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 2401 date: 03/22/2019
CPU:
  Info: model: Intel Core i5-9400 bits: 64 type: MCP arch: Coffee Lake gen: core 9 level: v3
    note: check built: 2018 process: Intel 14nm family: 6 model-id: 0x9E (158) stepping: 0xA (10)
    microcode: 0xF2
  Topology: cpus: 1x cores: 6 smt: <unsupported> cache: L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB
    L2: 1.5 MiB desc: 6x256 KiB L3: 9 MiB desc: 1x9 MiB
  Speed (MHz): avg: 1850 high: 2900 min/max: 800/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 2900 2: 800 3: 2900 4: 800 5: 800 6: 2900 bogomips: 34798
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: retbleed mitigation: IBRS
  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: IBRS, IBPB: conditional, STIBP: disabled, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: ASUSTeK driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: HDMI-A-2 empty: HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:3e92 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_x11 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22") s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-2 mapped: HDMI-2 model: Acer V246HL serial: <filter> built: 2019
    res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2 size: 531x299mm (20.91x11.77") diag: 609mm (24")
    ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
  API: ALSA v: k6.1.0-10-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 0.3.65 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: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel port: N/A
    bus-ID: 00:1f.6 chip-ID: 8086:15bc class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 894.26 GiB used: 272.16 GiB (30.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD Green 2.5 480GB size: 447.13 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 9100
    scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Kingston model: SA400S37480G size: 447.13 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: B1D1 scheme: GPT
Partition:
  ID-1: / raw-size: 30 GiB size: 29.36 GiB (97.87%) used: 8.12 GiB (27.7%) fs: ext4 dev: /dev/sda6
    maj-min: 8:6
  ID-2: /boot/efi raw-size: 2 GiB size: 2 GiB (99.80%) used: 33 MiB (1.6%) fs: vfat
    dev: /dev/sdb1 maj-min: 8:17
  ID-3: /home raw-size: 15 GiB size: 14.66 GiB (97.75%) used: 5.34 GiB (36.4%) fs: ext4
    dev: /dev/sda12 maj-min: 8:12
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 11 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sdb13
    maj-min: 8:29
Sensors:
  System Temperatures: cpu: 40.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2434 libs: 1340 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak 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://debian.c3sl.ufpr.br/debian/ bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://debian.c3sl.ufpr.br/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/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list
    1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mxlinux.c3sl.ufpr.br/mx-workspace/mx/repo/ bookworm main non-free
    2: deb https://mxlinux.c3sl.ufpr.br/mx-workspace/mx/repo/ bookworm ahs
Info:
  Processes: 313 Uptime: 1h 25m wakeups: 1 Memory: 15.47 GiB used: 3.09 GiB (20.0%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12 Client: shell wrapper
  v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Something more, that I could try, in order to disable os-prober?

User avatar
Jerry3904
Administrator
Posts: 23110
Joined: Wed Jul 19, 2006 6:13 am

Re: MX-23 Libretto

#2 Post by Jerry3904 »

You might want to start your own thread so it can be seen more easil@Byteria
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Eadwine Rose
Administrator
Posts: 14489
Joined: Wed Jul 12, 2006 2:10 am

Re: I cannot disable os-prober MX23

#3 Post by Eadwine Rose »

Topic split off. @Byteria your topic is here.
MX-23.6_x64 July 31 2023 * 6.1.0-35amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

BitterTruth
Posts: 617
Joined: Tue Sep 22, 2020 7:36 pm

Re: I cannot disable os-prober MX23

#4 Post by BitterTruth »

Are you doing sudo update-grub afterwards? MX Boot options should do it automatically though

User avatar
dolphin_oracle
Developer
Posts: 22123
Joined: Sun Dec 16, 2007 12:17 pm

Re: I cannot disable os-prober MX23  [Solved]

#5 Post by dolphin_oracle »

os-prober is enabled by default, so

Code: Select all

GRUB_DISABLE_OS_PROBER=true
# if [ -e /etc/default/grub.mx-defaults ]; then
#      .  /etc/default/grub.mx-defaults
# fi
should do it I think.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

BitterTruth
Posts: 617
Joined: Tue Sep 22, 2020 7:36 pm

Re: I cannot disable os-prober MX23

#6 Post by BitterTruth »

Please post your /etc/default/grub file if you can.

Byteria
Posts: 34
Joined: Wed Jun 13, 2018 10:23 am

Re: I cannot disable os-prober MX23

#7 Post by Byteria »

BitterTruth wrote: Tue Aug 01, 2023 2:19 pm Please post your /etc/default/grub file if you can.
It is so, now:

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(unset PRETTY_NAME; (. /etc/lsb-release; echo ${PRETTY_NAME:?}) 2>/dev/null || echo Debian)"
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

# 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=console

# 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=1024x768

# 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"

#run dpkg-reconfigure grub-pc to allow toggle of os-prober
GRUB_DISABLE_OS_PROBER="true"

# GRUB_DISABLE_OS_PROBER=true
# if [ -e /etc/default/grub.mx-defaults ]; then
#      .  /etc/default/grub.mx-defaults
# fi
# GRUB_DISABLE_OS_PROBER=true

GRUB_THEME="/boot/grub/themes/mx_linux/theme.txt"

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

Re: I cannot disable os-prober MX23

#8 Post by fehlix »

Byteria wrote: Tue Aug 01, 2023 1:22 pm Installed MX Linux 23 "Libretto" yesterday, then added to /etc/fstab the line /home from previous installation (MX 21) in order to keep previous user's configurations, and MX23 is working fine.

The only problem I have found so far, is that I cannot disable os-prober, anyway.

I did try "MX Tools >> Boot Options", , both "Yes" and "No", but it didn't disable os-prober.

In /etc/default/grub, I have set GRUB_DISABLE_OS_PROBER=true, then GRUB_DISABLE_OS_PROBER="true".

I have also edited /etc/default/grub.mx-defaults, and then renamed it to grub.mx-defaults.txt

Then, in /etc/default/grub, I have disabled all this block, still without results:

Code: Select all

# GRUB_DISABLE_OS_PROBER=true
# if [ -e /etc/default/grub.mx-defaults ]; then
#      .  /etc/default/grub.mx-defaults
# fi
# GRUB_DISABLE_OS_PROBER=true
I may suggest this:
Return the changes you made ( or may be keep them):
and run on the konsole this

Code: Select all

sudo debconf-set-selections <<<"grub-pc grub2/enable_os_prober boolean false"

followed by:

Code: Select all

sudo update-grub
would it still run os-prober?
Please try the above first and let us know, wehther this wokred.

Also after the above changes, you can revert the changes,
and try the "classical" way of disabling os-prober, which I think still works on Debian/bookworm,
which is just this:

Code: Select all

sudo chmod -x /etc/grub.d/30_os-prober

Please also let us know whether the classical way works for you.
Thanks
dolphin_oracle wrote: Tue Aug 01, 2023 2:17 pm os-prober is enabled by default, so

Code: Select all

GRUB_DISABLE_OS_PROBER=true
# if [ -e /etc/default/grub.mx-defaults ]; then
#      .  /etc/default/grub.mx-defaults
# fi
should do it I think.
I think we may adjust something here, b/c if grub2/enable_os_prober is set to true
os-prober would still run.
Suggest we tweak our os-prober adjusments a bit,
A)* so it will always enable/disable os-prober run depending on the debconf settings are true/false.

and
B)* maybe we adjust the comments a bit if the user really wants to tweak by himself

and
C)* we should consider to keep the current grub-live file in sync with /etc/grub.d,
which currently is not in resp. to os-prober (may be after A and B). Otherwise user installed from snapshot,
may wonder about this different ways of disabling os-prober.

BitterTruth
Posts: 617
Joined: Tue Sep 22, 2020 7:36 pm

Re: I cannot disable os-prober MX23

#9 Post by BitterTruth »

Thank you. Now, please post the terminal output after you do this:

Code: Select all

sudo update-grub

Byteria
Posts: 34
Joined: Wed Jun 13, 2018 10:23 am

Re: I cannot disable os-prober MX23

#10 Post by Byteria »

BitterTruth wrote: Tue Aug 01, 2023 5:01 pm Thank you. Now, please post the terminal output after you do this:

Code: Select all

sudo update-grub

Code: Select all

$ date; sudo update-grub; date
Tue  1 Aug 13:51:31 -03 2023
Generating grub configuration file ...
Found theme: /boot/grub/themes/mx_linux/theme.txt
Found linux image: /boot/vmlinuz-6.1.0-10-amd64
Found initrd image: /boot/initrd.img-6.1.0-10-amd64
Found mtest-64.efi image: /boot/uefi-mt/mtest-64.efi
Found Mageia 9 (9) on /dev/sda1
Found Slackware 15.0 x86_64 on /dev/sda2
Found Void Linux on /dev/sda3
Found Manjaro Linux (23.0.0) on /dev/sda4
Found Redcore Linux Hardened - rolling (rolling) on /dev/sda5
Found openSUSE Tumbleweed on /dev/sdb2
Found Arch Linux (rolling) on /dev/sdb3
Found Debian GNU/Linux trixie/sid on /dev/sdb4
Found Fedora Linux 38 (KDE Plasma) on /dev/sdb5
Found KDE neon 5.27 (22.04) on /dev/sdb6
Found PCLinuxOS on /dev/sdb7
Adding boot menu entry for EFI firmware configuration
done
Tue  1 Aug 13:53:19 -03 2023

Post Reply

Return to “MX KDE Official Release”