Question about editing grub to hide entries

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
DealerMan
Level 1
Level 1
Posts: 26
Joined: Wed Jun 06, 2007 9:05 am
Location: Mushroomland, LA

Question about editing grub to hide entries

Postby DealerMan » Wed Mar 13, 2013 11:07 pm

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 ###
I don't mind going to work, it's that 8 hour wait to go home that sucks.

User avatar
anandrkris
Level 5
Level 5
Posts: 949
Joined: Fri Nov 16, 2012 1:13 am
Location: Chennai

Re: Question about editing grub to hide entries

Postby anandrkris » Wed Mar 13, 2013 11:42 pm

Have you tried Grub Customizer? I user BURG and Grub Customizer, together they provide neat interface to booting and configuration.
Cheers,
If there is a drive, there will be a path

DealerMan
Level 1
Level 1
Posts: 26
Joined: Wed Jun 06, 2007 9:05 am
Location: Mushroomland, LA

Re: Question about editing grub to hide entries

Postby DealerMan » Thu Mar 14, 2013 6:27 am

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!
I don't mind going to work, it's that 8 hour wait to go home that sucks.

User avatar
anandrkris
Level 5
Level 5
Posts: 949
Joined: Fri Nov 16, 2012 1:13 am
Location: Chennai

Re: Question about editing grub to hide entries

Postby anandrkris » Thu Mar 14, 2013 9:07 am

Yes, got lot of features. Said by Sherlock Holmes...if i remember correctly.
Graphical boot theme configured in BURG
Image
Cheers,
If there is a drive, there will be a path


Return to “Installation & Boot”

Who is online

Users browsing this forum: No registered users and 10 guests