PDA

View Full Version : [SOLVED] 11.4 on second HDD installed - no boot menu



Alphax45
August 27th, 2011, 03:44 AM
Hi All

Took the plunge tonight and installed kubuntu on my second HDD in my laptop using a 4 GB USB key. The first HDD has Windows 7.

(Side note: The installer really needs to do a better job of telling you which drive your actually installing on. I took the step of labeling each drive (1 as Windows and 2 as Linux hoping the installer would show me them - no such luck)

Install went well and I rebooted. No boot menu! The machine just boots into Windows 7.

All of my searching on this forum and Google talks about the opposite problem.

Did I miss something in the install? Please help.

Thank you.

K

Alphax45
August 27th, 2011, 04:18 AM
OK - I managed to get into kubuntu via the "try" option when I boot from the USB key and I can see the drive I installed kubuntu on and access the "grub.cfg" file but I really have no clue what to edit.

If attaching the file will help I can do so.

Idefix82
August 27th, 2011, 04:29 AM
My guess is that the boot loader was installed on the second HD, while your bios boots from the first. When you switch on the computer, change into the BIOS settings and tell the bios to try booting from the second hd first. See if you then get the menu with the choice of operating systems.

oldfred
August 27th, 2011, 04:50 AM
+1 on Idefix82 suggestion.

If you want to see where everything is installed.

Boot Info Script courtesy of forum members meierfra & Gert Hulselmans
Page with instructions and download:
http://bootinfoscript.sourceforge.net/
Paste contents of results.txt in a New Reply, then highlight entire file and click on # in edit panel(code tags) to make it easier to read.
Or You can generate the tags first by pressing the # icon in the New Reply Edit toolbar and then paste the contents between the generated [ code] paste here [ /code] tags.
V60 has improved formating and requires code tags to make it legible. New Version is a zip file that you have to extract to get .sh to run.

Alphax45
August 27th, 2011, 05:02 AM
Thanks for the suggestions and yes I agree that does make sense. In my case this will not work as the BIOS on this laptop sucks and doesn't let you pick which drive to boot from. It is an HP DV9618ca. I will try the script and post as advised.

Thank you

Alphax45
August 27th, 2011, 05:24 AM
Boot Info Script 0.60 from 17 May 2011


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

=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sda.
=> Windows is installed in the MBR of /dev/sdb.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdc and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.

sda1: __________________________________________________ ________________________

File system: vfat
Boot sector type: SYSLINUX 4.04 2011-04-18
Boot sector info: Syslinux looks at sector 30606 of /dev/sda1 for its
second stage. SYSLINUX is installed in the directory.
The integrity check of the ADV area failed. No errors
found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /syslinux/syslinux.cfg /ldlinux.sys

sdb1: __________________________________________________ ________________________

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

sdb2: __________________________________________________ ________________________

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

sdc1: __________________________________________________ ________________________

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

sdc2: __________________________________________________ ________________________

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

sdc5: __________________________________________________ ________________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 4022 MB, 4022337536 bytes
255 heads, 63 sectors/track, 489 cylinders, total 7856128 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 * 63 7,856,127 7,856,065 c W95 FAT32 (LBA)


Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sdb2 206,848 234,438,655 234,231,808 7 NTFS / exFAT / HPFS


Drive: sdc __________________________________________________ ___________________

Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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/sdc1 * 2,048 230,512,639 230,510,592 83 Linux
/dev/sdc2 230,514,686 234,440,703 3,926,018 5 Extended
/dev/sdc5 230,514,688 234,440,703 3,926,016 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 1D05-2F39 vfat PENDRIVE
/dev/sdb1 DE3C90E43C90B94B ntfs System Reserved
/dev/sdb2 4CCC93DECC93C11E ntfs Windows
/dev/sdc1 20568e8e-1246-459d-8344-85e31a9e9569 ext4

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda1 /cdrom vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437, iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


=========================== sda1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------

if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Start Kubuntu" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/kubuntu.seed boot=casper maybe-ubiquity quiet splash --
initrd /casper/initrd.lz
}
menuentry "Check disc for defects" {
set gfxpayload=keep
linux /casper/vmlinuz boot=casper integrity-check quiet splash --
initrd /casper/initrd.lz
}
--------------------------------------------------------------------------------

========================= sda1/syslinux/syslinux.cfg: ==========================

--------------------------------------------------------------------------------
# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50

