PDA

View Full Version : [ubuntu] 12.04 installation won't boot



Ceris
May 9th, 2012, 07:54 PM
I'm currently trying to reinstall 12.04 on my laptop, but it will not boot. Here are the steps I have taken:

1. Load Ubuntu on the Live CD.
2. Use GParted to create a GPT.
3. In the Ubuntu installer, create a 1 MB bios_grub partition at the start of the drive.
4. Create ext4 primary partitions for / and /home, with / having the boot flag. (All of this is before the 2 TB mark, so there should be no need to make a separate partition for /boot, but if you want me to try that then I will do so)
5. Create a swap partition at the end of the drive.
6. Install. Everything proceeds as normal, downloading all of the necessary packages and producing no errors.
7. I try to boot my HDD from my BIOS, but it will not even load GRUB, and just sends me back to the BIOS.

Yes, my computer uses BIOS rather than EFI, and there is no EFI compatibility option in the BIOS. However, from what I can tell, this should not be an issue... I have heard that others got it to work with similar steps to the above.

darkod
May 9th, 2012, 08:10 PM
Yes, it should work.

When you created the bios_grub partition did you format it with some filesystem? It should be raw, it shouldn't have any filesystem.

To be sure what is where, run the boot info script from the link in my signature. Post the results as explained there. It will show many details.

You can do it from live mode.

I am suspecting grub2 never installed on the MBR, which is easy to sort out. But lets see if it installed its files inside the root or not.

Ceris
May 9th, 2012, 08:24 PM
Thank you, Darkod.

The bios_grub partition has no file system.

I've run the script as requested, and here are the results:


Boot Info Script 0.61 [1 April 2012]


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 34
of the same hard drive for core.img. core.img is at this location and
looks for (,gpt3)/boot/grub on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda2: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda4: __________________________________________________ ________________________

File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:

sda5: __________________________________________________ ________________________

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

sdb1: __________________________________________________ ________________________

File system: iso9660
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: /dev/sdb1 already mounted or sdb1 busy

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 976,773,167 976,773,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 419,432,447 419,430,400 Data partition (Windows/Linux)
/dev/sda2 758,028,288 925,964,287 167,936,000 Data partition (Windows/Linux)
/dev/sda3 925,964,288 967,743,487 41,779,200 EFI System partition
/dev/sda4 34 1,987 1,954 BIOS Boot partition
/dev/sda5 967,743,838 976,773,118 9,029,281 Swap partition (Linux)

Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 8004 MB, 8004304896 bytes
19 heads, 24 sectors/track, 34283 cylinders, total 15633408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 * 64 1,430,103 1,430,040 17 Hidden NTFS / HPFS


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 4C67B85008F152CF ntfs
/dev/sda2 382ee80a-8fb2-4c0e-a859-31c2f84a4d77 ext4
/dev/sda3 3fe986e7-e9c6-4352-bc99-5ca478ea071d ext4
/dev/sda5 e2b2f564-68d0-4859-b650-87d52c4760d7 swap
/dev/sdb1 iso9660 Ubuntu 12.04 LTS amd64

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb /cdrom iso9660 (ro,noatime)


=========================== sda3/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=3fe986e7-e9c6-4352-bc99-5ca478ea071d ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=3fe986e7-e9c6-4352-bc99-5ca478ea071d ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda3/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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/sda3 during installation
UUID=3fe986e7-e9c6-4352-bc99-5ca478ea071d / ext4 errors=remount-ro 0 1
# /home was on /dev/sda2 during installation
UUID=382ee80a-8fb2-4c0e-a859-31c2f84a4d77 /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=e2b2f564-68d0-4859-b650-87d52c4760d7 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/initrd.img-3.2.0-23-generic 2
= boot/vmlinuz-3.2.0-23-generic 1
= initrd.img 2
= vmlinuz 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sdb1

