Page 9 of 24 FirstFirst ... 789101119 ... LastLast
Results 81 to 90 of 236

Thread: Grub 2 Title Tweaks Thread

  1. #81
    Join Date
    Oct 2007
    Location
    Australia
    Beans
    1,715
    Distro
    Ubuntu Development Release

    Re: Grub 2 Title Tweaks Thread

    Quote Originally Posted by drs305 View Post
    Don't forget to update-grub after saving the change.
    Nothing has changed I keep getting this after I update GRUB
    Code:
    michael@michael-laptop:~$ sudo update-grub
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-2.6.31-20-generic
    Found initrd image: /boot/initrd.img-2.6.31-20-generic
    /etc/grub.d/10_linux: 126: single : not found
    I'm assuming 126: is line 126 which is the new last line after I did the first modification a couple of weeks back. When I reboot I still have the normal non title recovery selection while the non recovery says Karmic.

    I'll keep playing around with it, and I'll give it a go on Lucid later to see if that behaves differently.
    Ubuntu User 23142 | Wiki | Laptop | HowTo:Create a background slideshow and Screensaver | Reconditioning pre-loved PCs and installing Ubuntu to give away to good homes.

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

    Re: Grub 2 Title Tweaks Thread

    k3lt01,

    /etc/grub.d/10_linux: 126: single : not found
    This just means there is an error somewhere in script. Line 126 is the last line in your file. The script is telling you that it went all the way to the end of the file and there were still issues yet unresolved. In this case, it involves the line with "single" in it.

    It could be something as simple as an extra space at the end of the line, the way the quotation symbols are interpreted in your text editor, etc. Also make sure you don't have an old script (for instance 10_linux.bad) in the /etc/grub.d folder that is still executable. Any executable file in the folder may run when update-grub is invoked.

    I don't have the time right now to go through the script and troubleshoot it, although running it on my computer currently produces no errors. I'll try to explore it more completely as soon as I have a bit of free time.

    Added: I was able to generate the same error message you received by placing a space at the end of the line prior to the line containing "single".
    Last edited by drs305; April 8th, 2010 at 06:36 AM.
    GRUB2

    Retired.

  3. #83
    Join Date
    Oct 2007
    Location
    Australia
    Beans
    1,715
    Distro
    Ubuntu Development Release

    Re: Grub 2 Title Tweaks Thread

    Quote Originally Posted by drs305 View Post
    In this case, it involves the line with "single" in it.

    It could be something as simple as an extra space at the end of the line,
    Fixed it, it was the line above "single"
    Code:
    linux_entry "${codename} ${version} (recovery mode)" \
    The issue was something to do with spacing it made no difference where the line started in the original file but in the modified file that line had two spaces to many at the start.

    Thanks again for your help.
    Ubuntu User 23142 | Wiki | Laptop | HowTo:Create a background slideshow and Screensaver | Reconditioning pre-loved PCs and installing Ubuntu to give away to good homes.

  4. #84
    Join Date
    Apr 2010
    Beans
    3

    Re: Grub 2 Title Tweaks Thread

    Quote Originally Posted by drs305 View Post


      • Original Menu Entry: Windows XP Home (on /dev/sda7)
        Approximately line 150.
        Code:
        menuentry "${LONGNAME} (on ${DEVICE})" {
        New Format: Windows XP Home (sda1)
        Code:
        menuentry "${LONGNAME}" (${shortdevice}) {

    Perhaps I'm wrong, but it appears that the end quote comes too soon (before the (${shortdevice}) part of the name). Thus, it should look like:
    Code:
    menuentry "${LONGNAME} (${shortdevice})" {
    This typo appears again in the subsequent title tweak as well...

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

    Re: Grub 2 Title Tweaks Thread

    Larkster,

    Thank you for pointing this out. Corrected in the original post.

    And welcome to the Ubuntu forums.
    GRUB2

    Retired.

  6. #86
    Join Date
    Apr 2010
    Beans
    3

    Re: Grub 2 Title Tweaks Thread

    Thank you for such a great post. I'm glad there are other people out there that are anal about the appearance of their Grub menu too. At first I was very cautious about modifying it, for fear of messing something up, but now I feel like I've learned so much from going through this tweaking process. Thanks!

  7. #87
    Join Date
    Apr 2010
    Beans
    1

    Re: Grub 2 Title Tweaks Thread

    Great tutorial and so easy to understand i like it ! =D>
    Anyway I found this trick will remove a menu entry or even a linux recovery while i playing around with it. hope it work and not double post.

    just assign value '--' to LONGNAME (LONGNAME = "--") or linux_entry (linux_entry "--")

    Remove a windows menu entry
    Code:
    if [ "${LONGNAME}" = "menu title here" ] ; then
      LONGNAME= "--"
    elif [ -z "${LONGNAME}" ] ; then
      LONGNAME="${LABEL}"
    fi
    Remove a linux recovery mode
    Code:
    # ORIGINAL linux_entry "${OS}, Linux ${version} (recovery mode)" \
    linux_entry "--" \

  8. #88
    Join Date
    Jan 2010
    Location
    Bangalore, India
    Beans
    109
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Grub 2 Title Tweaks Thread

    hi.....I have Lenovo Y500 series laptop and I found that when ever I boot system , my keyboard worked some times and some times not .Same thing was happening with my touchpad.

    After some googling I found out that it’s neither a problem of Operating System nor a misconfiguration of X11 config file.

    It is a problem related to acpi and the 8042 interrupt controller conflicts.

    So to get rid of this problem is to edit your grub configuration file ./boot/grub/menu.lst ( on ubuntu) and append the following line to the kernel argument.

    locale=fr_FR i8042.reset
    but with grub2 i dont understand where to append the following line....
    Code:
    default=0
    timeout=5
    splashimage=(hd0,5)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.18-164.11.1.el5)
    root (hd0,5)
    kernel /vmlinuz-2.6.18-164.11.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet splash
    initrd /initrd-2.6.18-164.11.1.el5.imga
    I have highlighted the line the be changed. Append the ‘locale=fr_FR i8042.reset’ to the following line.Depending on your grub file, you have to find line having kernel and modify it. After the changes, file is.
    Code:
    default=0
    timeout=5
    splashimage=(hd0,5)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.18-164.11.1.el5)
    root (hd0,5)
    kernel /vmlinuz-2.6.18-164.11.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet splash locale=fr_FR i8042.reset 
    initrd /initrd-2.6.18-164.11.1.el5.imga
    need help...

  9. #89
    Join Date
    Apr 2006
    Beans
    24

    Re: Grub 2 Title Tweaks Thread

    Quote Originally Posted by dr_psikick View Post
    Thanks for the input, I really don't care about the location on the grub menu, so at the end would be just fine.

    In the previous version my USB entry looked like this:

    root: (hd1,0)
    make active: yes
    chainloader: +1


    so if someone can help me in creating one entry for GRUB2 for booting USB devices I would be really thankful.

    /bump

    Someone? Thanks.

  10. #90
    Join Date
    Apr 2005
    Beans
    77

    Re: Grub 2 Title Tweaks Thread

    I have followed
    7. HIDING THE MENU ON MULTI-OS SYSTEMS

    and it works after updating grub,
    but the file /etc/default/grub is not recognized,
    I can't come into the menu with Shift-Key
    I want to have 4 seconds hidden timeout with countdown displayed and be able to access the menu with Shift, but it does not show, my lines are:

    GRUB_DEFAULT=0
    GRUB_HIDDEN_TIMEOUT=4
    GRUB_HIDDEN_TIMEOUT_QUIET=false
    GRUB_TIMEOUT=4

    Anybody help?

Page 9 of 24 FirstFirst ... 789101119 ... LastLast

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
  •