Add grub new boot option

Ubuntu Support Template

Ubuntu Version:
22.04 LTS

Desktop Environment (if applicable):
GNOME, cynamon

Problem Description:
not a problem itsefl, just asking how can I add a new entry in the grub boot menu.

I have an old PC which has windows 7 and ubuntu installed, I just want this PC to download movies and then watch them, just that, the point is I am bored of windows 7 and want to get rid of it, but first I need eerything to run properly.

This Pc lacks of monitor screen for that I use my saloon TV to which this Pc is connected via HDMI.

Now that almos is running well, the only thing I want is to add a new boot option, which will help making things run smoother
, at least is what I think it will happen.

the new option is, keeping all the boot options available actually, ubuntu only in text mode, I think it will be lighter and smoother.

obviously I want the ubuntu to mount my configured setups in fstab, needed for my TV to find them and play the files.

thanks in advance

You can keep all existing GRUB entries and add a separate text-mode boot option.
The clean way is to add a custom entry in /etc/grub.d/40_custom that boots Ubuntu with systemd.unit=multi-user.target.

This will give you a lightweight console-only Ubuntu, while still mounting everything from fstab normally. After running update-grub, you’ll see the new option in the boot menu.

This is a good approach for an older PC used mainly as a media/download box.

2 Likes

hi there, thank you very much, you are so kind.

I have read that editing the actual option and replacing

quiet splash

for

text

is how to do this, but I want to keep the actual boot options.

what do I have to copy, and then edit as said above, to later paste into 40_custom?

I am asking this becasue I don’t know what code I need to use to create the new boot option

I am re-reading your answer, so adding

systemd.unit=multi-user.target.

at the bottom of 40_custom does the trick?

Hi, I added

systemd.unit=multi-user.target 


to

40_custom

then

update-grub

tried every entry in the boot menu, and all of them are stil with GUI

hi, I just installed grub customizer, I think it coulod be easier this way.

this is the config that current ubuntu boot entry has

recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
else
  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
fi
linux	/boot/vmlinuz-5.4.0-216-generic root=UUID=0cf8cc6c-9ae9-4624-9510-1c27d34bef35 ro intel_iommu=on,igjx_off quiet splash $vt_handoff
initrd	/boot/initrd.img-5.4.0-216-generic

any way to edit this and get ubuntu to boot with no GUI?

I’m using Ubuntu 24.04 but it should be OK for 22.04
Try this (without using grub-customizer)

Open /boot/grub/grub.cfg
Copy the main Ubuntu boot entry (similar to below)

menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-13a1f220-a4c5-4d7a-b455-718180ab846a' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root 13a1f220-a4c5-4d7a-b455-718180ab846a
	linux	/boot/vmlinuz-6.14.0-37-generic root=UUID=13a1f220-a4c5-4d7a-b455-718180ab846a ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-6.14.0-37-generic
}

Next open the 40_custom file

sudo nano /etc/grub.d/40_custom

Paste the copy (carefully)
Now, find the line beginning with linux and add 3 at the end (see below)

linux   /boot/vmlinuz-6.14.0-37-generic root=UUID=13a1f220-a4c5-4d7a-b455-718180ab846a ro quiet splash $vt_handoff 3

Ctrl o to save,
Ctrl x to exit

sudo update-grub

Reboot

so… just to clarify, dont want to break my grub.

this is my

/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 [ "${initrdfail}" = 2 ]; then
   set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
   set next_entry="${prev_entry}"
   set prev_entry=
   save_env prev_entry
   if [ "${next_entry}" ]; then
      set initrdfail=2
   fi
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="Windows 7 "
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 initrdfail {
    if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
      if [ -z "${initrdfail}" ]; then
        set initrdfail=1
        if [ -n "${boot_once}" ]; then
          set prev_entry="${default}"
          save_env prev_entry
        fi
      fi
      save_env initrdfail
    fi; fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
else
  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=es_ES
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=8
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 8 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux_proxy ###

function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if [ ${grub_platform} != pc ]; then
      set linux_gfx_mode=keep
    elif hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode



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

### BEGIN /etc/grub.d/30_os-prober_proxy ###
menuentry "Windows 7 " --class windows --class os $menuentry_id_option 'osprober-chain-4ED802F3D802D8DB' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  4ED802F3D802D8DB
	else
	  search --no-floppy --fs-uuid --set=root 4ED802F3D802D8DB
	fi
	parttool ${root} hidden-
	chainloader +1
}
### END /etc/grub.d/30_os-prober_proxy ###

