Question about editing grub to hide entries

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
DealerMan
Level 1
Level 1
Posts: 36
Joined: Wed Jun 06, 2007 9:05 am
Location: Weird Austin

Question about editing grub to hide entries

Post by DealerMan »

I want to edit grub to hide a few entries from view when I boot, and just need to be sure of what to comment out. I want to hide the entries for Mint 13. I'm assuming the '#' is inserted at the 3 red 'menuentry' items. Thanks in advance! Here is my config:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Linux Mint 13 Maya (13)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-9fd8d2f9-e754-4584-bea2-9a2743066478' {
insmod part_msdos
insmod ext2
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 9fd8d2f9-e754-4584-bea2-9a2743066478
else
search --no-floppy --fs-uuid --set=root 9fd8d2f9-e754-4584-bea2-9a2743066478
fi
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=9fd8d2f9-e754-4584-bea2-9a2743066478 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
submenu 'Advanced options for Linux Mint 13 Maya (13)' $menuentry_id_option 'osprober-gnulinux-advanced-9fd8d2f9-e754-4584-bea2-9a2743066478' {
menuentry 'Linux Mint 13 Cinnamon 32-bit, 3.2.0-23-generic (/dev/sda1) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-23-generic--9fd8d2f9-e754-4584-bea2-9a2743066478' {
insmod part_msdos
insmod ext2
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 9fd8d2f9-e754-4584-bea2-9a2743066478
else
search --no-floppy --fs-uuid --set=root 9fd8d2f9-e754-4584-bea2-9a2743066478
fi
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=9fd8d2f9-e754-4584-bea2-9a2743066478 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Linux Mint 13 Cinnamon 32-bit, 3.2.0-23-generic (/dev/sda1) -- recovery mode (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-23-generic-root=UUID=9fd8d2f9-e754-4584-bea2-9a2743066478 ro recovery nomodeset-9fd8d2f9-e754-4584-bea2-9a2743066478' {
insmod part_msdos
insmod ext2
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 9fd8d2f9-e754-4584-bea2-9a2743066478
else
search --no-floppy --fs-uuid --set=root 9fd8d2f9-e754-4584-bea2-9a2743066478
fi
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=9fd8d2f9-e754-4584-bea2-9a2743066478 ro recovery nomodeset
initrd /boot/initrd.img-3.2.0-23-generic
}
}

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Sir, do you have any symptoms? No? Stay away from me anyway. hehehehe
anandrkris

Re: Question about editing grub to hide entries

Post by anandrkris »

Have you tried Grub Customizer? I user BURG and Grub Customizer, together they provide neat interface to booting and configuration.
DealerMan
Level 1
Level 1
Posts: 36
Joined: Wed Jun 06, 2007 9:05 am
Location: Weird Austin

Re: Question about editing grub to hide entries

Post by DealerMan »

Wow, very nice! Powerful program, a lot more than I needed. But there is a saying: Better to have it and not need it, than need it and not have it...

Thanks!
Sir, do you have any symptoms? No? Stay away from me anyway. hehehehe
anandrkris

Re: Question about editing grub to hide entries

Post by anandrkris »

Yes, got lot of features. Said by Sherlock Holmes...if i remember correctly.
Graphical boot theme configured in BURG
Image
Locked

Return to “Installation & Boot”