Single user mode

When you run into problems installing MX Linux XFCE
Message
Author
User avatar
fehlix
Developer
Posts: 12635
Joined: Wed Apr 11, 2018 5:09 pm

Re: Single user mode

#11 Post by fehlix »

A comment to your initial post:
rbode wrote: Fri Jun 14, 2024 8:55 am I've been searching the internet and the MX site for information on how to add a entry in the Grub boot menu in order to get into single user mode just by selecting the right boot line from the Grub menu.
To add a single user mode, you would just enable with GRUB the generation of the "recovery" menu entries.
Which would be done this way:
Edit /etc/default/grub:

Code: Select all

fpad /etc/default/grub
Change the line

Code: Select all

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"
to

Code: Select all

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
Save and open terminal to regenerate the GRUB menu:

Code: Select all

sudo update-grub
You would now have for all installed kernels an additional recovery menu entry (under "Advanced..."), to login as root into the single user mode console.
The main difference to the custom.cfg method with an adjusted menu entry copy, would be you always have valid
entries, b/c the kernel may already have been upgraded and removed, or may have other issues you may want to fix by logging in with another kernel.

rbode
Posts: 18
Joined: Thu Mar 22, 2018 9:36 am

Re: Single user mode

#12 Post by rbode »

@fehlix
Sorry for that. Will this one do?

Code: Select all

menuentry 'MX 23.2 Libretto Single User' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-770634bb-f73b-4887-aab5-37503d68b2b6' {
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt4'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
        else
          search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
        fi
        echo    'Loading Linux 6.1.0-21-amd64 ...'
        linux   /boot/vmlinuz-6.1.0-21-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro init=/bin/bash
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.1.0-21-amd64
}

rbode
Posts: 18
Joined: Thu Mar 22, 2018 9:36 am

Re: Single user mode

#13 Post by rbode »

@fehlix Oeps ... I did not pay attention, may bad!! Thank you very much for your latest suggestion!

rbode
Posts: 18
Joined: Thu Mar 22, 2018 9:36 am

Re: Single user mode

#14 Post by rbode »

@fehlix
I tried your suggestion

Code: Select all

#GRUB_DISABLE_RECOVERY="true"
in /etc/default/grub and subsequently running

Code: Select all