### BEGIN /etc/grub.d/31_linux_proxy ###
menuentry "Ubuntu" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0cf8cc6c-9ae9-4624-9510-1c27d34bef35' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	else
	  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	fi
	linux	/boot/vmlinuz-5.4.0-216-generic root=UUID=0cf8cc6c-9ae9-4624-9510-1c27d34bef35 ro intel_iommu=on,igjx_off quiet splash $vt_handoff
	initrd	/boot/initrd.img-5.4.0-216-generic
}
submenu "Opciones avanzadas para Ubuntu"{
menuentry "Ubuntu, con Linux 5.4.0-150-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-150-generic-advanced-0cf8cc6c-9ae9-4624-9510-1c27d34bef35' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
		else
		  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
		fi
		echo	'Cargando Linux 5.4.0-150-generic...'
		linux	/boot/vmlinuz-5.4.0-150-generic root=UUID=0cf8cc6c-9ae9-4624-9510-1c27d34bef35 ro intel_iommu=on,igjx_off text $vt_handoff
		echo	'Cargando imagen de memoria inicial...'
		initrd	/boot/initrd.img-5.4.0-150-generic
}
menuentry "Ubuntu, con Linux 5.4.0-216-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-216-generic-advanced-0cf8cc6c-9ae9-4624-9510-1c27d34bef35' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
		else
		  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
		fi
		echo	'Cargando Linux 5.4.0-216-generic...'
		linux	/boot/vmlinuz-5.4.0-216-generic root=UUID=0cf8cc6c-9ae9-4624-9510-1c27d34bef35 ro intel_iommu=on,igjx_off quiet splash $vt_handoff
		echo	'Cargando imagen de memoria inicial...'
		initrd	/boot/initrd.img-5.4.0-216-generic
}
menuentry "Ubuntu, con Linux 5.4.0-216-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-216-generic-recovery-0cf8cc6c-9ae9-4624-9510-1c27d34bef35' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
		else
		  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
		fi
		echo	'Cargando Linux 5.4.0-216-generic...'
		linux	/boot/vmlinuz-5.4.0-216-generic root=UUID=0cf8cc6c-9ae9-4624-9510-1c27d34bef35 ro recovery nomodeset dis_ucode_ldr intel_iommu=on,igjx_off
		echo	'Cargando imagen de memoria inicial...'
		initrd	/boot/initrd.img-5.4.0-216-generic
}
menuentry "Ubuntu, con Linux 5.4.0-150-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-150-generic-recovery-0cf8cc6c-9ae9-4624-9510-1c27d34bef35' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
		else
		  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
		fi
		echo	'Cargando Linux 5.4.0-150-generic...'
		linux	/boot/vmlinuz-5.4.0-150-generic root=UUID=0cf8cc6c-9ae9-4624-9510-1c27d34bef35 ro recovery nomodeset dis_ucode_ldr intel_iommu=on,igjx_off
		echo	'Cargando imagen de memoria inicial...'
		initrd	/boot/initrd.img-5.4.0-150-generic
}
}
### END /etc/grub.d/31_linux_proxy ###

### BEGIN /etc/grub.d/32_linux_zfs ###
### END /etc/grub.d/32_linux_zfs ###

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

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

### BEGIN /etc/grub.d/34_memtest86+_proxy ###



### END /etc/grub.d/34_memtest86+_proxy ###

### BEGIN /etc/grub.d/35_os-prober_proxy ###


set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/35_os-prober_proxy ###

### BEGIN /etc/grub.d/36_memtest86+_proxy ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	else
	  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	fi
	knetbsd	/boot/memtest86+.elf
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	else
	  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/36_memtest86+_proxy ###

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

### BEGIN /etc/grub.d/38_fwupd ###
### END /etc/grub.d/38_fwupd ###

### BEGIN /etc/grub.d/40_custom_proxy ###

# 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.
systemd.unit=multi-user.target

### END /etc/grub.d/40_custom_proxy ###

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

this is my main Ubuntu menuentry

menuentry "Ubuntu" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0cf8cc6c-9ae9-4624-9510-1c27d34bef35' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	else
	  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	fi
	linux	/boot/vmlinuz-5.4.0-216-generic root=UUID=0cf8cc6c-9ae9-4624-9510-1c27d34bef35 ro intel_iommu=on,igjx_off quiet splash $vt_handoff
	initrd	/boot/initrd.img-5.4.0-216-generic
}

you need that I add this to the end of 40_custom file, isn’t it?

menuentry "Ubuntu" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0cf8cc6c-9ae9-4624-9510-1c27d34bef35' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	else
	  search --no-floppy --fs-uuid --set=root 0cf8cc6c-9ae9-4624-9510-1c27d34bef35
	fi
	linux	/boot/vmlinuz-5.4.0-216-generic root=UUID=0cf8cc6c-9ae9-4624-9510-1c27d34bef35 ro intel_iommu=on,igjx_off quiet splash $vt_handoff 3
	initrd	/boot/initrd.img-5.4.0-216-generic
}

