Page 36 of 94 FirstFirst ... 2634353637384686 ... LastLast
Results 351 to 360 of 931

Thread: Grub 2 Basics

  1. #351
    Join Date
    Aug 2008
    Location
    South East Montana
    Beans
    6,153

    Re: Grub 2 Basics

    Quote Originally Posted by kansasnoob View Post
    I have a query for the grub2 fluent

    You can read what's going on here:

    http://ubuntuforums.org/showpost.php...&postcount=119

    Anyway that got Plymouth working in Lucid but I'm curious if I changed the resolution in the following line from "/etc/default/grub":



    Would I also have to edit the following line in "/etc/grub.d/00_header":



    eg: change the 640x480 to 1440x900 in both entries?

    No rush I'm just playing.
    I was just doing my update/upgrade song and dance and decided to look into this a little while I was at it.

    First, that line in my /etc/default/grub is commented out so I saw no reason to edit it.

    Second, I changed the resolution in /etc/grub.d/00_header to 1440X900. Ran update-grub and grub-mkconfig.

    Third, rebooted the victim OS. Gave me a very nice looking menu with very small font on a full screen. I would guess the font size at about 8.

    I use a background and that was, of course, off and just in the upper left corner of the menu. Changing it to 1440x900 still was too small. 2560x1600 is too big but that is where I left it for now as I needed to get back over here.

    What is the purpose of changing this setting? While it worked on my box with my /etc/default/grub setting, the font is really a little small for comfort if you have several entries. If you do not have several entries there would be little point in changing it.

    It would list, on one page, an awful lot of entries.
    Dell 480 XPS 3G ram Quad Core 2.40GHz, Radeon HD 2400 PRO, Audigy1, 3x320G HDD, 320G External, Debian Testing for use, Debian Squeeze for secure use, Debian Sid for FUN

  2. #352
    Join Date
    Jun 2009
    Beans
    25

    Re: Grub 2 Basics

    Hi! I'm a wub user. Karmic and win7. When I select win7 at grub, got this error:

    error: no such device: 8eecaf0aecaeeba1

    and then back to grub.

    I looked for an answer at web but I dind't find much information.

    Before this happens I use Gparted to format a Recovery partition (I've a notebook Dell Vostro 1720). I formatted this one to FAT32 and there was an other little partition that I erase (erasing it was a silly thing, I'm not even using it). I think, but don't remember, that both were NTFS, the recovery's for sure.

    picknick

  3. #353
    Join Date
    Apr 2008
    Beans
    10,441

    Re: Grub 2 Basics

    Quote Originally Posted by ranch hand View Post
    I was just doing my update/upgrade song and dance and decided to look into this a little while I was at it.

    First, that line in my /etc/default/grub is commented out so I saw no reason to edit it.

    Second, I changed the resolution in /etc/grub.d/00_header to 1440X900. Ran update-grub and grub-mkconfig.

    Third, rebooted the victim OS. Gave me a very nice looking menu with very small font on a full screen. I would guess the font size at about 8.

    I use a background and that was, of course, off and just in the upper left corner of the menu. Changing it to 1440x900 still was too small. 2560x1600 is too big but that is where I left it for now as I needed to get back over here.

    What is the purpose of changing this setting? While it worked on my box with my /etc/default/grub setting, the font is really a little small for comfort if you have several entries. If you do not have several entries there would be little point in changing it.

    It would list, on one page, an awful lot of entries.
    I should have been more clear about what's going on instead of just posting a link to a thread. Many of us Lucid testers (nvidia users especially) have just an ugly blue/white progress bar coming out of Plymouth. I use the openchrome drivers and get the same.

    So removing the comment in front of the following line in "/etc/default/grub"

    #GRUB_GFXMODE=640x480

    And also adding the following to "/etc/grub.d/00_header":

    Code:
    case x${GRUB_TERMINAL_OUTPUT} in
     xgfxterm)
        # Make the font accessible
        prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}`
    
        cat << EOF
    if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
      set gfxmode=${GRUB_GFXMODE}
     +set gfxpayload=keep
      insmod gfxterm
      insmod ${GRUB_VIDEO_BACKEND}
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    And that seems to work

    I'm just confused about the relationship between the aforementioned two files.

    They both seem to me to refer to the same thing:

    Code:
    GRUB_GFXMODE=640x480
    if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=640x480 ; fi
    I'm just asking folks that may know more than I do.

  4. #354
    Join Date
    Apr 2008
    Beans
    10,441

    Re: Grub 2 Basics

    Quote Originally Posted by picknick View Post
    Hi! I'm a wub user. Karmic and win7. When I select win7 at grub, got this error:

    error: no such device: 8eecaf0aecaeeba1

    and then back to grub.

    I looked for an answer at web but I dind't find much information.

    Before this happens I use Gparted to format a Recovery partition (I've a notebook Dell Vostro 1720). I formatted this one to FAT32 and there was an other little partition that I erase (erasing it was a silly thing, I'm not even using it). I think, but don't remember, that both were NTFS, the recovery's for sure.

    picknick
    Odd being Wubi makes me think this:

    http://sourceforge.net/apps/mediawik...lems:Wubi_9.10

    But that error makes me think this:

    http://sourceforge.net/apps/mediawik...roblems:search

    It would be best to see the output of the Boot Info Script as described here:

    http://bootinfoscript.sourceforge.net/

  5. #355
    Join Date
    Jun 2009
    Beans
    25

    Re: Grub 2 Basics

    Quote Originally Posted by kansasnoob View Post
    Odd being Wubi makes me think this:

    http://sourceforge.net/apps/mediawik...lems:Wubi_9.10

    But that error makes me think this:

    http://sourceforge.net/apps/mediawik...roblems:search

    It would be best to see the output of the Boot Info Script as described here:

    http://bootinfoscript.sourceforge.net/
    Thanks a lot!!! But I dind't repear it. I have been looking the situation closely. The second link you sent me the one that reefer to the "search" command.

    I follow the steps that are recommended there. I realized that the UUID that the grub was looking for when I choose win7 to boot is wrong. Maybe this is because I erase the partition that grub was reefering to.

    So, when I updated grub with
    Code:
    sudo udpate-grub
    and restart I found that the win7 option wasn't there to boot. Which makes more reliable my theory (but I don't know really).

    Fortunately, thanks to you, I use bootscript before and after the update-grub. I tried to edit boot.cfg from "grub-mkconfig_lib" but I don't know how to handle it. I can't tell him how to see win7 partitoin (maybe that partition does not have the information to boot, but again I don't know).

    picknick

    P.D.: I will paste here the first result of bootscript. The only difference with the last one (the one I made after update-grub) is that the lines
    menuentry "Windows 7 (loader) (on /dev/sda2)" {
    insmod ntfs
    set root=(hd0,2)
    search --no-floppy --fs-uuid --set 8eecaf0aecaeeba1
    chainloader +1
    }
    that are at line 219, don't appears.

    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in 
        partition #6 for /grub.
    
    sda1: _________________________________________________________________________
    
        File system:       vfat
        Boot sector type:  Fat32
        Boot sector info:  According to the info in the boot sector, sda1 starts 
                           at sector 0. But according to the info from fdisk, 
                           sda1 starts at sector 63.
        Operating System:  
        Boot files/dirs:   
    
    sda3: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /Windows/System32/winload.exe
    
    sda4: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sda6: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files/dirs:   /grub/grub.cfg /grub/core.img
    
    sda7: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 9.10
        Boot files/dirs:   /etc/fstab
    
    sda8: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files/dirs:   
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disco /dev/sda: 320.1 GB, 320072933376 bytes
    255 cabezas, 63 sectores/pista, 38913 cilindros, 625142448 sectores en total
    Unidades = sectores de 1 * 512 = 512 bytes
    Identificador de disco: 0xb63575e1
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1                  63    30,796,604    30,796,542   b W95 FAT32
    /dev/sda3          30,801,920   518,944,498   488,142,579   7 HPFS/NTFS
    /dev/sda4         518,947,695   625,137,344   106,189,650   5 Extended
    /dev/sda5         518,947,758   536,522,804    17,575,047  82 Linux swap / Solaris
    /dev/sda6         536,522,868   536,731,649       208,782  83 Linux
    /dev/sda7         536,731,713   567,978,074    31,246,362  83 Linux
    /dev/sda8         567,978,138   625,137,344    57,159,207  83 Linux
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/sda1        4B8B-039A                              vfat                                     
    /dev/sda3        8070B0E470B0E1D8                       ntfs       OS                            
    /dev/sda5        cd67bba8-1a7f-4be0-8263-1a6d9ad03111   swap                                     
    /dev/sda6        bf26e330-5ba7-4efe-a0b0-557a04c535cd   ext4                                     
    /dev/sda7        84b8941d-815a-4a1b-b277-63666a7d3677   ext4                                     
    /dev/sda8        530c7959-56d7-4298-a5eb-eca90faa1dc4   ext4                                     
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda7        /                        ext4       (rw,errors=remount-ro)
    /dev/sda6        /boot                    ext4       (rw)
    /dev/sda8        /home                    ext4       (rw)
    /dev/sda1        /media/4B8B-039A         vfat       (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)
    
    
    ============================= sda6/grub/grub.cfg: =============================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s /boot/grub/grubenv ]; then
      have_grubenv=true
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      saved_entry=${prev_saved_entry}
      save_env saved_entry
      prev_saved_entry=
      save_env prev_saved_entry
    fi
    insmod ext2
    set root=(hd0,7)
    search --no-floppy --fs-uuid --set 84b8941d-815a-4a1b-b277-63666a7d3677
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      insmod gfxterm
      insmod vbe
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    if [ ${recordfail} = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/white
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    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,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-19-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro   quiet splash
        initrd    /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,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-19-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro single 
        initrd    /initrd.img-2.6.31-19-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-17-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        set quiet=1
        insmod ext2
        set root=(hd0,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-17-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro   quiet splash
        initrd    /initrd.img-2.6.31-17-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        insmod ext2
        set root=(hd0,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-17-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro single 
        initrd    /initrd.img-2.6.31-17-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        set quiet=1
        insmod ext2
        set root=(hd0,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-14-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro   quiet splash
        initrd    /initrd.img-2.6.31-14-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        insmod ext2
        set root=(hd0,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-14-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro single 
        initrd    /initrd.img-2.6.31-14-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        linux16    /memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        linux16    /memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sda2)" {
        insmod ntfs
        set root=(hd0,2)
        search --no-floppy --fs-uuid --set 8eecaf0aecaeeba1
        chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### 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.
    ### END /etc/grub.d/40_custom ###
    
    =================== sda6: Location of files loaded by Grub: ===================
    
    
     274.7GB: grub/core.img
     274.7GB: grub/grub.cfg
     274.7GB: initrd.img-2.6.31-14-generic
     274.7GB: initrd.img-2.6.31-17-generic
     274.7GB: initrd.img-2.6.31-19-generic
     274.7GB: vmlinuz-2.6.31-14-generic
     274.7GB: vmlinuz-2.6.31-17-generic
     274.7GB: vmlinuz-2.6.31-19-generic
    
    =============================== sda7/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    # / was on /dev/sda7 during installation
    UUID=84b8941d-815a-4a1b-b277-63666a7d3677 /               ext4    errors=remount-ro 0       1
    # /boot was on /dev/sda6 during installation
    UUID=bf26e330-5ba7-4efe-a0b0-557a04c535cd /boot           ext4    defaults        0       2
    # /home was on /dev/sda8 during installation
    UUID=530c7959-56d7-4298-a5eb-eca90faa1dc4 /home           ext4    defaults        0       2
    # swap was on /dev/sda5 during installation
    UUID=cd67bba8-1a7f-4be0-8263-1a6d9ad03111 none            swap    sw              0       0
    
    =================== sda7: Location of files loaded by Grub: ===================
    
    
     274.8GB: initrd.img
     274.8GB: initrd.img.old
     274.8GB: vmlinuz
     274.8GB: vmlinuz.old
    So how do I do to put win7 at grub (as an option) with the right UUID?

  6. #356
    Join Date
    Apr 2008
    Beans
    10,441

    Re: Grub 2 Basics

    Quote Originally Posted by picknick View Post
    Thanks a lot!!! But I dind't repear it. I have been looking the situation closely. The second link you sent me the one that reefer to the "search" command.

    I follow the steps that are recommended there. I realized that the UUID that the grub was looking for when I choose win7 to boot is wrong. Maybe this is because I erase the partition that grub was reefering to.

    So, when I updated grub with
    Code:
    sudo udpate-grub
    and restart I found that the win7 option wasn't there to boot. Which makes more reliable my theory (but I don't know really).

    Fortunately, thanks to you, I use bootscript before and after the update-grub. I tried to edit boot.cfg from "grub-mkconfig_lib" but I don't know how to handle it. I can't tell him how to see win7 partitoin (maybe that partition does not have the information to boot, but again I don't know).

    picknick

    P.D.: I will paste here the first result of bootscript. The only difference with the last one (the one I made after update-grub) is that the lines

    that are at line 219, don't appears.

    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in 
        partition #6 for /grub.
    
    sda1: _________________________________________________________________________
    
        File system:       vfat
        Boot sector type:  Fat32
        Boot sector info:  According to the info in the boot sector, sda1 starts 
                           at sector 0. But according to the info from fdisk, 
                           sda1 starts at sector 63.
        Operating System:  
        Boot files/dirs:   
    
    sda3: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /Windows/System32/winload.exe
    
    sda4: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sda6: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files/dirs:   /grub/grub.cfg /grub/core.img
    
    sda7: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 9.10
        Boot files/dirs:   /etc/fstab
    
    sda8: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files/dirs:   
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disco /dev/sda: 320.1 GB, 320072933376 bytes
    255 cabezas, 63 sectores/pista, 38913 cilindros, 625142448 sectores en total
    Unidades = sectores de 1 * 512 = 512 bytes
    Identificador de disco: 0xb63575e1
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1                  63    30,796,604    30,796,542   b W95 FAT32
    /dev/sda3          30,801,920   518,944,498   488,142,579   7 HPFS/NTFS
    /dev/sda4         518,947,695   625,137,344   106,189,650   5 Extended
    /dev/sda5         518,947,758   536,522,804    17,575,047  82 Linux swap / Solaris
    /dev/sda6         536,522,868   536,731,649       208,782  83 Linux
    /dev/sda7         536,731,713   567,978,074    31,246,362  83 Linux
    /dev/sda8         567,978,138   625,137,344    57,159,207  83 Linux
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/sda1        4B8B-039A                              vfat                                     
    /dev/sda3        8070B0E470B0E1D8                       ntfs       OS                            
    /dev/sda5        cd67bba8-1a7f-4be0-8263-1a6d9ad03111   swap                                     
    /dev/sda6        bf26e330-5ba7-4efe-a0b0-557a04c535cd   ext4                                     
    /dev/sda7        84b8941d-815a-4a1b-b277-63666a7d3677   ext4                                     
    /dev/sda8        530c7959-56d7-4298-a5eb-eca90faa1dc4   ext4                                     
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda7        /                        ext4       (rw,errors=remount-ro)
    /dev/sda6        /boot                    ext4       (rw)
    /dev/sda8        /home                    ext4       (rw)
    /dev/sda1        /media/4B8B-039A         vfat       (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)
    
    
    ============================= sda6/grub/grub.cfg: =============================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s /boot/grub/grubenv ]; then
      have_grubenv=true
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      saved_entry=${prev_saved_entry}
      save_env saved_entry
      prev_saved_entry=
      save_env prev_saved_entry
    fi
    insmod ext2
    set root=(hd0,7)
    search --no-floppy --fs-uuid --set 84b8941d-815a-4a1b-b277-63666a7d3677
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      insmod gfxterm
      insmod vbe
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    if [ ${recordfail} = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/white
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    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,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-19-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro   quiet splash
        initrd    /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,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-19-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro single 
        initrd    /initrd.img-2.6.31-19-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-17-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        set quiet=1
        insmod ext2
        set root=(hd0,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-17-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro   quiet splash
        initrd    /initrd.img-2.6.31-17-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        insmod ext2
        set root=(hd0,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-17-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro single 
        initrd    /initrd.img-2.6.31-17-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        set quiet=1
        insmod ext2
        set root=(hd0,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-14-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro   quiet splash
        initrd    /initrd.img-2.6.31-14-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        insmod ext2
        set root=(hd0,6)
        search --no-floppy --fs-uuid --set bf26e330-5ba7-4efe-a0b0-557a04c535cd
        linux    /vmlinuz-2.6.31-14-generic root=UUID=84b8941d-815a-4a1b-b277-63666a7d3677 ro single 
        initrd    /initrd.img-2.6.31-14-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        linux16    /memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        linux16    /memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sda2)" {
        insmod ntfs
        set root=(hd0,2)
        search --no-floppy --fs-uuid --set 8eecaf0aecaeeba1
        chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### 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.
    ### END /etc/grub.d/40_custom ###
    
    =================== sda6: Location of files loaded by Grub: ===================
    
    
     274.7GB: grub/core.img
     274.7GB: grub/grub.cfg
     274.7GB: initrd.img-2.6.31-14-generic
     274.7GB: initrd.img-2.6.31-17-generic
     274.7GB: initrd.img-2.6.31-19-generic
     274.7GB: vmlinuz-2.6.31-14-generic
     274.7GB: vmlinuz-2.6.31-17-generic
     274.7GB: vmlinuz-2.6.31-19-generic
    
    =============================== sda7/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    # / was on /dev/sda7 during installation
    UUID=84b8941d-815a-4a1b-b277-63666a7d3677 /               ext4    errors=remount-ro 0       1
    # /boot was on /dev/sda6 during installation
    UUID=bf26e330-5ba7-4efe-a0b0-557a04c535cd /boot           ext4    defaults        0       2
    # /home was on /dev/sda8 during installation
    UUID=530c7959-56d7-4298-a5eb-eca90faa1dc4 /home           ext4    defaults        0       2
    # swap was on /dev/sda5 during installation
    UUID=cd67bba8-1a7f-4be0-8263-1a6d9ad03111 none            swap    sw              0       0
    
    =================== sda7: Location of files loaded by Grub: ===================
    
    
     274.8GB: initrd.img
     274.8GB: initrd.img.old
     274.8GB: vmlinuz
     274.8GB: vmlinuz.old
    So how do I do to put win7 at grub (as an option) with the right UUID?
    The first thing I notice is that you have no boot flag set on sda3 which is your Win 7 partition. You can set a boot flag on it using Gparted:

    Screenshot.jpg

    But you might also be missing some Win 7 boot files, yours is in black below and mine is in red:

    Code:
    sda3: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /Windows/System32/winload.exe
                           /bootmgr /Boot/BCD /Windows/System32/winload.exe
    Maybe you deleted the partition (sda2?) that held that part of the Win 7 boot files

    If you have a Win 7 disc that may be recoverable, I'm not sure.

  7. #357
    Join Date
    Apr 2008
    Beans
    3,317
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Grub 2 Basics

    You can set a boot flag on it using Gparted
    +1

    If you have a Win 7 disc that may be recoverable,
    Yes, it is. But even if you don't have a Win 7 CD you can download one.

    Detailed instructions:

    boot from your Windows 7 CD/DVD. (If you do not have one, you can download a Windows 7 repair CD from here)

    At the first screen select your favorite language.
    At the second screen choose "Repair your Computer".

    If a pop up appears, offering to repair a problem with the "Startup options", click on "Repair and restart".

    Otherwise, on the next screen select "Use recovery tools ..." and click on "Next".
    Choose "Startup Repair" at the next screen.

    "Startup Repair" tends to fix one problem at the time. So you might have to run "Startup Repair" several times.


    After running startup repair, boot into Ubuntu and run

    Code:
    sudo update-grub

  8. #358
    Join Date
    Apr 2008
    Beans
    10,441

    Re: Grub 2 Basics

    Thanks Meierfra.

    I'm curious if anyone has a list of all the grub2 files that are supposed to be executable?

    No rush just wanting to satisfy my curiosity.

    HMMMMMMMMM, as I look I wonder if it's just everything in "/etc/grub.d"????????
    Last edited by kansasnoob; March 7th, 2010 at 07:02 PM.

  9. #359
    Join Date
    Jun 2009
    Beans
    25

    Re: Grub 2 Basics

    Thanks to kansasnoob and meierfra!!!

    Now I can boot win7 again. I put the boot flag, used the recovery cd 2 times (at the link) and did the
    Code:
    sudo update-grub
    .

    As kansasnoob said my output of bootsript shows me the right boot files of win7 for grub.

    Code:
    sda3: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /bootmgr /Boot/BCD /Windows/System32/winload.exe
    Something else: now the UUID that appears at the boot.cfg is the same that blkid returns.

    Thanks a lot!!!!

  10. #360
    Join Date
    Jan 2007
    Beans
    54
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: Grub 2 Basics

    Ok, I have two questions. First, why is it not advised to install GRUB to the linux partition instead of the MBR? I currently have Windows 7 as the default OS, and I used EasyBCD to add the GRUB2 for my Xubuntu 8.10 install to the Windows 7 Bootloader. What issues could this cause me? I am doing it this way so that Windows 7 will boot if the machine comes out of Hibernate.

    Which brings me to my next question. Can I set up GRUB to do this for me? As in, does GRUB2 have a way to detect if my (Windows or linux) installs were hibernated and boot into the hibernated one? Thanks in advance.
    movin' to a new home: from 127.0.0.1 to ::1

Page 36 of 94 FirstFirst ... 2634353637384686 ... 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
  •