• How can I edit the grub loader menu?
    6 replies, posted
There isn't a menu.lst file in boot/grub/ [editline]14th January 2011[/editline] But I want to edit the options that show up (remove a few) and rename the operating systems to a more suitable name.
That's odd, I just installed Arch an hour or so ago and I'm 100% sure that menu.lst is in /boot/grub
[QUOTE=Encryption;27422605]There isn't a menu.lst file in boot/grub/ [editline]14th January 2011[/editline] But I want to edit the options that show up (remove a few) and rename the operating systems to a more suitable name.[/QUOTE] You're using Linux Mint, if I recall correctly. Protip: tell us what distro you're using when you ask for help. Linux Mint uses grub2 which uses a different setup than traditional grub. See manual page: [url]https://help.ubuntu.com/community/Grub2[/url] ... To remove old kernel versions from the list, delete the old unused kernels. Open a terminal and type in: [code]sudo update-grub[/code] This will cause grub to recreate its grub.cfg based on any changes you've made. No changes have been made, so something like the following should be seen. [code]Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.35-24-generic-pae Found initrd image: /boot/initrd.img-2.6.35-24-generic-pae [b]Found linux image: /boot/vmlinuz-2.6.35-22-generic-pae[/b] [b]Found initrd image: /boot/initrd.img-2.6.35-22-generic-pae[/b] Found memtest86+ image: /boot/memtest86+.bin Found Windows 7 (loader) on /dev/sda1 done[/code] The bolded are the old versions we need to remove. Be sure to check the version number (2.6.35-22) and make sure it's the oldest on each one before you remove, before doing this: [code]sudo rm /boot/vmlinuz-2.6.35-22-generic-pae sudo rm /boot/initrd.img-2.6.35-22-generic-pae[/code] It's easiest to just copy and paste the file names. To do this, in most terminals it should be shift-ctrl-C and shift-ctrl-V.
From what I read on the ubuntu wiki or forums I think it's better to uninstall the old kernel packages.
Thanks, I had to generate the grub.cfg and just commented out the few things I didn't want to show up.
That's ok for now, but next time you update your kernel they're going to be back.
[QUOTE=Boris-B;27432081]That's ok for now, but next time you update your kernel they're going to be back.[/QUOTE] Whenever I update grub I just have to re edit the cfg file. But now I know :v:
Sorry, you need to Log In to post a reply to this thread.