Results 1 to 8 of 8

Thread: Duplicate grub entries for Ubuntu and Windows 7

  1. #1
    Join Date
    Oct 2010
    Beans
    2

    Question Duplicate grub entries for Ubuntu and Windows 7

    To start by saying that I am brand new to anything linux.

    I just installed Ubuntu 10.10 32-bit to dual boot on my Windows 7 32-bit PC. This last time that I booted my pc the grub looked like this:

    Ubuntu, Linux 2.6.32-25-generic
    Ubuntu, Linux 2.6.32-25-generic (recovery mode)
    Ubuntu, Linux 2.6.32-24-generic
    Ubuntu, Linux 2.6.32-24-generic (recovery mode)
    Windows 7 (loader) (on/dev/sda1)
    Windows 7 (loader) (on/dev/sda2)

    From what I understand the duplicate for Ubuntu is just an updated Kernal, hence the -24 to -25. What I didn't understand is why there is a duplicate for Windows 7 and what the sda1 and sda2 is? Someone please explain. When I first installed Ubuntu, there was only one listing for Ubuntu and one for Windows 7.

    Also, I was wondering what you do to keep up with new kernals and remove old one's. How do you keep the Kernals from piling up? I assume that when another Kernal becomes available, there will then be 3 Ubuntu listings in the grub.


    One last thing is I would like some suggestions for the best way of going about learning linux. (i.e. terminal commands)

  2. #2
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,205
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Duplicate grub entries for Ubuntu and Windows 7

    The 2 kernels is normal and it is recommended to have 2 in the menu for trouble-shooting purposes. You will get a new entry for every new kernel installed (and its recovery option as well).
    The 2 options for Windows (sda1 and sda2) are probably your windows recovery partition and your actual windows partition. I would try booting with each one as sometimes they can be listed the wrong way round by grub. Then you will know which is which.
    The extra kernels can be deleted by using ubuntu-tweak.
    MacBook Pro 10,1 retina

  3. #3
    Join Date
    Oct 2010
    Beans
    2

    Re: Duplicate grub entries for Ubuntu and Windows 7

    Quote Originally Posted by Quackers View Post
    The 2 kernels is normal and it is recommended to have 2 in the menu for trouble-shooting purposes. You will get a new entry for every new kernel installed (and its recovery option as well).
    The 2 options for Windows (sda1 and sda2) are probably your windows recovery partition and your actual windows partition. I would try booting with each one as sometimes they can be listed the wrong way round by grub. Then you will know which is which.
    The extra kernels can be deleted by using ubuntu-tweak.
    What is ubuntu-tweak?

  4. #4
    Join Date
    Apr 2008
    Location
    Southern California, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Duplicate grub entries for Ubuntu and Windows 7

    Quote Originally Posted by tshudyb View Post
    To start by saying that I am brand new to anything linux.

    I just installed Ubuntu 10.10 32-bit to dual boot on my Windows 7 32-bit PC. This last time that I booted my pc the grub looked like this:

    Ubuntu, Linux 2.6.32-25-generic
    Ubuntu, Linux 2.6.32-25-generic (recovery mode)
    Ubuntu, Linux 2.6.32-24-generic
    Ubuntu, Linux 2.6.32-24-generic (recovery mode)
    Windows 7 (loader) (on/dev/sda1)
    Windows 7 (loader) (on/dev/sda2)

    From what I understand the duplicate for Ubuntu is just an updated Kernal, hence the -24 to -25. What I didn't understand is why there is a duplicate for Windows 7 and what the sda1 and sda2 is? Someone please explain. When I first installed Ubuntu, there was only one listing for Ubuntu and one for Windows 7.

    Also, I was wondering what you do to keep up with new kernals and remove old one's. How do you keep the Kernals from piling up? I assume that when another Kernal becomes available, there will then be 3 Ubuntu listings in the grub.


    One last thing is I would like some suggestions for the best way of going about learning linux. (i.e. terminal commands)
    Here is a link that shows some linux terminal commands that will do what your asking. There are several ways to go about removing old kernels.

    Usually its advisable to keep an extra old copy in case you have issues with the newest kernel.

    The first several commands on the link is just displaying info only, so that part is harmless.

    There use to be a GUI around that allowed you to remove old kernels. someone will magically appear to show you that one.

    Regarding how to learn the CLI commands. Funny you should ask. I just read of a new book that is free to download. That info is found here.
    Last edited by VMC; October 13th, 2010 at 03:06 AM.
    boot_info_script | AMD64 Athlon X2 Dual-Core - nVidia Geforce 6150 SE - 4GB DDR3

  5. #5
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,205
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Duplicate grub entries for Ubuntu and Windows 7

    It is a useful program for tweaking all these things. It is available in System > Admin > Synaptic Package Manager (search for ubuntu-tweak, with the - in the middle)
    Attached Images Attached Images
    MacBook Pro 10,1 retina

  6. #6
    Join Date
    Jun 2006
    Beans
    226

    Re: Duplicate grub entries for Ubuntu and Windows 7

    I have the same problem with the dual Win7 entries. This has never happened before any previous version of Grub or Ubuntu.

    Anyone know how to remove the second entry? I tried to boot from it and it doesn't work.

    I also tried sudo grub-mkconfig and update-grub.


    Arch Linux

  7. #7
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Duplicate grub entries for Ubuntu and Windows 7

    Quote Originally Posted by Foxcow View Post
    I have the same problem with the dual Win7 entries. This has never happened before any previous version of Grub or Ubuntu.

    Anyone know how to remove the second entry? I tried to boot from it and it doesn't work.
    It's a bit geeky, but you can edit the /etc/grub.d/30_os-prober script to change or hide these entries (Section 4):
    Grub 2 Title Tweaks Thread

    The other option if you don't have additional OS's would be to create a 40_custom menu with your Windows entry and disable /etc/grub.d/30_os-prober entirely so it won't include the Windows entry as it currently displays.

    Since this isn't your thread, if you have any questions about the instructions please post in that thread.
    Last edited by drs305; October 27th, 2010 at 03:21 PM.
    GRUB2

    Retired.

  8. #8
    Join Date
    Jun 2006
    Beans
    226

    Re: Duplicate grub entries for Ubuntu and Windows 7

    Quote Originally Posted by drs305 View Post
    It's a bit geeky, but you can edit the /etc/grub.d/30_os-prober script to change or hide these entries (Section 4):
    Grub 2 Title Tweaks Thread

    The other option if you don't have additional OS's would be to create a 40_custom menu with your Windows entry and disable /etc/grub.d/30_os-prober entirely so it won't include the Windows entry as it currently displays.

    Since this isn't your thread, if you have any questions about the instructions please post in that thread.


    Thank you. I figured it was ok to ask since the original poster had the same question.
    Arch Linux

Tags for this Thread

Bookmarks

Posting Permissions

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