00000000 01 43 44 30 30 31 01 00 20 20 20 20 20 20 20 20 |.CD001.. |
00000010 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | |
00000020 20 20 20 20 20 20 20 20 55 62 75 6e 74 75 20 31 | Ubuntu 1|
00000030 32 2e 30 34 20 4c 54 53 20 61 6d 64 36 34 20 20 |2.04 LTS amd64 |
00000040 20 20 20 20 20 20 20 20 00 00 00 00 00 00 00 00 | ........|
00000050 96 74 05 00 00 05 74 96 00 00 00 00 00 00 00 00 |.t....t.........|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000070 00 00 00 00 00 00 00 00 01 00 00 01 01 00 00 01 |................|
00000080 00 08 08 00 8a 03 00 00 00 00 03 8a 75 00 00 00 |............u...|
00000090 00 00 00 00 00 00 00 76 00 00 00 00 22 00 23 00 |.......v....".#.|
000000a0 00 00 00 00 00 23 00 08 00 00 00 00 08 00 70 04 |.....#........p.|
000000b0 19 10 0d 2e 00 02 00 00 01 00 00 01 01 00 20 20 |.............. |
000000c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | |
*
000001b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 58 4f | XO|
000001c0 52 52 49 53 4f 2d 31 2e 30 2e 38 20 32 30 31 31 |RRISO-1.0.8 2011|
000001d0 2e 30 34 2e 31 34 2e 30 37 33 30 30 31 2c 20 4c |.04.14.073001, L|
000001e0 49 42 49 53 4f 42 55 52 4e 2d 31 2e 30 2e 38 2c |IBISOBURN-1.0.8,|
000001f0 20 4c 49 42 49 53 4f 46 53 2d 31 2e 30 2e 38 2c | LIBISOFS-1.0.8,|
00000200


=============================== StdErr Messages: ===============================

xz: (stdin): Compressed data is corrupt
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in

EDIT: I'd like to mention that the NTFS partition has nothing installed on it, I just created it with hopes of installing Windows 7 later. But as of now, it should not contribute to the situation in any way, so I did not mention it previously.

darkod
May 9th, 2012, 08:51 PM
There is some conflict. On some places it says sda3 is ext4 which should be correct, but then in the list of partitions on sda it says sda3 is the EFI System Partition. See it?

You said you don't use EFI boot. Are you sure? You pur the boot flag on sda3 and if you are using EFI boot (or the installer thought you did), it changed it from code 82 (linux partition) into EFI System Partition code.

Not sure if this can be the issue. The rest looks good.

I think it's not booting because somehow the EFI boot goes into play, but there is nothing on the sda3 which is marked as its system partition to continue the boot.

It never even tries the MBR and the grub2 there which correctly pick up core.img at sector 34 and is looking for partition gpt3 which is sda3, your root.

Double check the EFI thing.

Not sure how can you try changing the code of sda3 with gpt table. I would usually use cfdisk but that is for msdos tables.
I think the equivalent is cgdisk but it needs to be installed, somehow.

oldfred
May 9th, 2012, 08:52 PM
In gpt and with gparted the boot flag makes it ef00 or the efi boot partition. Not sure if that then confuses things or not. There were some Intel motherboards with a BIOS that required a "boot flag" to let the system boot, but in gpt only the efi partition should have the boot flag.

Windows will only install to gpt drives if you boot in UEFI mode. And it wants it several partitions, not sure with UEFI, you can install to one or not. Or you have to convert back to MBR. If your system has UEFI you then need the very first partition to be the efi partition and 100 to 300MB FAT32.

It looks like grub installed ok, It is in MBR, looks to bios_grub in sector 34 which is first sector of bios_grub and files in / look ok other than boot flag?

