Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: Grub2 problems - Ubuntu won't start

  1. #21
    Join Date
    Jul 2010
    Location
    Radovljica, Slovenia
    Beans
    38
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub2 problems - Ubuntu won't start

    OK, so I removed that internal drive and just had the 160GB drive attached. I installed Grub (followed the chroot directions which were surprisingly thrilling) and even got this cheery report in bootinfo

    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 #1 for /boot/grub.

    sda1: __________________________________________________ _______________________

    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

    sda2: __________________________________________________ _______________________

    File system: Extended Partition
    Boot sector type: Unknown
    Boot sector info:

    sda5: __________________________________________________ _______________________

    File system: swap
    Boot sector type: -
    Boot sector info:
    But then I restarted and got this "Minimal bash like line editing is supported" message. Which made me think that maybe Ubuntu wasn't installed after all. So what did I do? Of, course. REINSTALL.

    I restarted again and got this message - error: out of disk grub rescue>

    Here is what bootinfo is showing now...
    => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
    partition #1 for /boot/grub.
    => Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in
    partition #1 for /boot/grub.

    sda1: __________________________________________________ _______________________

    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

    sda2: __________________________________________________ _______________________

    File system: Extended Partition
    Boot sector type: Unknown
    Boot sector info:

    sda5: __________________________________________________ _______________________

    File system: swap
    Boot sector type: -
    Boot sector info:

    sdb1: __________________________________________________ _______________________

    File system: ext2
    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

    sdb2: __________________________________________________ _______________________

    File system: Extended Partition
    Boot sector type: -
    Boot sector info:

    sdb5: __________________________________________________ _______________________

    File system: ntfs
    Boot sector type: Windows XP
    Boot sector info: According to the info in the boot sector, sdb5 starts
    at sector 63.
    Operating System:
    Boot files/dirs:

    =========================== Drive/Partition Info: =============================

    Drive: sda ___________________ __________________________________________________ ___

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes

    Partition Boot Start End Size Id System

    /dev/sda1 * 2,048 306,620,415 306,618,368 83 Linux
    /dev/sda2 306,622,462 312,580,095 5,957,634 5 Extended
    /dev/sda5 306,622,464 312,580,095 5,957,632 82 Linux swap / Solaris


    Drive: sdb ___________________ __________________________________________________ ___

    Disk /dev/sdb: 18.2 GB, 18210036736 bytes
    255 heads, 63 sectors/track, 2213 cylinders, total 35566478 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes

    Partition Boot Start End Size Id System

    /dev/sdb1 * 63 16,466,624 16,466,562 83 Linux
    /dev/sdb2 16,466,686 35,551,844 19,085,159 f W95 Ext d (LBA)
    /dev/sdb5 16,466,688 35,551,844 19,085,157 7 HPFS/NTFS


    blkid -c /dev/null: __________________________________________________ __________

    Device UUID TYPE LABEL

    /dev/loop0 squashfs
    /dev/sda1 c5d9312f-0149-48de-ad1b-f04cb93d1e4e ext4
    /dev/sda2: PTTYPE="dos"
    /dev/sda5 05e6e6ab-5bc1-448e-8d2c-09c93493b56d swap
    /dev/sda: PTTYPE="dos"
    /dev/sdb1 c02941b0-5a56-44e7-b0c2-793526ff7038 ext2
    /dev/sdb2: PTTYPE="dos"
    /dev/sdb5 3C78C41478C3CABA ntfs Dexter
    /dev/sdb: PTTYPE="dos"

    ============================ "mount | grep ^/dev output: ===========================

    Device Mount_Point Type Options

    aufs / aufs (rw)
    /dev/sr0 /cdrom iso9660 (ro,noatime)
    /dev/loop0 /rofs squashfs (ro,noatime)


    =========================== sda1/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,1)'
    search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
    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,1)'
    search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    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, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c5d9312f-0149-48de-ad1b-f04cb93d1e4e ro quiet splash
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
    echo 'Loading Linux 2.6.32-21-generic ...'
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c5d9312f-0149-48de-ad1b-f04cb93d1e4e ro single
    echo 'Loading initial ramdisk ...'
    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,1)'
    search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    if [ ${timeout} != -1 ]; then
    if keystatus; then
    if keystatus --shift; then
    set timeout=-1
    else
    set timeout=0
    fi
    else
    if sleep --interruptible 3 ; then
    set timeout=0
    fi
    fi
    fi
    ### 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 ###

    =============================== sda1/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/sda1 during installation
    UUID=c5d9312f-0149-48de-ad1b-f04cb93d1e4e / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=05e6e6ab-5bc1-448e-8d2c-09c93493b56d none swap sw 0 0

    =================== sda1: Location of files loaded by Grub: ===================


    129.0GB: boot/grub/core.img
    45.4GB: boot/grub/grub.cfg
    129.0GB: boot/initrd.img-2.6.32-21-generic
    128.9GB: boot/vmlinuz-2.6.32-21-generic
    129.0GB: initrd.img
    128.9GB: vmlinuz

    =========================== 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 c02941b0-5a56-44e7-b0c2-793526ff7038
    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 c02941b0-5a56-44e7-b0c2-793526ff7038
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    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, with Linux 2.6.32-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
    linux /boot/vmlinuz-2.6.32-23-generic root=UUID=c02941b0-5a56-44e7-b0c2-793526ff7038 ro quiet splash
    initrd /boot/initrd.img-2.6.32-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
    echo 'Loading Linux 2.6.32-23-generic ...'
    linux /boot/vmlinuz-2.6.32-23-generic root=UUID=c02941b0-5a56-44e7-b0c2-793526ff7038 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.32-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c02941b0-5a56-44e7-b0c2-793526ff7038 ro quiet splash
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
    echo 'Loading Linux 2.6.32-21-generic ...'
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c02941b0-5a56-44e7-b0c2-793526ff7038 ro single
    echo 'Loading initial ramdisk ...'
    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='(hd1,1)'
    search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Ubuntu, with Linux 2.6.32-21-generic (on /dev/sda5)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set 8c82ee74-dc7f-417f-98a1-b72466a5178b
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8c82ee74-dc7f-417f-98a1-b72466a5178b ro quiet splash
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    menuentry "Ubuntu, with Linux 2.6.32-21-generic (recovery mode) (on /dev/sda5)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set 8c82ee74-dc7f-417f-98a1-b72466a5178b
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8c82ee74-dc7f-417f-98a1-b72466a5178b ro single
    initrd /boot/initrd.img-2.6.32-21-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 nodev,noexec,nosuid 0 0
    /dev/sdc1 / ext2 errors=remount-ro 0 1
    # swap was on /dev/sda6 during installation
    UUID=512d66c6-bc66-430a-8413-5791c7289e59 none swap sw 0 0

    =================== sdb1: Location of files loaded by Grub: ===================


    7.9GB: boot/grub/core.img
    7.8GB: boot/grub/grub.cfg
    7.6GB: boot/initrd.img-2.6.32-21-generic
    7.8GB: boot/initrd.img-2.6.32-23-generic
    7.8GB: boot/vmlinuz-2.6.32-21-generic
    7.7GB: boot/vmlinuz-2.6.32-23-generic
    7.8GB: initrd.img
    7.6GB: initrd.img.old
    7.7GB: vmlinuz
    7.8GB: vmlinuz.old
    =========================== Unknown MBRs/Boot Sectors/etc =======================

    Unknown BootLoader on sda2

    00000000 ed 81 00 00 1c 45 00 00 29 44 bf 4b 8e 3f 3e 4c |.....E..)D.K.?>L|
    00000010 29 44 bf 4b 00 00 00 00 00 00 01 00 28 00 00 00 |)D.K........(...|
    00000020 00 00 08 00 01 00 00 00 0a f3 01 00 04 00 00 00 |................|
    00000030 00 00 00 00 00 00 00 00 05 00 00 00 4b 2a 02 00 |............K*..|
    00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    *
    00000060 00 00 00 00 d8 cf 24 79 00 00 00 00 00 00 00 00 |......$y........|
    00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    00000080 1c 00 00 00 50 c0 ac 45 00 00 00 00 00 00 00 00 |....P..E........|
    00000090 8e 3f 3e 4c 08 5b e1 3e 00 00 00 00 00 00 00 00 |.?>L.[.>........|
    000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    *
    00000100 ed 81 00 00 e4 34 00 00 29 44 bf 4b 8e 3f 3e 4c |.....4..)D.K.?>L|
    00000110 29 44 bf 4b 00 00 00 00 00 00 01 00 20 00 00 00 |)D.K........ ...|
    00000120 00 00 08 00 01 00 00 00 0a f3 01 00 04 00 00 00 |................|
    00000130 00 00 00 00 00 00 00 00 04 00 00 00 50 2a 02 00 |............P*..|
    00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    *
    00000160 00 00 00 00 d9 cf 24 79 00 00 00 00 00 00 00 00 |......$y........|
    00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    00000180 1c 00 00 00 50 c0 ac 45 00 00 00 00 00 00 00 00 |....P..E........|
    00000190 8e 3f 3e 4c 50 c0 ac 45 00 00 00 00 00 00 00 00 |.?>LP..E........|
    000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fe |................|
    000001c0 ff ff 82 fe ff ff 02 00 00 00 00 e8 5a 00 00 00 |............Z...|
    000001d0 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

  2. #22
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Grub2 problems - Ubuntu won't start

    Didn't go thoroughly through the boot-info result, but a quick guess-
    Did you reconnect the 20GB drive back while reinstalling? You shouldn't have...... (no it's not wrong, but since your setup is so messed up..... u know what I mean..)

    Anyway, try changing boot-device in BIOS 'boot device selection' menu or boot order in BIOS. If it doesn't help, then I'm afraid reinstalling (with only 160GB drive connected) would be the only stupid looking wise idea .

    You'll have to figure out the 'F' key to bring up the boot device selection menu. Or just go into BIOS and change the boot order there.


    PS: use # icon to enclose the boot-info result within [ code] instead of [ quote].
    Last edited by varunendra; July 29th, 2010 at 03:27 PM.

  3. #23
    Join Date
    Jul 2010
    Location
    Radovljica, Slovenia
    Beans
    38
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub2 problems - Ubuntu won't start

    Did you reconnect the 20GB drive back while reinstalling?
    No, I didn't.

    Anyway, try changing boot-device in BIOS 'boot device selection' menu or boot order in BIOS. If it doesn't help, then I'm afraid reinstalling (with only 160GB drive connected) would be the only stupid looking wise idea .
    I'm going to try and change the BIOS and will be right back. I'm willing to try almost anything else, but I don't understand how reinstalling for a third time would solve anything...

    Be right back...

  4. #24
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Grub2 problems - Ubuntu won't start

    Quote Originally Posted by olamina View Post
    but I don't understand how reinstalling for a third time would solve anything...
    If installing with ONLY one drive, then booting also with ONLY the same and ONLY drive works (which it MUST) then figuring out any further issues should be quite easy.

    This will make sure that at least your installation source and the rest of the hardware has no issues, and is only some problem with drive-configuration which should be easy to overcome once you have a working installation.



    PS: Dinner time! Shall be back in half an hour.....

  5. #25
    Join Date
    Jul 2010
    Location
    Radovljica, Slovenia
    Beans
    38
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub2 problems - Ubuntu won't start

    Anyway, try changing boot-device in BIOS 'boot device selection' menu or boot order in BIOS. If it doesn't help, then I'm afraid reinstalling (with only 160GB drive connected) would be the only stupid looking wise idea .
    So, not sure why or what in the world but I changed the boot device selection and all of a sudden I am where I wanna be with my good old desktop (yes the desktop I had before all this mess started) and bookmarks and stuff. Golly. Things are still buggy but I am in, and that's what matters.


    Here's my final bootinfo. I'll mark this as solved and If I have any new problems, I'll just open a new thread. Thanks SO much. Bon appetit!
    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 #1 for /boot/grub.
     => Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in 
        partition #1 for /boot/grub.
    
    sda1: _________________________________________________________________________
    
        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
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  Unknown
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sdb1: _________________________________________________________________________
    
        File system:       ext2
        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
    
    sdb2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sdb5: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows XP
        Boot sector info:  According to the info in the boot sector, sdb5 starts 
                           at sector 63.
        Operating System:  
        Boot files/dirs:   
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *          2,048   306,620,415   306,618,368  83 Linux
    /dev/sda2         306,622,462   312,580,095     5,957,634   5 Extended
    /dev/sda5         306,622,464   312,580,095     5,957,632  82 Linux swap / Solaris
    
    
    Drive: sdb ___________________ _____________________________________________________
    
    Disk /dev/sdb: 18.2 GB, 18210036736 bytes
    255 heads, 63 sectors/track, 2213 cylinders, total 35566478 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdb1    *             63    16,466,624    16,466,562  83 Linux
    /dev/sdb2          16,466,686    35,551,844    19,085,159   f W95 Ext d (LBA)
    /dev/sdb5          16,466,688    35,551,844    19,085,157   7 HPFS/NTFS
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/sda1        c5d9312f-0149-48de-ad1b-f04cb93d1e4e   ext4                                     
    /dev/sda2: PTTYPE="dos" 
    /dev/sda5        05e6e6ab-5bc1-448e-8d2c-09c93493b56d   swap                                     
    /dev/sda: PTTYPE="dos" 
    /dev/sdb1        c02941b0-5a56-44e7-b0c2-793526ff7038   ext2                                     
    /dev/sdb2: PTTYPE="dos" 
    /dev/sdb5        3C78C41478C3CABA                       ntfs       Dexter                        
    /dev/sdb: PTTYPE="dos" 
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    /dev/sdb1        /                        ext2       (rw,errors=remount-ro)
    /dev/sda1        /media/c5d9312f-0149-48de-ad1b-f04cb93d1e4e ext4       (rw,nosuid,nodev,uhelper=udisks)
    
    
    =========================== sda1/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,1)'
    search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
    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,1)'
    search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    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, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
        linux    /boot/vmlinuz-2.6.32-21-generic root=UUID=c5d9312f-0149-48de-ad1b-f04cb93d1e4e ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-21-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
        echo    'Loading Linux 2.6.32-21-generic ...'
        linux    /boot/vmlinuz-2.6.32-21-generic root=UUID=c5d9312f-0149-48de-ad1b-f04cb93d1e4e ro single 
        echo    'Loading initial ramdisk ...'
        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,1)'
        search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set c5d9312f-0149-48de-ad1b-f04cb93d1e4e
        linux16    /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    if [ ${timeout} != -1 ]; then
      if keystatus; then
        if keystatus --shift; then
          set timeout=-1
        else
          set timeout=0
        fi
      else
        if sleep --interruptible 3 ; then
          set timeout=0
        fi
      fi
    fi
    ### 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 ###
    
    =============================== sda1/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/sda1 during installation
    UUID=c5d9312f-0149-48de-ad1b-f04cb93d1e4e /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=05e6e6ab-5bc1-448e-8d2c-09c93493b56d none            swap    sw              0       0
    
    =================== sda1: Location of files loaded by Grub: ===================
    
    
     129.0GB: boot/grub/core.img
      45.4GB: boot/grub/grub.cfg
     129.0GB: boot/initrd.img-2.6.32-21-generic
     128.9GB: boot/vmlinuz-2.6.32-21-generic
     129.0GB: initrd.img
     128.9GB: vmlinuz
    
    =========================== 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 c02941b0-5a56-44e7-b0c2-793526ff7038
    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 c02941b0-5a56-44e7-b0c2-793526ff7038
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    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, with Linux 2.6.32-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd1,1)'
        search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
        linux    /boot/vmlinuz-2.6.32-23-generic root=UUID=c02941b0-5a56-44e7-b0c2-793526ff7038 ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd1,1)'
        search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
        echo    'Loading Linux 2.6.32-23-generic ...'
        linux    /boot/vmlinuz-2.6.32-23-generic root=UUID=c02941b0-5a56-44e7-b0c2-793526ff7038 ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd1,1)'
        search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
        linux    /boot/vmlinuz-2.6.32-21-generic root=UUID=c02941b0-5a56-44e7-b0c2-793526ff7038 ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-21-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd1,1)'
        search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
        echo    'Loading Linux 2.6.32-21-generic ...'
        linux    /boot/vmlinuz-2.6.32-21-generic root=UUID=c02941b0-5a56-44e7-b0c2-793526ff7038 ro single 
        echo    'Loading initial ramdisk ...'
        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='(hd1,1)'
        search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod ext2
        set root='(hd1,1)'
        search --no-floppy --fs-uuid --set c02941b0-5a56-44e7-b0c2-793526ff7038
        linux16    /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Ubuntu, with Linux 2.6.32-21-generic (on /dev/sda5)" {
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 8c82ee74-dc7f-417f-98a1-b72466a5178b
        linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8c82ee74-dc7f-417f-98a1-b72466a5178b ro quiet splash
        initrd /boot/initrd.img-2.6.32-21-generic
    }
    menuentry "Ubuntu, with Linux 2.6.32-21-generic (recovery mode) (on /dev/sda5)" {
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 8c82ee74-dc7f-417f-98a1-b72466a5178b
        linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8c82ee74-dc7f-417f-98a1-b72466a5178b ro single
        initrd /boot/initrd.img-2.6.32-21-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    nodev,noexec,nosuid 0       0
    /dev/sdc1       /               ext2    errors=remount-ro 0       1
    # swap was on /dev/sda6 during installation
    UUID=512d66c6-bc66-430a-8413-5791c7289e59 none            swap    sw              0       0
    
    =================== sdb1: Location of files loaded by Grub: ===================
    
    
       7.9GB: boot/grub/core.img
       7.8GB: boot/grub/grub.cfg
       7.6GB: boot/initrd.img-2.6.32-21-generic
       7.8GB: boot/initrd.img-2.6.32-23-generic
       7.8GB: boot/vmlinuz-2.6.32-21-generic
       7.7GB: boot/vmlinuz-2.6.32-23-generic
       7.8GB: initrd.img
       7.6GB: initrd.img.old
       7.7GB: vmlinuz
       7.8GB: vmlinuz.old
    =========================== Unknown MBRs/Boot Sectors/etc =======================
    
    Unknown BootLoader  on sda2
    
    00000000  ed 81 00 00 1c 45 00 00  29 44 bf 4b 8e 3f 3e 4c  |.....E..)D.K.?>L|
    00000010  29 44 bf 4b 00 00 00 00  00 00 01 00 28 00 00 00  |)D.K........(...|
    00000020  00 00 08 00 01 00 00 00  0a f3 01 00 04 00 00 00  |................|
    00000030  00 00 00 00 00 00 00 00  05 00 00 00 4b 2a 02 00  |............K*..|
    00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    *
    00000060  00 00 00 00 d8 cf 24 79  00 00 00 00 00 00 00 00  |......$y........|
    00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000080  1c 00 00 00 50 c0 ac 45  00 00 00 00 00 00 00 00  |....P..E........|
    00000090  8e 3f 3e 4c 08 5b e1 3e  00 00 00 00 00 00 00 00  |.?>L.[.>........|
    000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    *
    00000100  ed 81 00 00 e4 34 00 00  29 44 bf 4b 8e 3f 3e 4c  |.....4..)D.K.?>L|
    00000110  29 44 bf 4b 00 00 00 00  00 00 01 00 20 00 00 00  |)D.K........ ...|
    00000120  00 00 08 00 01 00 00 00  0a f3 01 00 04 00 00 00  |................|
    00000130  00 00 00 00 00 00 00 00  04 00 00 00 50 2a 02 00  |............P*..|
    00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    *
    00000160  00 00 00 00 d9 cf 24 79  00 00 00 00 00 00 00 00  |......$y........|
    00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000180  1c 00 00 00 50 c0 ac 45  00 00 00 00 00 00 00 00  |....P..E........|
    00000190  8e 3f 3e 4c 50 c0 ac 45  00 00 00 00 00 00 00 00  |.?>LP..E........|
    000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 fe  |................|
    000001c0  ff ff 82 fe ff ff 02 00  00 00 00 e8 5a 00 00 00  |............Z...|
    000001d0  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

  6. #26
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Grub2 problems - Ubuntu won't start

    I'm Sooooooo... happy for you =D>=D>=D>
    Sometimes the most obvious is found in the last

    Now you can reconnect all the drives and just change (or keep) the boot order in the BIOS such that your 160GB drive stays at the top of the order.

    It was just that Lucid was installed in sdb (160GB) but the BIOS was set to boot off sda (20GB) which had a corrupt installation.


    Dinner was really good!!!!

  7. #27
    Join Date
    Jul 2010
    Location
    Radovljica, Slovenia
    Beans
    38
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub2 problems - Ubuntu won't start

    It was just that Lucid was installed in sdb (160GB) but the BIOS was set to boot off sda (20GB) which had a corrupt installation.
    actually it was by setting the boot to the 20GB drive that i am back in business. don't ask me to explain because i can't. but it's working.

  8. #28
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Grub2 problems - Ubuntu won't start

    Quote Originally Posted by olamina View Post
    actually it was by setting the boot to the 20GB drive that i am back in business. don't ask me to explain because i can't. but it's working.
    Okay, so make it sdb which BIOS might be looking at earlier (I remember now that it was the only one without a boot-loader when you got "no boot sig" error) and had a corrupt installation!!

    But in that case, you should have been able to boot successfully with both externals removed (maybe with a little interference with boot order). Besides, your goal to install in 160GB drive seems to have been unaccomplished then!!!!

    If this is true these should happen:

    1. While only and only 20GB drive is connected, booting should be OK.
    2. While only and only 160GB drive is connected, booting should FAIL!!

    Nice that you are happy, I just wanted to tell what I feel.

Page 3 of 3 FirstFirst 123

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
  •