Results 1 to 9 of 9

Thread: GRUB problem after upgrading to 10.04

  1. #1
    Join Date
    Jul 2008
    Beans
    64

    Exclamation GRUB problem after upgrading to 10.04

    I have Ubuntu Studio, Ubuntu and XP in 2 HDs...
    I upgraded Studio to 10.04 and XP doesn't start anymore...
    I upgraded Ubuntu with and error in the GRUB and then just Studio was booting...
    With $ sudo mount -t ext4 /dev/sda2 /mnt
    $ sudo grub-install --root-directory=/mnt /dev/sda
    I recover Ubuntu boot... but not XP...
    at last I removed completely the GRUB2 in the Ubuntu and Studio synaptcs...
    Now I have all the same but with GRUB 1.97
    Ubuntu starts ok, Studio starts after an error message something like: dev/ no such device... and after choosing xp in the list all that appears is a black screen with an white __
    I will post down the sudo fdisk -l and
    sudo gedit /boot/grub/grub.cfg
    outputs to help you help me...
    Thanks!

  2. #2
    Join Date
    Jul 2008
    Beans
    64

    Exclamation Re: GRUB problem after upgrading to 10.04

    gilmar@ubuntu:~$ sudo fdisk -l
    [sudo] password for gilmar:

    Disco /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Unidades = cilindros de 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Identificador do disco: 0xff43ff43

    Dispositivo Boot Início Fim Blocos Id Sistema
    /dev/sda1 * 1 12749 102406311 7 HPFS ou NTFS
    /dev/sda2 12750 60049 379937250 83 Linux
    /dev/sda3 60050 60801 6040440 82 Linux swap / Solaris

    Disco /dev/sdb: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Unidades = cilindros de 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Identificador do disco: 0x3ce53ce4

    Dispositivo Boot Início Fim Blocos Id Sistema
    /dev/sdb1 1 24577 197414721 83 Linux
    /dev/sdb2 24578 38913 115153920 f Win95 (LBA) Partição Extendida
    /dev/sdb5 24578 38163 109129513+ 7 HPFS ou NTFS
    /dev/sdb6 38164 38913 6024343+ 82 Linux swap / Solaris
    gilmar@ubuntu:~$

  3. #3
    Join Date
    Jul 2008
    Beans
    64

    Question Re: GRUB problem after upgrading to 10.04

    gilmar@ubuntu:~$ sudo gedit /boot/grub/grub.cfg
    [sudo] password for gilmar:

    #
    # 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 $prefix/grubenv ]; then
    load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
    set saved_entry=${prev_saved_entry}
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi

    function savedefault {
    if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
    fi
    }

    function recordfail {
    set recordfail=1
    if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    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
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    set locale_dir=($root)/boot/grub/locale
    set lang=pt
    insmod gettext
    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/light-gray
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, com Linux 2.6.31-10-rt' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    linux /boot/vmlinuz-2.6.31-10-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro quiet splash
    initrd /boot/initrd.img-2.6.31-10-rt
    }
    menuentry 'Ubuntu, com Linux 2.6.31-10-rt (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    echo 'Carregando Linux 2.6.31-10-rt ...'
    linux /boot/vmlinuz-2.6.31-10-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro single
    echo 'Carregando ramdisk inicial ...'
    initrd /boot/initrd.img-2.6.31-10-rt
    }
    menuentry 'Ubuntu, com Linux 2.6.31-9-rt' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    linux /boot/vmlinuz-2.6.31-9-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro quiet splash
    initrd /boot/initrd.img-2.6.31-9-rt
    }
    menuentry 'Ubuntu, com Linux 2.6.31-9-rt (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    echo 'Carregando Linux 2.6.31-9-rt ...'
    linux /boot/vmlinuz-2.6.31-9-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro single
    echo 'Carregando ramdisk inicial ...'
    initrd /boot/initrd.img-2.6.31-9-rt
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
    insmod ntfs
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set 18a0474da0473114
    drivemap -s (hd0) ${root}
    chainloader +1
    }
    menuentry "Ubuntu, com Linux 2.6.32-22-generic (on /dev/sda2)" {
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    linux /boot/vmlinuz-2.6.32-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro quiet splash
    initrd /boot/initrd.img-2.6.32-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.32-22-generic (modo de recuperação) (on /dev/sda2)" {
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    linux /boot/vmlinuz-2.6.32-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro single
    initrd /boot/initrd.img-2.6.32-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.31-22-generic (on /dev/sda2)" {
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    linux /boot/vmlinuz-2.6.31-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro quiet splash
    initrd /boot/initrd.img-2.6.31-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.31-22-generic (modo de recuperação) (on /dev/sda2)" {
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    linux /boot/vmlinuz-2.6.31-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro single
    initrd /boot/initrd.img-2.6.31-22-generic
    }
    ### 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 ###

  4. #4
    Join Date
    Jun 2008
    Location
    Vancouver Canada
    Beans
    3,145
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: GRUB problem after upgrading to 10.04

    Hi NeoAndersen.

    Your boot flag (*), looks like it should be on /dev/sda2.
    I learn something ubuntu everyday.
    dell precision T7500 1Tb hdd x 2
    2.67 Ghz intel xeon X5550 cpu
    nvidia quadro fx 4800-1.5 Gb video card

  5. #5
    Join Date
    Jul 2008
    Beans
    64

    Question Re: GRUB problem after upgrading to 10.04

    Quote Originally Posted by hansdown View Post
    Hi NeoAndersen.

    Your boot flag (*), looks like it should be on /dev/sda2.
    Hi hansdown!

    How to change this boot flag? What does it mean?

  6. #6
    Join Date
    Jun 2008
    Location
    Vancouver Canada
    Beans
    3,145
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: GRUB problem after upgrading to 10.04

    In case I may be wrong, could you download the boot infi script, and run it?

    http://bootinfoscript.sourceforge.net/

    If you know for sure, where the boot flag should be, run the live ubuntu cd, and run it "without changes to the computer".

    Click system> administration> gparted.

    Right click the partition> flags, then you can put the flag there. If it works when you boot back into your system, then it would be safe to remove the other flag.
    I learn something ubuntu everyday.
    dell precision T7500 1Tb hdd x 2
    2.67 Ghz intel xeon X5550 cpu
    nvidia quadro fx 4800-1.5 Gb video card

  7. #7
    Join Date
    Jul 2008
    Beans
    64

    Question Re: GRUB problem after upgrading to 10.04

    I installed another Ubuntu to see if it would recover my xp boot... It worked last year when I had this problem... Now I have 2 Ubuntu and 1 Ubuntu Studio...
    XP not starting yet...

    Here is the boot_info_script:
    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 #5 for /boot/grub.
     => Grub 0.97 is installed in the MBR of /dev/sdb and looks on the same drive 
        in partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.
    
    sda1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Grub 2
        Boot sector info:  Grub 2 is installed in the boot sector of sda1 and 
                           looks at sector 10340103 of the same hard drive for 
                           core.img, but core.img can not be found at this 
                           location. No errors found in the Boot Parameter Block.
        Operating System:  Windows XP
        Boot files/dirs:   /boot.ini /ntldr /NTDETECT.COM
    
    sda2: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  Grub 2
        Boot sector info:  Grub 2 is installed in the boot sector of sda2 and 
                           looks at sector 10351303 of the same hard drive for 
                           core.img, but core.img can not be found at this 
                           location.
        Operating System:  Ubuntu 10.04 LTS
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda3: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sda4: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  Unknown
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.04 LTS
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sdb1: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  Grub 2
        Boot sector info:  Grub 2 is installed in the boot sector of sdb1 and 
                           looks at sector 10354295 of the same hard drive for 
                           core.img, but core.img can not be found at this 
                           location.
        Operating System:  Ubuntu 10.04 LTS
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sdb2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sdb5: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Grub 2
        Boot sector info:  Grub 2 is installed in the boot sector of sdb5 and 
                           looks at sector 10108831 of the same hard drive for 
                           core.img, but core.img can not be found at this 
                           location. According to the info in the boot sector, 
                           sdb5 starts at sector 63.
        Operating System:  
        Boot files/dirs:   
    
    sdb6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disco /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total de 976773168 setores
    Unidades = setores de 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *             63   204,812,684   204,812,622   7 HPFS/NTFS
    /dev/sda2         204,812,685   887,438,002   682,625,318  83 Linux
    /dev/sda3         964,687,185   976,768,064    12,080,880  82 Linux swap / Solaris
    /dev/sda4         887,439,358   964,685,823    77,246,466   5 Extended
    /dev/sda5         887,439,360   961,423,359    73,984,000  83 Linux
    /dev/sda6         961,425,408   964,685,823     3,260,416  82 Linux swap / Solaris
    
    
    Drive: sdb ___________________ _____________________________________________________
    
    Disco /dev/sdb: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total de 625142448 setores
    Unidades = setores de 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdb1                  63   394,829,504   394,829,442  83 Linux
    /dev/sdb2         394,829,566   625,137,344   230,307,779   f W95 Ext d (LBA)
    /dev/sdb5         394,829,568   613,088,594   218,259,027   7 HPFS/NTFS
    /dev/sdb6         613,088,658   625,137,344    12,048,687  82 Linux swap / Solaris
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/sda1        18A0474DA0473114                       ntfs                                     
    /dev/sda2        25e7c014-ea7a-41bb-bd18-0ea6f67ce60b   ext4                                     
    /dev/sda3        fd7dd2a5-8ad9-4fbd-ad1d-83fba69a2a83   swap                                     
    /dev/sda4: PTTYPE="dos" 
    /dev/sda5        95522640-e217-49e3-a81e-233730539e3c   ext4                                     
    /dev/sda6        5f3185fb-3ca0-4b3d-b48a-1b4d39c966b4   swap                                     
    /dev/sda: PTTYPE="dos" 
    /dev/sdb1        aa98aa23-a1fe-4cc8-8dac-19a9ce64e417   ext4                                     
    /dev/sdb2: PTTYPE="dos" 
    /dev/sdb5        01CA919DC3582FF0                       ntfs       Backup                        
    /dev/sdb6        3c238936-9c36-4e5d-af48-992e39c173d7   swap                                     
    /dev/sdb: PTTYPE="dos" 
    error: /dev/sdc: No medium found
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    /dev/sdb1        /                        ext4       (rw,errors=remount-ro)
    
    
    ================================ sda1/boot.ini: ================================
    
    [boot loader]
    
    timeout=30
    
    default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
    
    [operating systems]
    
    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
    
    
    =========================== sda2/boot/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 $prefix/grubenv ]; then
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      set saved_entry=${prev_saved_entry}
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z ${boot_once} ]; then
        saved_entry=${chosen}
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    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
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    set locale_dir=($root)/boot/grub/locale
    set lang=pt
    insmod gettext
    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/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, com Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux	/boot/vmlinuz-2.6.32-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro   quiet splash
    	initrd	/boot/initrd.img-2.6.32-22-generic
    }
    menuentry 'Ubuntu, com Linux 2.6.32-22-generic (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	echo	'Carregando Linux 2.6.32-22-generic ...'
    	linux	/boot/vmlinuz-2.6.32-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro single 
    	echo	'Carregando ramdisk inicial ...'
    	initrd	/boot/initrd.img-2.6.32-22-generic
    }
    menuentry 'Ubuntu, com Linux 2.6.31-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux	/boot/vmlinuz-2.6.31-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro   quiet splash
    	initrd	/boot/initrd.img-2.6.31-22-generic
    }
    menuentry 'Ubuntu, com Linux 2.6.31-22-generic (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	echo	'Carregando Linux 2.6.31-22-generic ...'
    	linux	/boot/vmlinuz-2.6.31-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro single 
    	echo	'Carregando ramdisk inicial ...'
    	initrd	/boot/initrd.img-2.6.31-22-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
    	insmod ntfs
    	set root='(hd0,1)'
    	search --no-floppy --fs-uuid --set 18a0474da0473114
    	drivemap -s (hd0) ${root}
    	chainloader +1
    }
    menuentry "Ubuntu, com Linux 2.6.31-10-rt (on /dev/sdb1)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux /boot/vmlinuz-2.6.31-10-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro quiet splash
    	initrd /boot/initrd.img-2.6.31-10-rt
    }
    menuentry "Ubuntu, com Linux 2.6.31-10-rt (modo de recuperação) (on /dev/sdb1)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux /boot/vmlinuz-2.6.31-10-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro single
    	initrd /boot/initrd.img-2.6.31-10-rt
    }
    menuentry "Ubuntu, com Linux 2.6.31-9-rt (on /dev/sdb1)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux /boot/vmlinuz-2.6.31-9-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro quiet splash
    	initrd /boot/initrd.img-2.6.31-9-rt
    }
    menuentry "Ubuntu, com Linux 2.6.31-9-rt (modo de recuperação) (on /dev/sdb1)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux /boot/vmlinuz-2.6.31-9-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro single
    	initrd /boot/initrd.img-2.6.31-9-rt
    }
    ### 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 ###
    
    =============================== sda2/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/sda2 during installation
    UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda3 during installation
    UUID=fd7dd2a5-8ad9-4fbd-ad1d-83fba69a2a83 none            swap    sw              0       0
    # swap was on /dev/sdb5 during installation
    UUID=3c238936-9c36-4e5d-af48-992e39c173d7 none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
    
    =================== sda2: Location of files loaded by Grub: ===================
    
    
     105.3GB: boot/grub/core.img
     105.0GB: boot/grub/grub.cfg
     105.1GB: boot/grub/stage2
     415.0GB: boot/initrd.img-2.6.31-22-generic
     415.3GB: boot/initrd.img-2.6.32-22-generic
     113.3GB: boot/vmlinuz-2.6.31-22-generic
     218.6GB: boot/vmlinuz-2.6.32-22-generic
     415.3GB: initrd.img
     415.0GB: initrd.img.old
     218.6GB: vmlinuz
     113.3GB: vmlinuz.old
    
    =========================== sda5/boot/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 $prefix/grubenv ]; then
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      set saved_entry=${prev_saved_entry}
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z ${boot_once} ]; then
        saved_entry=${chosen}
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set 95522640-e217-49e3-a81e-233730539e3c
    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
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set 95522640-e217-49e3-a81e-233730539e3c
    set locale_dir=($root)/boot/grub/locale
    set lang=pt
    insmod gettext
    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/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, com Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,5)'
    	search --no-floppy --fs-uuid --set 95522640-e217-49e3-a81e-233730539e3c
    	linux	/boot/vmlinuz-2.6.32-22-generic root=UUID=95522640-e217-49e3-a81e-233730539e3c ro   quiet splash
    	initrd	/boot/initrd.img-2.6.32-22-generic
    }
    menuentry 'Ubuntu, com Linux 2.6.32-22-generic (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,5)'
    	search --no-floppy --fs-uuid --set 95522640-e217-49e3-a81e-233730539e3c
    	echo	'Carregando Linux 2.6.32-22-generic ...'
    	linux	/boot/vmlinuz-2.6.32-22-generic root=UUID=95522640-e217-49e3-a81e-233730539e3c ro single 
    	echo	'Carregando ramdisk inicial ...'
    	initrd	/boot/initrd.img-2.6.32-22-generic
    }
    menuentry 'Ubuntu, com Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,5)'
    	search --no-floppy --fs-uuid --set 95522640-e217-49e3-a81e-233730539e3c
    	linux	/boot/vmlinuz-2.6.32-21-generic root=UUID=95522640-e217-49e3-a81e-233730539e3c ro   quiet splash
    	initrd	/boot/initrd.img-2.6.32-21-generic
    }
    menuentry 'Ubuntu, com Linux 2.6.32-21-generic (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,5)'
    	search --no-floppy --fs-uuid --set 95522640-e217-49e3-a81e-233730539e3c
    	echo	'Carregando Linux 2.6.32-21-generic ...'
    	linux	/boot/vmlinuz-2.6.32-21-generic root=UUID=95522640-e217-49e3-a81e-233730539e3c ro single 
    	echo	'Carregando ramdisk inicial ...'
    	initrd	/boot/initrd.img-2.6.32-21-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    	insmod ext2
    	set root='(hd0,5)'
    	search --no-floppy --fs-uuid --set 95522640-e217-49e3-a81e-233730539e3c
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod ext2
    	set root='(hd0,5)'
    	search --no-floppy --fs-uuid --set 95522640-e217-49e3-a81e-233730539e3c
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
    	insmod ntfs
    	set root='(hd0,1)'
    	search --no-floppy --fs-uuid --set 18a0474da0473114
    	drivemap -s (hd0) ${root}
    	chainloader +1
    }
    menuentry "Ubuntu, com Linux 2.6.32-22-generic (on /dev/sda2)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux /boot/vmlinuz-2.6.32-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro quiet splash
    	initrd /boot/initrd.img-2.6.32-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.32-22-generic (modo de recuperação) (on /dev/sda2)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux /boot/vmlinuz-2.6.32-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro single
    	initrd /boot/initrd.img-2.6.32-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.31-22-generic (on /dev/sda2)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux /boot/vmlinuz-2.6.31-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro quiet splash
    	initrd /boot/initrd.img-2.6.31-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.31-22-generic (modo de recuperação) (on /dev/sda2)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux /boot/vmlinuz-2.6.31-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro single
    	initrd /boot/initrd.img-2.6.31-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.31-10-rt (on /dev/sdb1)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux /boot/vmlinuz-2.6.31-10-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro quiet splash
    	initrd /boot/initrd.img-2.6.31-10-rt
    }
    menuentry "Ubuntu, com Linux 2.6.31-10-rt (modo de recuperação) (on /dev/sdb1)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux /boot/vmlinuz-2.6.31-10-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro single
    	initrd /boot/initrd.img-2.6.31-10-rt
    }
    menuentry "Ubuntu, com Linux 2.6.31-9-rt (on /dev/sdb1)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux /boot/vmlinuz-2.6.31-9-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro quiet splash
    	initrd /boot/initrd.img-2.6.31-9-rt
    }
    menuentry "Ubuntu, com Linux 2.6.31-9-rt (modo de recuperação) (on /dev/sdb1)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux /boot/vmlinuz-2.6.31-9-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro single
    	initrd /boot/initrd.img-2.6.31-9-rt
    }
    ### 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 ###
    
    =============================== sda5/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    nodev,noexec,nosuid 0       0
    # / was on /dev/sda5 during installation
    UUID=95522640-e217-49e3-a81e-233730539e3c /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda6 during installation
    UUID=5f3185fb-3ca0-4b3d-b48a-1b4d39c966b4 none            swap    sw              0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
    
    =================== sda5: Location of files loaded by Grub: ===================
    
    
     476.0GB: boot/grub/core.img
     456.9GB: boot/grub/grub.cfg
     476.8GB: boot/initrd.img-2.6.32-21-generic
     476.7GB: boot/initrd.img-2.6.32-22-generic
     476.8GB: boot/vmlinuz-2.6.32-21-generic
     455.0GB: boot/vmlinuz-2.6.32-22-generic
     476.7GB: initrd.img
     476.8GB: initrd.img.old
     455.0GB: vmlinuz
     476.8GB: vmlinuz.old
    
    =========================== sdb1/boot/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 $prefix/grubenv ]; then
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      set saved_entry=${prev_saved_entry}
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z ${boot_once} ]; then
        saved_entry=${chosen}
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    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
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    set locale_dir=($root)/boot/grub/locale
    set lang=pt
    insmod gettext
    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/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, com Linux 2.6.31-10-rt' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux	/boot/vmlinuz-2.6.31-10-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro   quiet splash
    	initrd	/boot/initrd.img-2.6.31-10-rt
    }
    menuentry 'Ubuntu, com Linux 2.6.31-10-rt (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	echo	'Carregando Linux 2.6.31-10-rt ...'
    	linux	/boot/vmlinuz-2.6.31-10-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro single 
    	echo	'Carregando ramdisk inicial ...'
    	initrd	/boot/initrd.img-2.6.31-10-rt
    }
    menuentry 'Ubuntu, com Linux 2.6.31-9-rt' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux	/boot/vmlinuz-2.6.31-9-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro   quiet splash
    	initrd	/boot/initrd.img-2.6.31-9-rt
    }
    menuentry 'Ubuntu, com Linux 2.6.31-9-rt (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	echo	'Carregando Linux 2.6.31-9-rt ...'
    	linux	/boot/vmlinuz-2.6.31-9-rt root=UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 ro single 
    	echo	'Carregando ramdisk inicial ...'
    	initrd	/boot/initrd.img-2.6.31-9-rt
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod ext2
    	set root='(hd1,1)'
    	search --no-floppy --fs-uuid --set aa98aa23-a1fe-4cc8-8dac-19a9ce64e417
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
    	insmod ntfs
    	set root='(hd0,1)'
    	search --no-floppy --fs-uuid --set 18a0474da0473114
    	drivemap -s (hd0) ${root}
    	chainloader +1
    }
    menuentry "Ubuntu, com Linux 2.6.32-22-generic (on /dev/sda2)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux /boot/vmlinuz-2.6.32-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro quiet splash
    	initrd /boot/initrd.img-2.6.32-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.32-22-generic (modo de recuperação) (on /dev/sda2)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux /boot/vmlinuz-2.6.32-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro single
    	initrd /boot/initrd.img-2.6.32-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.31-22-generic (on /dev/sda2)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux /boot/vmlinuz-2.6.31-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro quiet splash
    	initrd /boot/initrd.img-2.6.31-22-generic
    }
    menuentry "Ubuntu, com Linux 2.6.31-22-generic (modo de recuperação) (on /dev/sda2)" {
    	insmod ext2
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 25e7c014-ea7a-41bb-bd18-0ea6f67ce60b
    	linux /boot/vmlinuz-2.6.31-22-generic root=UUID=25e7c014-ea7a-41bb-bd18-0ea6f67ce60b ro single
    	initrd /boot/initrd.img-2.6.31-22-generic
    }
    ### 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 ###
    
    =============================== sdb1/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/sdb1 during installation
    UUID=aa98aa23-a1fe-4cc8-8dac-19a9ce64e417 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sdb5 during installation
    UUID=3c238936-9c36-4e5d-af48-992e39c173d7 none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
    /dev/scd1       /media/cdrom1   udf,iso9660 user,noauto,exec,utf8 0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
    
    =================== sdb1: Location of files loaded by Grub: ===================
    
    
        .9GB: boot/grub/core.img
        .9GB: boot/grub/grub.cfg
       3.4GB: boot/grub/stage2
       4.2GB: boot/initrd.img-2.6.31-10-rt
       3.9GB: boot/initrd.img-2.6.31-9-rt
       4.1GB: boot/vmlinuz-2.6.31-10-rt
       2.3GB: boot/vmlinuz-2.6.31-9-rt
       4.2GB: initrd.img
       3.9GB: initrd.img.old
       4.1GB: vmlinuz
       2.3GB: vmlinuz.old
    =========================== Unknown MBRs/Boot Sectors/etc =======================
    
    Unknown BootLoader  on sda4
    
    00000000  d5 4f 96 f6 12 c1 1d 0c  a7 e5 99 e4 ca e3 de 9f  |.O..............|
    00000010  32 14 41 df 95 b4 00 25  58 55 77 6b b4 96 10 07  |2.A....%XUwk....|
    00000020  c3 65 dc f1 a8 a2 ea a6  19 15 25 bc 79 26 16 b6  |.e........%.y&..|
    00000030  53 69 82 49 b7 14 67 c5  88 62 77 96 84 67 b0 04  |Si.I..g..bw..g..|
    00000040  1b b1 76 c8 39 fa 4d 52  fb b8 af db fb f1 e3 5f  |..v.9.MR......._|
    00000050  7d fd f4 93 1a 90 24 51  3b 4d c9 a2 6c 9f 92 91  |}.....$Q;M..l...|
    00000060  59 d8 d9 4e e2 a0 a9 78  96 58 48 ca 12 52 35 07  |Y..N...x.XH..R5.|
    00000070  2b 6e a1 1b 1f fa 7e 00  6f 6b b4 93 58 dc 6c 19  |+n....~.ok..X.l.|
    00000080  6d e8 33 10 21 97 b7 12  63 66 55 39 f5 d2 c6 e4  |m.3.!...cfU9....|
    00000090  24 9c 14 11 5a 4c 16 25  9e 0e 15 cc 93 d7 f8 f4  |$...ZL.%........|
    000000a0  ff fb 70 74 cf 00 02 fd  32 45 eb 43 30 12 2b 64  |..pt....2E.C0.+d|
    000000b0  18 bd 4c c3 66 4c 5c c3  17 ad 25 07 c8 98 0d e2  |..L.fL\...%.....|
    000000c0  f5 80 0c 09 03 0b 52 4b  24 49 10 00 b8 55 25 fa  |......RK$I...U%.|
    000000d0  f7 7c 82 49 e3 25 ea 8e  36 b9 a4 22 33 4d 30 65  |.|.I.%..6.."3M0e|
    000000e0  1b 64 c6 d7 80 e5 59 3a  97 40 11 93 71 65 62 8a  |.d....Y:.@..qeb.|
    000000f0  96 2f 6f 2c 0c d9 d7 ae  d1 2d 77 91 ee fb de 6f  |./o,.....-w....o|
    00000100  be de 0a e9 d9 ab 2f 11  9d e9 3f 66 e6 bf d8 a2  |....../...?f....|
    00000110  f5 64 fc 20 01 b6 a0 25  ca 5b 5d e7 32 6d de 6b  |.d. ...%.[].2m.k|
    00000120  c3 7b f7 28 9f 4d 64 00  45 92 5c 8e 24 db 6c 19  |.{.(.Md.E.\.$.l.|
    00000130  8b 4e 29 91 5c 8a f1 a7  33 6c d4 31 35 0a 17 8b  |.N).\...3l.15...|
    00000140  7b 6e 6e e4 10 4b b0 9f  19 6d 17 d2 ff eb bb 00  |{nn..K...m......|
    00000150  a6 da b1 cb 1b 68 00 0b  e3 3c 7d 33 36 30 38 84  |.....h...<}3608.|
    00000160  9c da 65 9a 85 34 ab 06  53 46 d7 63 7b 8f 26 8e  |..e..4..SF.c{.&.|
    00000170  30 a4 6e 52 9a 46 6b 71  57 c3 21 3d 5b 06 fe 44  |0.nR.FkqW.!=[..D|
    00000180  76 bf 67 7d 7c 96 7b 67  7c 7c c2 c8 d7 a2 c1 5e  |v.g}|.{g||.....^|
    00000190  2e 34 b2 eb 1c 26 c8 ff  93 9b 9e 4c d9 77 ad ac  |.4...&.....L.w..|
    000001a0  26 f6 68 66 c6 67 fe e5  fe f6 5e 6a c7 86 7e f7  |&.hf.g....^j..~.|
    000001b0  ed 6f 9e 00 44 b7 63 52  b6 db 6c 19 2d b7 00 fe  |.o..D.cR..l.-...|
    000001c0  ff ff 83 fe ff ff 02 00  00 00 00 e8 68 04 00 fe  |............h...|
    000001d0  ff ff 05 fe ff ff 02 e8  68 04 00 c8 31 00 00 00  |........h...1...|
    000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
    00000200
    
    
    =======Devices which don't seem to have a corresponding hard drive==============
    
    sdc 
    =============================== StdErr Messages: ===============================
    
    umount: /tmp/BootInfo0/sda1: device is busy.
            (In some cases useful info about processes that use
             the device is found by lsof(8) or fuser(1))
    It seems I have 2 diferent version of GRUB installed... What I do now?
    What about the flag?

  8. #8
    Join Date
    Jul 2008
    Beans
    64

    Re: GRUB problem after upgrading to 10.04

    After changing the flag I did this:
    Code:
    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
    
    ubuntu@ubuntu:~$ sudo su
    root@ubuntu:/home/ubuntu# fdisk -l
    
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xff43ff43
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1       12749   102406311    7  HPFS/NTFS
    /dev/sda2   *       12750       55241   341312659   83  Linux
    /dev/sda3           60050       60801     6040440   82  Linux swap / Solaris
    /dev/sda4           55241       60049    38623233    5  Extended
    /dev/sda5           55241       59846    36992000   83  Linux
    /dev/sda6           59846       60049     1630208   82  Linux swap / Solaris
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x3ce53ce4
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1       24577   197414721   83  Linux
    /dev/sdb2           24578       38913   115153889+   f  W95 Ext'd (LBA)
    /dev/sdb5           24578       38163   109129513+   7  HPFS/NTFS
    /dev/sdb6           38164       38913     6024343+  82  Linux swap / Solaris
    root@ubuntu:/home/ubuntu# mount /dev/sda2 mnt
    mount: mount point mnt does not exist
    root@ubuntu:/home/ubuntu# mount /dev/sda2 /mnt
    root@ubuntu:/home/ubuntu# mount --bind /dev /mnt/dev
    root@ubuntu:/home/ubuntu# chroot /mnt/dev
    chroot: cannot run command `/bin/bash': No such file or directory
    root@ubuntu:/home/ubuntu# chroot /mnt
    root@ubuntu:/# update-grub
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ...
    
    Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
    Searching for splash image ... none found, skipping ...
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    Found kernel: /boot/vmlinuz-2.6.32-22-generic
    Found kernel: /boot/vmlinuz-2.6.31-22-generic
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    Updating /boot/grub/menu.lst ... done
    
    root@ubuntu:/# grub-install /dev/sda
    Searching for GRUB installation directory ... found: /boot/grub
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    Installing GRUB to /dev/sda as (hd0)...
    Installation finished. No error reported.
    This is the contents of the device map /boot/grub/device.map.
    Check if this is correct or not. If any of the lines is incorrect,
    fix it and re-run the script `grub-install'.
    
    (hd0)    /dev/sda
    (hd1)    /dev/sdb
    root@ubuntu:/# exit
    root@ubuntu:/home/ubuntu# umount /mnt/dev
    root@ubuntu:/home/ubuntu# umount /mnt
    and then I did this:
    Code:
    neoandersen@neoandersen-desktop:~$ sudo update-grub
    [sudo] password for neoandersen:
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.32-22-generic
    Found kernel: /boot/vmlinuz-2.6.31-22-generic
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    Updating /boot/grub/menu.lst ... done
    
    neoandersen@neoandersen-desktop:~$ sudo su
    root@neoandersen-desktop:/home/neoandersen# update-grub
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.32-22-generic
    Found kernel: /boot/vmlinuz-2.6.31-22-generic
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    Updating /boot/grub/menu.lst ... done
    
    root@neoandersen-desktop:/home/neoandersen# grub-install /dev/sda
    Searching for GRUB installation directory ... found: /boot/grub
    Installing GRUB to /dev/sda as (hd0)...
    Installation finished. No error reported.
    This is the contents of the device map /boot/grub/device.map.
    Check if this is correct or not. If any of the lines is incorrect,
    fix it and re-run the script `grub-install'.
    
    (hd0)    /dev/sda
    (hd1)    /dev/sdb
    root@neoandersen-desktop:/home/neoandersen#
    And as it doesn't worked I went to synaptic and synaptic and installed Grub-pc... and after all that xp doesn't start...

    I am thinking in recover xp with xp installation cd... and then reinstall grub again... is that possible?

  9. #9
    Join Date
    Jun 2008
    Location
    Vancouver Canada
    Beans
    3,145
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: GRUB problem after upgrading to 10.04

    Good work NeoAndersen.

    That should work. I'm crossing my fingers.
    I learn something ubuntu everyday.
    dell precision T7500 1Tb hdd x 2
    2.67 Ghz intel xeon X5550 cpu
    nvidia quadro fx 4800-1.5 Gb video card

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
  •