# If you would like to use the new menu and be presented with the option to install or run from USB at startup, remove # from the following line. This line was commented out (by request of many) to allow the old menu to be presented and to enable booting straight into the Live Environment!
# ui gfxboot bootlogo
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

?? = ?? boot/grub/grub.cfg 1

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

GiB - GB File Fragment(s)

?? = ?? ldlinux.sys 1
?? = ?? syslinux/gfxboot.c32 1
?? = ?? syslinux/syslinux.cfg 1
?? = ?? syslinux/vesamenu.c32 1

============== sda1: Version of COM32(R) files used by Syslinux: ===============

syslinux/gfxboot.c32 : COM32R module (v4.xx)
syslinux/vesamenu.c32 : COM32R module (v4.xx)

========================== sdb1/grldr embedded menu: ===========================

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

=========================== sdc1/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_msdos
insmod ext2
set root='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root 20568e8e-1246-459d-8344-85e31a9e9569
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root 20568e8e-1246-459d-8344-85e31a9e9569
set locale_dir=($root)/boot/grub/locale
set lang=en_CA
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
if background_color 0,71,115; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
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 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root 20568e8e-1246-459d-8344-85e31a9e9569
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=20568e8e-1246-459d-8344-85e31a9e9569 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root 20568e8e-1246-459d-8344-85e31a9e9569
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=20568e8e-1246-459d-8344-85e31a9e9569 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-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='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root 20568e8e-1246-459d-8344-85e31a9e9569
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root 20568e8e-1246-459d-8344-85e31a9e9569
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sdb1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root DE3C90E43C90B94B
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 ###
--------------------------------------------------------------------------------

=============================== sdc1/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 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdc5 during installation
#UUID=eaa96928-a5a1-4539-b2c5-3cc10a726369 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

38.135513306 = 40.947695616 boot/grub/core.img 1
24.206466675 = 25.991495680 boot/grub/grub.cfg 1
1.729431152 = 1.856962560 boot/initrd.img-2.6.38-8-generic 1
38.133792877 = 40.945848320 boot/vmlinuz-2.6.38-8-generic 1
1.729431152 = 1.856962560 initrd.img 1
38.133792877 = 40.945848320 vmlinuz 1

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

Unknown BootLoader on sdc2

