Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi folks, Ubuntu 9.10 64bit Grub2 doesn't have menu.lst. If I want to remove on the booting screen, e.g. Code: Ubuntu, linux 2.6.27-2-generic Ubuntu, linux 2.6.27-2-generic (single-user mode) How to ...
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546

    [SOLVED] About booting screen

    Hi folks,

    Ubuntu 9.10 64bit

    Grub2 doesn't have menu.lst. If I want to remove on the booting screen, e.g.
    Code:
    Ubuntu, linux 2.6.27-2-generic
    Ubuntu, linux 2.6.27-2-generic (single-user mode)
    How to do it? TIA

    B.R.
    satimis

  2. #2
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    I run GRUB2 on Arch and it's currently configured differently than GRUB2 on Ubuntu, but you can check this guide in the Ubuntu wiki for working with their implementation of GRUB2:

    https://wiki.ubuntu.com/Grub2
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Do you want to hide GRUB Menu or remove a few options from it?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined! Leppie's Avatar
    Join Date
    Feb 2010
    Posts
    72
    to remove menu entries for old kernel versions you're no longer using, go into synaptic (System>Administration>Synaptic) and type the kernel version (e.g. 2.6.27-2) in the quick search box. then right click all the installed packages for that specific kernel version and choose "remove". click the green check button to apply the changes.
    afterwards the entries should no longer show in your grub2 menu.
    NOTE: be careful not to remove the packages for the kernel you're currently using.

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546
    Quote Originally Posted by ozar View Post
    I run GRUB2 on Arch and it's currently configured differently than GRUB2 on Ubuntu, but you can check this guide in the Ubuntu wiki for working with their implementation of GRUB2:

    https://wiki.ubuntu.com/Grub2
    Hi ozar,

    Thanks for your link

    satimis

  6. #6
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546
    Quote Originally Posted by devils casper View Post
    Do you want to hide GRUB Menu or remove a few options from it?
    Hi devils casper,

    To remove the old kernel, stopping it showing on the table.

    There are 2 old kernels there. I expect removing the older one.

    B.R.
    satimis

  7. #7
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546
    Quote Originally Posted by Leppie View Post
    to remove menu entries for old kernel versions you're no longer using, go into synaptic (System>Administration>Synaptic) and type the kernel version (e.g. 2.6.27-2) in the quick search box. then right click all the installed packages for that specific kernel version and choose "remove". click the green check button to apply the changes.
    afterwards the entries should no longer show in your grub2 menu.
    NOTE: be careful not to remove the packages for the kernel you're currently using.
    Hi Leppie,

    Thanks for your advice. I expect to do it in a safe way, just commenting it out. In case of need I can uncomment it.

    B.R.
    satimis

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Two ways :

    *1. Edit /boot/grub/grub.cfg file and comment out entry for older kernel. But it won't be permanent. update-grub command generates new grub.cfg on every execution.

    *2. Create a new custom file ( /etc/grub.d/08_linux ) and add an entry of new kernel in it. Remove execution bit of /etc/grub.d/10_linux file. update-grub command will not add any entry of older kernel. There is one problem in this method only. You have to add entry of new kernel in custom file on every kernel upgrade.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546
    Quote Originally Posted by devils casper View Post
    Two ways :

    *1. Edit /boot/grub/grub.cfg file and comment out entry for older kernel. But it won't be permanent. update-grub command generates new grub.cfg on every execution.

    - snip -
    $ sudo nano /boot/grub/grub.cfg

    Comment out following lines
    Code:
    #menuentry "Ubuntu, Linux 2.6.31-19-generic" {
    #        recordfail=1
    #        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    #       set quiet=1
    #       insmod ext2
    #       set root=(hd0,1)
    #       search --no-floppy --fs-uuid --set 4ff364c6-c510-4f46-93df-902590749a76
    #       linux   /boot/vmlinuz-2.6.31-19-generic root=UUID=4ff364c6-c510-4f46-93df$
    #       initrd  /boot/initrd.img-2.6.31-19-generic
    #}
    #menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode)" {
    #        recordfail=1
    #        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    #       insmod ext2
    #       set root=(hd0,1)
    #       search --no-floppy --fs-uuid --set 4ff364c6-c510-4f46-93df-902590749a76
    #       linux   /boot/vmlinuz-2.6.31-19-generic root=UUID=4ff364c6-c510-4f46-93df$
    #       initrd  /boot/initrd.img-2.6.31-19-generic
    #}
    Reboot

    Your advice works for me. Thanks


    $ sudo update-grub
    Code:
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-2.6.31-20-generic
    Found initrd image: /boot/initrd.img-2.6.31-20-generic
    Found linux image: /boot/vmlinuz-2.6.31-19-generic
    Found initrd image: /boot/initrd.img-2.6.31-19-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Windows Vista (loader) on /dev/sdb1
    done
    This step uncomments those lines previously commented out.


    B.R.
    satimis

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    There is no need to execute update-grub command because it generates new grub.cfg on every execution.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...