Windows Recommended UEFI-Based Disk-Partition Configurations
http://technet.microsoft.com/en-us/library/dd744301%28WS.10%29.aspx
Change the booting style of Windows Vista or 7 x86_64 versions from BIOS-MBR mode to UEFI-GPT mode without formatting or reinstalling
http://www.insanelymac.com/forum/lofiversion/index.php/t186440
Windows installs the efi bootloader to (ESP)/EFI/Microsoft/Boot/ which is identical to (WINDOWS_SYSTEM_PART)/boot/microsoft/ incase of BIOS systems.
The dir mainly consists of bootmgfw.efi, bootmgr.efi, memtest.efi and 'bcd'.
Post #76
http://ubuntuforums.org/showthread.php?t=1719851&page=8
efi\Microsoft\Boot\bootmgfw.efi
Convert Windows USB flash install to UEFI boot
http://jake.io/b/2011/installing-windows-7-with-uefi-boot-on-an-x220-from-usb/

darkod
May 9th, 2012, 09:33 PM
oldfred has a point, I forgot about that for a moment. If you plan to add windows later, with gpt it will work only with UEFI boot. So you have to set up your machine for UEFI boot now.

And the UEFI system partition needs to be the first one, as he mentioned. This partition does have a filesystem, it should be FAT32 and around 250-300MiB.

EDIT PS: Or only the opposite applies oldfred. Only if you boot UEFI it has to be gpt for windows. Can you keep gpt table but use BIOS boot and dual boot?

oldfred
May 9th, 2012, 09:44 PM
You can only dual boot Windows & Linux with UEFI and gpt. Or BIOS and MBR on the same drive. Ubuntu will boot gpt or MBR with BIOS and gpt with UEFI. Windows is only gpt with UEFI.

But you can have different drives.

I do have Windows XP on my old MBR drive and two gpt drives for booting and another MBR drive that I am not sure I want to convert to gpt as it has all my data (mostly backed up but ...). I even put gpt on my 16GB flash to see if it would work and I really can not tell any different other than I needed the bios_grub.

darkod
May 9th, 2012, 09:49 PM
OK, you heard what the boos said. :)

If you want to keep gpt and add windows later, you have to prepare the machine for UEFI boot right now.

Or create msdos table and use BIOS boot. Of course, creating new partition table would wipe all data on the disk, if you began writing something on it.

Ceris
May 9th, 2012, 11:09 PM
I really don't think my computer can use EFI, I've checked the BIOS settings and there does not seem to be any such compatibility mode or anything of the sort...

It is a Toshiba Satellite M645-S4050, and while I cannot be completely certain of the year I got it in, I am quite certain that it was either 2009 or 2010, so it should not have EFI built in, to my knowledge.

I have tried removing the boot flag on sda3, but it did not change anything when I tried to boot the computer up. Disk Utility says that it is the correct type - "Linux Basic Data Partition."

I will edit the updated boot info script results into this post in a moment.

It sounds like I need to install Ubuntu on a partition that does not have the boot flag in the first place. In truth, as I am a novice to all of this, that's about all I know to make of the situation.

On the subject of Windows, thank you very much for all of the helpful information. I will try to figure something out, but for now I would like to figure out what to do with this problem of GRUB not loading...

EDIT: Updated results:

Boot Info Script 0.61 [1 April 2012]


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 34
of the same hard drive for core.img. core.img is at this location and
looks for (,gpt3)/boot/grub on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda2: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda4: __________________________________________________ ________________________

File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:

sda5: __________________________________________________ ________________________

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

sdb1: __________________________________________________ ________________________

File system: iso9660
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: /dev/sdb1 already mounted or sdb1 busy

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 976,773,167 976,773,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 419,432,447 419,430,400 Data partition (Windows/Linux)
/dev/sda2 758,028,288 925,964,287 167,936,000 Data partition (Windows/Linux)
/dev/sda3 925,964,288 967,743,487 41,779,200 Data partition (Windows/Linux)
/dev/sda4 34 1,987 1,954 BIOS Boot partition
/dev/sda5 967,743,838 976,773,118 9,029,281 Swap partition (Linux)

Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 8004 MB, 8004304896 bytes
19 heads, 24 sectors/track, 34283 cylinders, total 15633408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 * 64 1,430,103 1,430,040 17 Hidden NTFS / HPFS


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 4C67B85008F152CF ntfs
/dev/sda2 382ee80a-8fb2-4c0e-a859-31c2f84a4d77 ext4
/dev/sda3 3fe986e7-e9c6-4352-bc99-5ca478ea071d ext4
/dev/sda5 e2b2f564-68d0-4859-b650-87d52c4760d7 swap
/dev/sdb1 iso9660 Ubuntu 12.04 LTS amd64

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb /cdrom iso9660 (ro,noatime)