00000000 57 54 a0 16 a3 e2 d9 74 f6 05 6a 1d 2d 03 76 73 |WT.....t..j.-.vs|
00000010 e9 49 9b 86 55 75 ec 8b 35 cc 01 f3 51 cb d8 ca |.I..Uu..5...Q...|
00000020 8a b4 50 58 64 8c fc a2 29 c8 29 9a 86 ec 62 4f |..PXd...).)...bO|
00000030 64 16 07 20 bd 38 02 69 c5 f1 42 4a 71 ba 90 5c |d.. .8.i..BJq..\|
00000040 9c 27 49 2c 2e 93 c4 17 d7 4b 63 8b 3b 65 d1 c5 |.'I,.....Kc.;e..|
00000050 03 6a 91 45 23 ea 11 c5 bb 34 c2 8a 4f 6b 84 16 |.j.E#....4..Ok..|
00000060 3f 47 be d2 08 2d 7a a0 1e 56 24 aa 8d 51 a8 e4 |?G...-z..V$..Q..|
00000070 7a 36 af c9 12 fa 5e ea ef a8 e7 f5 40 5b b2 8c |z6....^.....@[..|
00000080 f4 37 02 2d 8c a3 92 39 29 28 57 43 76 b9 01 32 |.7.-...9)(WCv..2|
00000090 cb 27 21 bd c2 1e a9 15 d3 91 5c e9 8b a4 ca 50 |.'!.......\....P|
000000a0 24 54 c6 22 be 32 45 88 ad cc 11 a2 2b 4b 24 51 |$T.".2E.....+K$Q|
000000b0 95 b5 92 88 ca 0e 69 58 45 bf 2c a4 62 95 5a 50 |......iXE.,.b.ZP|
000000c0 c5 0e f5 c0 8a 53 ea 01 95 37 c9 1d f5 80 8a fb |.....S...7......|
000000d0 6a 01 e5 e2 18 81 65 a2 4c c1 55 e6 e0 14 2d c0 |j.....e.L.U...-.|
000000e0 7e ea 6f 6d 61 3b d0 92 0c 91 be 36 f6 03 c6 52 |~.oma;.....6...R|
000000f0 da 40 df c9 bc a4 d4 ea 21 a9 ce 1c 09 75 d6 88 |.@......!....u..|
00000100 ab 77 41 6c bd 17 62 ea 83 10 d5 10 89 c8 86 44 |.wAl..b........D|
00000110 84 37 64 0a 61 0d 85 42 48 7d 95 24 a8 be 55 12 |.7d.a..BH}.$..U.|
00000120 50 3f 4f ea 57 bf 42 36 ab 7e 9b cc a7 fe 84 9a |P?O.W.B6.~......|
00000130 77 fd 33 e4 0b 35 ef ba 3f 65 de 75 a2 cc bb f6 |w.3..5..?e.u....|
00000140 5f 2e 32 df c7 a8 b1 bb 95 ed d0 c9 eb 81 76 64 |_.2...........vd|
00000150 80 74 93 ba d9 f4 5d 1d f4 1d 8c 27 b6 55 1b 51 |.t....]....'.U.Q|
00000160 ad 46 88 68 9b 8c f0 36 47 84 b6 cf 40 48 bb 2f |.F.h...6G...@H./|
00000170 82 db 43 11 d4 1e 8b 80 f6 54 f8 b7 e7 09 be ed |..C......T......|
00000180 15 82 4f 7b 93 c4 ab 7d 8e c4 b3 7d 58 3a b3 7d |..O{...}...}X:.}|
00000190 8b 74 7a fb 31 a9 7b fb 53 e4 33 a9 7b db 1f 52 |.tz.1.{.S.3.{..R|
000001a0 f7 56 51 ea de f2 2f 8a 33 51 07 59 ff ed 5d c0 |.VQ.../.3Q.Y..].|
000001b0 ba 39 c0 52 5a 91 f9 f3 d8 17 48 25 df e7 00 fe |.9.RZ.....H%....|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 e8 3b 00 00 00 |............;...|
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


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

/home/ubuntu/Desktop/script/boot_info_script.sh: line 1579: [: 2.73495e+09: integer expression expected

Hakunka-Matata
August 27th, 2011, 06:04 AM
http://https://help.ubuntu.com/community/Grub2#ChRoot (http://https//help.ubuntu.com/community/Grub2#ChRoot)


Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: =============================== =>
Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sda. =>
Windows is installed in the MBR of /dev/sdb. =>
Grub2 (v1.99) is installed in the MBR of /dev/sdc and looks at sector 1 of the same hard drive for core.img. core.img is at this location and looks for ?? on this drive.As you can see at the very beginning of your Boot Info Script RESULTS.txt file, Grub2 is installed on the MBR of /dev/sdc. And your BIOS is set to boot from /dev/sda. The machine knows nothing about sdc and therefore does not start Grub2, and does not give you a choice which OS to load. If you could change BIOS to boot from sdc first, you'd have the Grub menu.
If you cannot change the boot order via BIOS, you have to install Grub2 to the MBR of /dev/sda. You can do that if you feel comfortable following the instructions in the link at the top of this post. Copy and paste the commands, rather than typing them out, no chance for typos that way.

Quackers
August 27th, 2011, 08:27 AM
Actually sda appears to be a flash drive. Try installing grub to sdb, or alternatively have a good look around your bios settings. If sdc is an external drive you may need to turn on booting from external devices first.

Alphax45
August 27th, 2011, 02:28 PM
HI All

The boot repair tool did the trick.

Thank you!

Hakunka-Matata
August 27th, 2011, 05:04 PM
Actually sda appears to be a flash drive. Try installing grub to sdb, or alternatively have a good look around your bios settings. If sdc is an external drive you may need to turn on booting from external devices first.

@Quackers;

Thank you for pointing out my obvious mistake, I see it plain as day now. sda is a 4GiB drive, how do I miss such obvious clues! Tell me, is Syslinux MBR another obvious clue that the drive is a flash drive? Or is it used on large hard disks too? Guess I'll have to test now and see what happens by installing Grub2 to a flash drive!

@Alphax45; Good to see you're up and running.

oldfred
August 27th, 2011, 06:01 PM
Syslinux is the most common standard flash drive boot loader. But I use grub2 to boot my flash drives.
You could use syslinux to boot a hard drive but normally it is grub, grub2, windows, lilo, or other third party boot loaders.

Boot script has so many details, I still miss things sometimes. Thats why I prefer others to also review a boot script. Often the things it does not show (that should be there) are the hardest to learn about.