update-grub
and after this reboot.
However without any luck.
There is no change to the bootmenu i.e. I get the usual bootmenu (https://thelinuxuser.com/wp-content/upl ... /07/10.jpg) however instead what the picture says I get MX 23.3 plus the option for Advanced ... and the memory test option.

Any further suggestions I could try.

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

Re: Single user mode

#15 Post by fehlix »

rbode wrote: Tue Jun 18, 2024 9:34 am @fehlix
I tried your suggestion

Code: Select all

#GRUB_DISABLE_RECOVERY="true"
in /etc/default/grub and subsequently running

Code: Select all

update-grub
and after this reboot.
However without any luck.
There is no change to the bootmenu i.e. I get the usual bootmenu (https://thelinuxuser.com/wp-content/upl ... /07/10.jpg) however instead what the picture says I get MX 23.3 plus the option for Advanced ... and the memory test option.

Any further suggestions I could try.
No idea what you talking about, the picture shows MX-19.1.
Perhaps something borked within your system maybe you visit to often the root-terminal and created such an unusual situations.
Thats probably the reason why you want to go into the single mode, b/c to "fix" some self-made issues.
Suggest to reinstall, with limited tweaking and try to avoid "root", or at least prepare a good recovery strategy,e.g with timeshift.
combined with a backup strategy.
In case you don't know, from booted MX Live USB (or alternatively from booted parallel installation),
you would normally be able to "visit" an unbootable system using the tool "Chroot-Rescue Scan", where you can "repair " stuff if needed,
within a chroot terminal.


Good luck.

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

Re: Single user mode

#16 Post by dolphin_oracle »

or maybe just didn't uncomment the line.
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.

rbode
Posts: 18
Joined: Thu Mar 22, 2018 9:36 am

Re: Single user mode

#17 Post by rbode »

@fehlix Sorry to be such a pain in the ...
I seems just odd that I do not get any change in the bootmenu.
@dolphin_oracle Oh, but I did uncomment and comment the line, changed the text "true" to "false" and vice versa ran update-grub each time. No change whatsoever.
Maybe the following additional information could give you some more of an idea about what the heck is going on.
My disk setup is like below and I boot from sda4. On sda2 resides an old version of MX, MX19 which has its bootflag removed.

Code: Select all

$ lsblk 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0    30G  0 loop /var/lib/lxd/storage-pools/default
sda      8:0    0 931,5G  0 disk 
├─sda1   8:1    0    24G  0 part [SWAP]
├─sda2   8:2    0    50G  0 part 
├─sda3   8:3    0 425,3G  0 part /home
└─sda4   8:4    0   200G  0 part /
sr0     11:0    1  1024M  0 rom  

Code: Select all

$ df -h
Bestandssysteem                  Grootte Gebruikt Besch Geb% Aangekoppeld op
udev                                3,7G        0  3,7G   0% /dev
tmpfs                               763M     1,5M  761M   1% /run
/dev/sda4                           196G      17G  170G   9% /
tmpfs                               5,0M      12K  5,0M   1% /run/lock
tmpfs                               6,3G     8,0K  6,3G   1% /dev/shm
/dev/sda3                           426G     215G  211G  51% /home
cgroup                               12K        0   12K   0% /sys/fs/cgroup
tmpfs                               100K        0  100K   0% /var/lib/lxd/shmounts
tmpfs                               100K        0  100K   0% /var/lib/lxd/devlxd
tmpfs                               763M     4,0K  763M   1% /run/user/108
/dev/loop0                           30G      14M   30G   1% /var/lib/lxd/storage-pools/default
tmpfs                               763M      12K  763M   1% /run/user/1000
profshared:/home/prost/Brands     30G      11G   18G  39% /home/mnt/priest
The file /boot/grub/grub.cfg contains:

Code: Select all

$ cat /boot/grub/grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
else
  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=nl_NL
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'MX 23.3 Libretto' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-770634bb-f73b-4887-aab5-37503d68b2b6' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt4'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
	else
	  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
	fi
	echo	'Loading Linux 6.1.0-21-amd64 ...'
	linux	/boot/vmlinuz-6.1.0-21-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-6.1.0-21-amd64
}
submenu 'Advanced options for MX 23.3 Libretto' $menuentry_id_option 'gnulinux-advanced-770634bb-f73b-4887-aab5-37503d68b2b6' {
	menuentry 'MX 23.3 Libretto, with Linux 6.1.0-21-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-21-amd64-advanced-770634bb-f73b-4887-aab5-37503d68b2b6' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
		else
		  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
		fi
		echo	'Loading Linux 6.1.0-21-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-21-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-21-amd64
	}
	menuentry 'MX 23.3 Libretto, with Linux 6.1.0-21-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-21-amd64-init-systemd-770634bb-f73b-4887-aab5-37503d68b2b6' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
		else
		  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
		fi
		echo	'Loading Linux 6.1.0-21-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-21-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro  quiet init=/lib/systemd/systemd
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-21-amd64
	}
	menuentry 'MX 23.3 Libretto, with Linux 6.1.0-21-amd64 (recovery mode)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-21-amd64-recovery-770634bb-f73b-4887-aab5-37503d68b2b6' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
		else
		  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
		fi
		echo	'Loading Linux 6.1.0-21-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-21-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-21-amd64
	}
	menuentry 'MX 23.3 Libretto, with Linux 6.1.0-16-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-16-amd64-advanced-770634bb-f73b-4887-aab5-37503d68b2b6' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
		else
		  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
		fi
		echo	'Loading Linux 6.1.0-16-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-16-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-16-amd64
	}
	menuentry 'MX 23.3 Libretto, with Linux 6.1.0-16-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-16-amd64-init-systemd-770634bb-f73b-4887-aab5-37503d68b2b6' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
		else
		  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
		fi
		echo	'Loading Linux 6.1.0-16-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-16-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro  quiet init=/lib/systemd/systemd
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-16-amd64
	}
	menuentry 'MX 23.3 Libretto, with Linux 6.1.0-16-amd64 (recovery mode)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-16-amd64-recovery-770634bb-f73b-4887-aab5-37503d68b2b6' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
		else
		  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
		fi
		echo	'Loading Linux 6.1.0-16-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-16-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-16-amd64
	}
	menuentry 'MX 23.3 Libretto, with Linux 6.1.0-13-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-13-amd64-advanced-770634bb-f73b-4887-aab5-37503d68b2b6' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
		else
		  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
		fi
		echo	'Loading Linux 6.1.0-13-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-13-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-13-amd64
	}
	menuentry 'MX 23.3 Libretto, with Linux 6.1.0-13-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-13-amd64-init-systemd-770634bb-f73b-4887-aab5-37503d68b2b6' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
		else
		  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
		fi
		echo	'Loading Linux 6.1.0-13-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-13-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro  quiet init=/lib/systemd/systemd
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-13-amd64
	}
	menuentry 'MX 23.3 Libretto, with Linux 6.1.0-13-amd64 (recovery mode)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-13-amd64-recovery-770634bb-f73b-4887-aab5-37503d68b2b6' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  770634bb-f73b-4887-aab5-37503d68b2b6
		else
		  search --no-floppy --fs-uuid --set=root 770634bb-f73b-4887-aab5-37503d68b2b6
		fi
		echo	'Loading Linux 6.1.0-13-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-13-amd64 root=UUID=770634bb-f73b-4887-aab5-37503d68b2b6 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-13-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'MX 21.3 Wildflower (21.3) (on /dev/sda2)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-0aae4696-3b93-453b-9d03-868111b48fa6' {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
	else
	  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
	fi
	linux /boot/vmlinuz-6.0.0-6mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash
	initrd /boot/initrd.img-6.0.0-6mx-amd64
}
submenu 'Advanced options for MX 21.3 Wildflower (21.3) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-0aae4696-3b93-453b-9d03-868111b48fa6' {
	menuentry 'MX 21.3 Wildflower (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.0.0-6mx-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-6.0.0-6mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash
		initrd /boot/initrd.img-6.0.0-6mx-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 6.0.0-6mx-amd64 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.0.0-6mx-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-6.0.0-6mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash
		initrd /boot/initrd.img-6.0.0-6mx-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 6.0.0-6mx-amd64 (systemd) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.0.0-6mx-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-6.0.0-6mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash init=/lib/systemd/systemd
		initrd /boot/initrd.img-6.0.0-6mx-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 5.18.0-4mx-amd64 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.18.0-4mx-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-5.18.0-4mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash
		initrd /boot/initrd.img-5.18.0-4mx-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 5.18.0-4mx-amd64 (systemd) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.18.0-4mx-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-5.18.0-4mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash init=/lib/systemd/systemd
		initrd /boot/initrd.img-5.18.0-4mx-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 5.17.0-3mx-amd64 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.17.0-3mx-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-5.17.0-3mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash
		initrd /boot/initrd.img-5.17.0-3mx-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 5.17.0-3mx-amd64 (systemd) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.17.0-3mx-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-5.17.0-3mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash init=/lib/systemd/systemd
		initrd /boot/initrd.img-5.17.0-3mx-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 5.16.0-5mx-amd64 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.16.0-5mx-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-5.16.0-5mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash
		initrd /boot/initrd.img-5.16.0-5mx-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 5.16.0-5mx-amd64 (systemd) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.16.0-5mx-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-5.16.0-5mx-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash init=/lib/systemd/systemd
		initrd /boot/initrd.img-5.16.0-5mx-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 5.10.0-26-rt-amd64 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.0-26-rt-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-5.10.0-26-rt-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash
		initrd /boot/initrd.img-5.10.0-26-rt-amd64
	}
	menuentry 'MX 21.3 Wildflower, with Linux 5.10.0-26-rt-amd64 (systemd) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.0-26-rt-amd64--0aae4696-3b93-453b-9d03-868111b48fa6' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  0aae4696-3b93-453b-9d03-868111b48fa6
		else
		  search --no-floppy --fs-uuid --set=root 0aae4696-3b93-453b-9d03-868111b48fa6
		fi
		linux /boot/vmlinuz-5.10.0-26-rt-amd64 root=UUID=0aae4696-3b93-453b-9d03-868111b48fa6 ro quiet splash init=/lib/systemd/systemd
		initrd /boot/initrd.img-5.10.0-26-rt-amd64
	}
}

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Code: Select all

$ cat /etc/default/grub
# 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="quiet"
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=false

if [ -e /etc/default/grub.mx-defaults ]; then
.  /etc/default/grub.mx-defaults
fi

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

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

Re: Single user mode

#18 Post by dolphin_oracle »

the recovery mode is in your grub.cfg file (advanced submenu). but the question is since that is a mx23.3 grub.cfg and your menu you displayed is an mx19 menu, what is controlling your grub menu. methinks its not your mx23 install.
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.

Post Reply

Return to “Installation”