PDA

View Full Version : [SOLVED] Ubuntu wont boot but windows does



peter_nz
December 4th, 2010, 04:32 AM
Hi
I installed ubuntu 10.10 duel boot with vistaOS on my laptop.
Install appeared to go without any error.
Rebooted expecting to see grub choice of OS but only get loading straight into vista. No option for ubuntu.
I suspect grub not installed in correct place!.
here is boot info script result.
Do I reinstall grub? if so how?
or is it something else?.
all assistance appriciated.:)



Boot Info Script 0.55 dated February 15th, 2010

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

=> Windows is installed in the MBR of /dev/sda

sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________ _______________________

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.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 429,452,142 429,450,095 7 HPFS/NTFS
/dev/sda2 429,453,310 625,141,759 195,688,450 5 Extended
/dev/sda5 429,453,312 617,093,119 187,639,808 83 Linux
/dev/sda6 617,095,168 625,141,759 8,046,592 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 16DC3550DC352B7F ntfs VistaOS
/dev/sda2: PTTYPE="dos"
/dev/sda5 15a077e0-efc9-40fc-aeaa-e93f9d8241a3 ext4
/dev/sda6 7c9cd91c-89bb-4f47-8ff6-89fa31750c7f swap
/dev/sda: 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)


=========================== sda5/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 part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 15a077e0-efc9-40fc-aeaa-e93f9d8241a3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 15a077e0-efc9-40fc-aeaa-e93f9d8241a3
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 15a077e0-efc9-40fc-aeaa-e93f9d8241a3
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=15a077e0-efc9-40fc-aeaa-e93f9d8241a3 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 15a077e0-efc9-40fc-aeaa-e93f9d8241a3
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=15a077e0-efc9-40fc-aeaa-e93f9d8241a3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 15a077e0-efc9-40fc-aeaa-e93f9d8241a3
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 15a077e0-efc9-40fc-aeaa-e93f9d8241a3
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 16dc3550dc352b7f
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_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=15a077e0-efc9-40fc-aeaa-e93f9d8241a3 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=7c9cd91c-89bb-4f47-8ff6-89fa31750c7f none swap sw 0 0

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


284.4GB: boot/grub/core.img
312.3GB: boot/grub/grub.cfg
312.4GB: boot/initrd.img-2.6.35-22-generic
284.4GB: boot/vmlinuz-2.6.35-22-generic
312.4GB: initrd.img
284.4GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 82 15 42 8a 03 67 e7 16 dc 9e f6 ef 57 63 c3 45 |..B..g......Wc.E|
00000010 1e cf e5 cc f4 5a fa 5d dc 89 18 cf 71 da 51 a9 |.....Z.]....q.Q.|
00000020 71 f7 56 21 02 c7 c7 6d 22 28 cd 54 64 5b 51 9d |q.V!...m"(.Td[Q.|
00000030 92 97 61 12 c1 70 ac 61 b5 15 66 32 4e 1f 6a 7e |..a..p.a..f2N.j~|
00000040 0f b9 d8 49 bb 84 1d 84 f1 f3 f2 d1 8c 9d 1e f7 |...I............|
00000050 93 67 61 36 d9 2c c8 7b e1 b1 47 3b 4b 49 2e 91 |.ga6.,.{..G;KI..|
00000060 11 a5 c4 ed 2d 9f b9 50 e8 79 a1 31 cf cf d6 f9 |....-..P.y.1....|
00000070 5a f6 28 ed 8e d8 86 7b 88 5a cc 3e 0f 15 dd c3 |Z.(....{.Z.>....|
00000080 02 f1 6d 15 df ae 70 aa eb 7e 5d a5 50 9d 73 30 |..m...p..~].P.s0|
00000090 db eb f8 c4 89 17 f3 a3 2f d1 b6 f6 38 cc 01 a3 |......../...8...|
000000a0 c1 a2 a8 4c 1c ee d7 41 bf 50 52 5a d1 87 08 44 |...L...A.PRZ...D|
000000b0 1a 18 e0 1a dc 8f fe de 37 c6 f4 70 52 b7 ff ea |........7..pR...|
000000c0 46 b7 9c 2e 85 39 4e b8 8c 6c af 48 79 3e 67 90 |F....9N..l.Hy>g.|
000000d0 6c aa 5b c8 80 97 0e ec d2 f4 5d cf 7c 39 d4 8b |l.[.......].|9..|
000000e0 1a c3 8f 42 e6 cf 4b a8 c2 e2 a9 80 4d 9e 80 73 |...B..K.....M..s|
000000f0 8d c6 10 2f 95 10 51 36 9a bc 21 99 eb bd b7 bc |.../..Q6..!.....|
00000100 b5 31 62 ce df b9 12 11 67 bb b7 48 2c ad b9 69 |.1b.....g..H,..i|
00000110 a9 58 92 06 1b 38 2d db b6 a8 c4 d8 f5 b0 c0 b6 |.X...8-.........|
00000120 e5 e3 2d 4e 30 f9 4d 7b c2 7b b8 83 76 a2 c7 a5 |..-N0.M{.{..v...|
00000130 9b fa 89 bb 7d 10 fc b9 09 9b c1 8d 2f c5 30 c2 |....}......./.0.|
00000140 89 38 50 b9 1e 33 30 4a 4c 56 7f ff eb 34 19 20 |.8P..30JLV...4. |
00000150 f6 2c f5 f5 0d 18 c1 37 f2 9a e0 5a 29 f5 af cf |.,.....7...Z)...|
00000160 d7 60 34 66 38 2c 82 96 75 f4 6b 07 d3 67 48 cb |.`4f8,..u.k..gH.|
00000170 10 9d 4b d9 76 88 e9 45 4b ec 76 96 c1 91 f7 f7 |..K.v..EK.v.....|
00000180 91 a2 5e 68 d2 35 66 e3 c5 a8 98 05 30 e9 1c c1 |..^h.5f.....0...|
00000190 04 8d 33 c1 79 c7 08 74 eb c1 4f f9 1f e1 dc 20 |..3.y..t..O.... |
000001a0 c2 d1 52 b4 73 93 19 43 09 84 b5 1e ab 13 9c c1 |..R.s..C........|
000001b0 50 c5 d0 be 8a e3 d5 72 57 13 da f5 1a e2 00 fe |P......rW.......|
000001c0 ff ff 83 fe ff ff 02 00 00 00 00 28 2f 0b 00 fe |...........(/...|
000001d0 ff ff 05 fe ff ff 02 28 2f 0b 00 d0 7a 00 00 00 |.......(/...z...|
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

peter_nz
December 4th, 2010, 05:59 AM
OK I figured it out myself It was the fact that I had an SD card in machine when doing original install seems to have confused grub. I simply removed card deleted the partitions and reinstalled no problems this time.
Lesson learned REMOVE ALL REMOVABLE MEDIA FIRST BEFORE INSTALL!.

Duh so obvious really slapping myself;)