Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Manual Grub Entry

  1. #1
    Join Date
    May 2010
    Location
    UK
    Beans
    115
    Distro
    Ubuntu 10.04 Lucid Lynx

    Manual Grub Entry

    Hi
    I have added a manual entry to /etc/grub.d/40_custom and ran update-grub and the entry is added to /boot/grub/grub.cfg OK

    But when booting the entry is not appearing

    Has anyone come across this before as am a bit stumped trouble shooting this as there are no errors

    Thanks
    There's no place like ~/

  2. #2
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    8,849
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Manual Grub Entry

    Have a look at item number 14 in this guide by drs305, just to check what you've done
    http://ubuntuforums.org/showthread.php?t=1287602
    Sony Vaio AR51SU
    Nvidia 8600M GT

  3. #3
    Join Date
    May 2010
    Location
    UK
    Beans
    115
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Manual Grub Entry

    Ye I have I looked at this thread by the same person http://ubuntuforums.org/showthread.php?t=1195275

    Basically add the entry, update-grub and voila, to be honest I'm not sure the entry is 100% correct but that shouldn't stop it appearing especially as it is written to grub.cfg correctly

    Weird
    There's no place like ~/

  4. #4
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    8,849
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Manual Grub Entry

    I haven't done this addition myself, but I would imagine that the entry has to EXACTLY match what drs305 quotes (except for the different drive/partition number) for it to work.
    Sony Vaio AR51SU
    Nvidia 8600M GT

  5. #5
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: Manual Grub Entry

    Is it possible that you have more than one linux with more than one grub2 and you are trying to edit the wrong one, ie a grub2 menu that is actually from a different OS to the one you are editing?

    It should be obvious, I agree, as the default OS to which the system boots will be the OS that has the active grub2 configuration files.

  6. #6
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    8,849
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Manual Grub Entry

    An excellent point! I have fallen foul of that myself
    Sony Vaio AR51SU
    Nvidia 8600M GT

  7. #7
    Join Date
    May 2010
    Location
    UK
    Beans
    115
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Manual Grub Entry

    Quote Originally Posted by Quackers View Post
    I haven't done this addition myself, but I would imagine that the entry has to EXACTLY match what drs305 quotes (except for the different drive/partition number) for it to work.
    It does see below the contents of 40_custom
    Code:
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    
    menuentry "Wary (on sdb1)"{ 
    set root=(hd1,1) 
    linux /vmlinuz pmedia=usbhd
    initrd /initrd.gz 
    } 
    EOF
    and here is the entry in grub.cfg

    Code:
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    
    menuentry "Wary (on sdb1)"{ 
    set root=(hd1,1) 
    linux /vmlinuz pmedia=usbhd
    initrd /initrd.gz 
    } 
    EOF
    As I said the entry may not be 100% correct but that shouldn't stop it appearing on boot should it?

    Quote Originally Posted by ajgreeny View Post
    Is it possible that you have more than one linux with more than one grub2 and you are trying to edit the wrong one, ie a grub2 menu that is actually from a different OS to the one you are editing?

    It should be obvious, I agree, as the default OS to which the system boots will be the OS that has the active grub2 configuration files.
    Thanks for the idea I do have several partitions with another *nix but I have double checked and I am using the correct grub
    Edit:
    the only complication is it is on a USB HD but again I can't see that stopping it appearing
    Last edited by _Mark_; January 13th, 2011 at 06:27 PM. Reason: More Info
    There's no place like ~/

  8. #8
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    25,789
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Manual Grub Entry

    If you have lots of systems & then lots of entries in grub's menu, you can have more entires than the display box can show. If there is a tiny arrow on the right side it means there are more entries and you have to scroll down to see the last one's.
    Let us know what works and to mark your thread as [SOLVED] for new forum vb4:
    Temp workaround for [SOLVED]- http://ubuntuforums.org/showthread.php?t=2121377


  9. #9
    Join Date
    May 2010
    Location
    UK
    Beans
    115
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Manual Grub Entry

    Quote Originally Posted by oldfred View Post
    If you have lots of systems & then lots of entries in grub's menu, you can have more entires than the display box can show. If there is a tiny arrow on the right side it means there are more entries and you have to scroll down to see the last one's.
    I only have about 8 entries it's definitely not hiding but thanks for the reply

    I even renamed it to 06_custom so it should be at the top but no dice
    There's no place like ~/

  10. #10
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    25,789
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Manual Grub Entry

    Just so we can see where everything is at:

    Boot Info Script courtesy of forum member meierfra
    Page with instructions and download:
    http://bootinfoscript.sourceforge.net/
    Paste results.txt, then highlight entire file and click on # in edit panel(code tags) to make it easier to read.
    Or You can generate the tags first by pressing the # icon in the post's menu and then paste the contents between the generated [ code] paste here [ /code] tags.
    Let us know what works and to mark your thread as [SOLVED] for new forum vb4:
    Temp workaround for [SOLVED]- http://ubuntuforums.org/showthread.php?t=2121377


Page 1 of 3 123 LastLast

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
  •