having two Ubuntu entries will cause problems?

Quick word of caution: We generally discourage the use of Grub Customizer as it tends to completely ruin system grub configurations. So just be warned.

1 Like

wow I found a problem here, as stated before in this thread, I wrote down

systemd.unit=multi-user.target

to 40_custom, and now that I am gonna do the changes you suggest, guess what… the file is gone, now I have a 40_custom_proxy that is empty :thinking:

this is the content of that folder

00_header
05_debian_theme
10_linux_proxy
30_os-prober_proxy
31_linux_proxy
32_linux_zfs
33_linux_xen
34_memtest86+_proxy
35_os-prober_proxy
36_memtest86+_proxy
37_uefi-firmware
38_fwupd
40_custom_proxy
41_custom
backup
bin
proxifiedScripts
README

I forgot to add a bit of detail (although not essential)
First line add Text

menuentry "Ubuntu Text"

You won’t break grub, it’s resilient

Also, along with @eeickmeyer, I’m not an advocate for grub-customizer

ok, understood, won’t use GC, but have you read about my gone 40_custom?

This is a grub-customizer proxy file.

I can only suggest that you do nothing for the moment because grub proxy files are painful.

Back up your data immediately

All your proxy files are from Grub Customizer. It replaces standard grub scripts with its own. And that is where many have issues. The only way to remove it, is to uninstall grub customizer & replace proxy files with standard grub files.

All the commands you now have to run to remove customizer. Make sure you have a repair/install Ubuntu flash drive as during time grub is removed, system is not bootable. You have to complete all steps for it to boot again.
https://askubuntu.com/questions/1491892/i-messed-up-my-grub-config

You can have as many bootable stanzas in 40_custom as you want. But they need to be full stanza.

If you just want a console for temporary use, press Ctrl+Alt+F1 on keyboard will switch your desktop to tty1.

If you always want text mode, you edit /etc/default/grub and run the grub update to add changes into grub.cfg.

1 Like

If your 40_custom file is gone just create a new one as root (sudo) in the /etc/grub.d directory. All it contains is the 2 lines below and you simply copy/paste them ino that file and tput your menuentry below those lines.

#!/bin/sh
exec tail -n +3 $0

Having multiple entries for Ubuntu isn’t a problems and if you look at your grub.cfg file you will see multiple entries there. When you are testing a boot entry, it saves steps if you simply put it in the grub.cfg file as then you simply need to save the changes and you do not need to update grub and if it fails you then need to update grub again but your choice.

1 Like

hi, sorry for my late reply, as yseterday ws my first day as regitered user, the system only allowed me to send X messages, so I had to wait for this on.

Late, hehehehe, I did in the meantime, my steps were this

  1. duplicate ubuntu entry (we are talking from grub customizer)
  2. created new one
  3. edited name and added 3 at the linux line
  4. saved
  5. rebooted

and selected ubuntu text

it started but got stuck in this screen

rebooted and here I am again

So we can say it almost worked, but luckily grub did not broke, yet, anything.

Not sure what you screen shows?

What did you add where? Post details.
If from customizer, that may be the issue.

Just wondering, have you submitted the following directive at the command-line prompt?

sudo systemctl set-default multi-user.target

systemd might need to add “directives” elsewhere to ensure that intent is realized.



In your /etc/default/grub, be sure that you have removed the strings

quiet splash

from the definition for “GRUB_CMDLINE_LINUX_DEFAULT”, and replace those with

text nomodeset

Also, be sure that you have the following set, after the above line:

GRUB_TERMINAL=console

Of course, follow that change with

sudo update-grub

then reboot, to get your desired result.

:slight_smile:

If you are editing a file in the /etc/grub.d directory, you must run sudo update-grub after saving the changes for them to take effect as pointed out above. The image you posted looks like the output on boot from running a filesystem check (fsck) and not showing any problems on partition 6.

1 Like

Hi, I followed this post instructions

https://discourse.ubuntu.com/t/add-grub-new-boot-option/73797/8?u=gralf

But instead of using 40_custom, cause it is gone, I did it duplicating the main ubuntu entry (all from ubuntu customizer) and editing the name and adding 3 at the end of the line that starts with linux. Then saved and that is all.

The PC starts and goes to the screen showed above, ah, forgot to say that mounts and shares work fine, I mean the system still mount and share folders mounted and shared in GUI, which I had doubts about.

I think that it was Ctrl + Alt + F12 which lead me to the terminal, after getting to the screen showed above. Anyway, is there some edit in the menuentry to go directly to the console?

If grub’s somewhat limited terminal, you can use e for edit at any entry. Changes are a one time change, so a good way to test a change before editing grub or 40_custom.

A full reinstall of grub will restore the default grub scripts and default /etc/default/grb file. Best after removal of Customizer and its scripts or you get double everything.