=========================== sda3/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=3fe986e7-e9c6-4352-bc99-5ca478ea071d ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=3fe986e7-e9c6-4352-bc99-5ca478ea071d ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 3fe986e7-e9c6-4352-bc99-5ca478ea071d
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda3/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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/sda3 during installation
UUID=3fe986e7-e9c6-4352-bc99-5ca478ea071d / ext4 errors=remount-ro 0 1
# /home was on /dev/sda2 during installation
UUID=382ee80a-8fb2-4c0e-a859-31c2f84a4d77 /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=e2b2f564-68d0-4859-b650-87d52c4760d7 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/initrd.img-3.2.0-23-generic 2
= boot/vmlinuz-3.2.0-23-generic 1
= initrd.img 2
= vmlinuz 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sdb1

00000000 01 43 44 30 30 31 01 00 20 20 20 20 20 20 20 20 |.CD001.. |
00000010 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | |
00000020 20 20 20 20 20 20 20 20 55 62 75 6e 74 75 20 31 | Ubuntu 1|
00000030 32 2e 30 34 20 4c 54 53 20 61 6d 64 36 34 20 20 |2.04 LTS amd64 |
00000040 20 20 20 20 20 20 20 20 00 00 00 00 00 00 00 00 | ........|
00000050 96 74 05 00 00 05 74 96 00 00 00 00 00 00 00 00 |.t....t.........|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000070 00 00 00 00 00 00 00 00 01 00 00 01 01 00 00 01 |................|
00000080 00 08 08 00 8a 03 00 00 00 00 03 8a 75 00 00 00 |............u...|
00000090 00 00 00 00 00 00 00 76 00 00 00 00 22 00 23 00 |.......v....".#.|
000000a0 00 00 00 00 00 23 00 08 00 00 00 00 08 00 70 04 |.....#........p.|
000000b0 19 10 0d 2e 00 02 00 00 01 00 00 01 01 00 20 20 |.............. |
000000c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | |
*
000001b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 58 4f | XO|
000001c0 52 52 49 53 4f 2d 31 2e 30 2e 38 20 32 30 31 31 |RRISO-1.0.8 2011|
000001d0 2e 30 34 2e 31 34 2e 30 37 33 30 30 31 2c 20 4c |.04.14.073001, L|
000001e0 49 42 49 53 4f 42 55 52 4e 2d 31 2e 30 2e 38 2c |IBISOBURN-1.0.8,|
000001f0 20 4c 49 42 49 53 4f 46 53 2d 31 2e 30 2e 38 2c | LIBISOFS-1.0.8,|
00000200


=============================== StdErr Messages: ===============================

xz: (stdin): Compressed data is corrupt
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in

darkod
May 9th, 2012, 11:20 PM
In that case you will need to change the disk to msdos, so the dual boot with windows and BIOS boot can work.

Better to do it now when there is no data on it. Any particular reason you went with gpt? It's only 500GB and usually you need gpt for over 2TB.

oldfred
May 10th, 2012, 12:19 AM
Not sure why it is not booting, but grub also got installed to sdb. So did you install twice & the second time it installed to the flash drive?

You may just need to reinstall to sda or whatever the hard drive is seen as. Sometimes on a boot from the flash drive the flash drive becomes sda.

And having grub in the flash drive may make it difficult to boot the liveCD? Or it may just let you boot your install.