LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 11-18-2020, 08:01 AM   #31
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 301

Original Poster
Rep: Reputation: Disabled

Well, the grub.cfg contains everything, including the lines that I'd like to remove. But since it says do not edit, I haven't changed anything from there, figuring that it wouldn't make a difference anyway since that content is compiled from several sources. That old laptop works flawlessly and boots up lightning fast with a 120GB SSD. Anyway, here's that content:

Code:
#
# 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="1"
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_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
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=de_DE
  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=1
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=1
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
insmod png
if background_image /usr/share/backgrounds/MXLinux/grub/MX-Gold1080P.png; then
  set color_normal=light-gray/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### 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 18.3 Continuum, mit Linux 4.19.0-9-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-advanced-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	else
	  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	fi
	echo	'Linux 4.19.0-9-amd64 wird geladen …'
	linux	/boot/vmlinuz-4.19.0-9-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro  quiet zswap.zpool=zsmalloc
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-4.19.0-9-amd64
}
menuentry 'MX 18.3 Continuum, with Linux 4.19.0-9-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-init-systemd-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	else
	  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	fi
	echo	'Linux 4.19.0-9-amd64 wird geladen …'
	linux	/boot/vmlinuz-4.19.0-9-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro  quiet zswap.zpool=zsmalloc init=/lib/systemd/systemd
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-4.19.0-9-amd64
}
menuentry 'MX 18.3 Continuum, mit Linux 4.15.0-1-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-advanced-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	else
	  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	fi
	echo	'Linux 4.15.0-1-amd64 wird geladen …'
	linux	/boot/vmlinuz-4.15.0-1-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro  quiet zswap.zpool=zsmalloc
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-4.15.0-1-amd64
}
menuentry 'MX 18.3 Continuum, with Linux 4.15.0-1-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-init-systemd-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	else
	  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	fi
	echo	'Linux 4.15.0-1-amd64 wird geladen …'
	linux	/boot/vmlinuz-4.15.0-1-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro  quiet zswap.zpool=zsmalloc init=/lib/systemd/systemd
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-4.15.0-1-amd64
}

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

### BEGIN /etc/grub.d/10_linux_proxy ###
menuentry "MX 18.3 Continuum, mit Linux 4.19.0-9-amd64" --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-advanced-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	else
	  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	fi
	echo	'Linux 4.19.0-9-amd64 wird geladen …'
	linux	/boot/vmlinuz-4.19.0-9-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro  quiet zswap.zpool=zsmalloc
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-4.19.0-9-amd64
}
menuentry "MX 18.3 Continuum, with Linux 4.19.0-9-amd64 (systemd)" --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-init-systemd-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	else
	  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	fi
	echo	'Linux 4.19.0-9-amd64 wird geladen …'
	linux	/boot/vmlinuz-4.19.0-9-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro  quiet zswap.zpool=zsmalloc init=/lib/systemd/systemd
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-4.19.0-9-amd64
}
menuentry "MX 18.3 Continuum, mit Linux 4.15.0-1-amd64" --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-advanced-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	else
	  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	fi
	echo	'Linux 4.15.0-1-amd64 wird geladen …'
	linux	/boot/vmlinuz-4.15.0-1-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro  quiet zswap.zpool=zsmalloc
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-4.15.0-1-amd64
}
menuentry "MX 18.3 Continuum, with Linux 4.15.0-1-amd64 (systemd)" --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-init-systemd-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	else
	  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	fi
	echo	'Linux 4.15.0-1-amd64 wird geladen …'
	linux	/boot/vmlinuz-4.15.0-1-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro  quiet zswap.zpool=zsmalloc init=/lib/systemd/systemd
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-4.15.0-1-amd64
}

function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode





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

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	else
	  search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
	fi
	linux16	/boot/memtest86+.bin
}
fi
### END /etc/grub.d/20_memtest86+ ###

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





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

### BEGIN /etc/grub.d/30_os-prober ###
### 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/31_uefi-firmware ###
### END /etc/grub.d/31_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 ###
 
Old 11-18-2020, 08:32 AM   #32
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631

Rep: Reputation: 190Reputation: 190
1. You must have created /etc/grub.d/10_linux_proxy - remove it (make a backup if you really want to use it).
2. Remove the kernels and headers you don't need (4.15.0-1-amd64)
3. sudo update-grub
4. Compare the difference between this posted grub.cfg and your new one.
5. Reboot
 
Old 11-18-2020, 09:42 AM   #33
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 301

Original Poster
Rep: Reputation: Disabled
Thank you, thank you, thank you ... for having the patience to stick with me on this.
That was the solution!

I'm curious though ... if I had just deleted the kernel files that I didn't want, followed by sudo update-grub, would that have achieved the same thing?
 
Old 11-18-2020, 11:25 AM   #34
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by LinWinux View Post
Thank you, thank you, thank you ... for having the patience to stick with me on this.
That was the solution!

I'm curious though ... if I had just deleted the kernel files that I didn't want, followed by sudo update-grub, would that have achieved the same thing?
No. The existence of /etc/grub.d/10_linux_proxy was duplicating the entries.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Rpmbuild spec file for virtual rpm - removing obsolete packages - CentOS/RHEL 5.3 DrLove73 Linux - Software 3 10-10-2009 10:22 AM
Removing obsolete backup files and containing directory franjo124 Linux - Newbie 2 03-30-2009 07:05 AM
removing obsolete files in APT m_yates Debian 1 11-15-2003 06:57 PM
Removing Obsolete Software JHuizingh Linux - General 4 02-26-2002 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration