Question about editing grub to hide entries

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Question about editing grub to hide entries

Postby DealerMan on 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.
DealerMan
Level 1
Level 1
 
Posts: 23
Joined: Wed Jun 06, 2007 9:05 am
Location: Mushroomland, LA

Linux Mint is funded by ads and donations.
 

Re: Question about editing grub to hide entries

Postby anandrkris on 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
User avatar
anandrkris
Level 5
Level 5
 
Posts: 851
Joined: Fri Nov 16, 2012 1:13 am
Location: Chennai

Re: Question about editing grub to hide entries

Postby DealerMan on 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.
DealerMan
Level 1
Level 1
 
Posts: 23
Joined: Wed Jun 06, 2007 9:05 am
Location: Mushroomland, LA

Re: Question about editing grub to hide entries

Postby anandrkris on 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
User avatar
anandrkris
Level 5
Level 5
 
Posts: 851
Joined: Fri Nov 16, 2012 1:13 am
Location: Chennai


Return to Installation & Boot

Who is online

Users browsing this forum: Chriskmint, tornandfrayed and 16 guests