PDA

View Full Version : [SOLVED] Issue with GRUB for dualboot



stalkier
August 25th, 2011, 09:04 PM
I have the following setup:

SATA hdd 1 - Windows 7
SATA hdd 2 part1 - Data (NTFS)
SATA hdd 2 part2 - Data (NTFS)
IDE hdd 1 SWAP (2GB)
IDE hdd 1 EXT4 /
IDE hdd 2 /home (80GB)

Windows was installed and works properly. Ubuntu was installed correctly however, GRUB is obviously not setup correctly.

SATA hard discs do NOT show on Ubuntu Install Screen.

Please help me to get my system in order.

Added info: Windows 7 Ultimate, Ubuntu 11.04.

stalkier
August 25th, 2011, 09:14 PM
Boot Info Script 0.60 from 17 May 2011


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

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

sda1: __________________________________________________ ________________________

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

sdb1: __________________________________________________ ________________________

File system: ext4
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sdb1
and looks at sector 63226632 of the same hard drive
for core.img. core.img is at this location and looks
for (,msdos1)/boot/grub on this drive.
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdb2: __________________________________________________ ________________________

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

sdb5: __________________________________________________ ________________________

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

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 82.0 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders, total 160086528 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 2,048 160,086,015 160,083,968 83 Linux


Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 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 74,219,519 74,217,472 83 Linux
/dev/sdb2 74,221,566 78,163,967 3,942,402 5 Extended
/dev/sdb5 74,221,568 78,163,967 3,942,400 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 1d818e95-0bc0-4a00-baa0-f3d43c828a07 ext4
/dev/sdb1 72bffeec-cecb-480c-a2d6-55688040b624 ext4
/dev/sdb5 208fc63f-a0c1-4111-9ac5-5ca22d160da0 swap

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda1 /media/1d818e95-0bc0-4a00-baa0-f3d43c828a07 ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb1 /media/72bffeec-cecb-480c-a2d6-55688040b624 ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sr0 /cdrom iso9660 (ro,noatime)


=========================== sdb1/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/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root 72bffeec-cecb-480c-a2d6-55688040b624
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/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root 72bffeec-cecb-480c-a2d6-55688040b624
set locale_dir=($root)/boot/grub/locale
set lang=en_US
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 44,0,30; 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/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root 72bffeec-cecb-480c-a2d6-55688040b624
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=72bffeec-cecb-480c-a2d6-55688040b624 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/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root 72bffeec-cecb-480c-a2d6-55688040b624
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=72bffeec-cecb-480c-a2d6-55688040b624 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/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root 72bffeec-cecb-480c-a2d6-55688040b624
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root 72bffeec-cecb-480c-a2d6-55688040b624
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 ###
--------------------------------------------------------------------------------

=============================== 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
# / was on /dev/sdb1 during installation
UUID=72bffeec-cecb-480c-a2d6-55688040b624 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda1 during installation
UUID=1d818e95-0bc0-4a00-baa0-f3d43c828a07 /home ext4 defaults 0 2
# swap was on /dev/sdb5 during installation
UUID=208fc63f-a0c1-4111-9ac5-5ca22d160da0 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

30.148834229 = 32.372064256 boot/grub/core.img 1
30.148841858 = 32.372072448 boot/grub/grub.cfg 1
1.255111694 = 1.347665920 boot/initrd.img-2.6.38-8-generic 1
30.147106171 = 32.370208768 boot/vmlinuz-2.6.38-8-generic 1
1.255111694 = 1.347665920 initrd.img 1
30.147106171 = 32.370208768 vmlinuz 1

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

Unknown BootLoader on sdb2

00000000 8f 8f b9 e5 43 b6 95 27 06 60 14 8a bd 3a ac 7a |....C..'.`...:.z|
00000010 0c 06 c1 42 0d e0 42 00 e0 42 f8 f6 2a 9d 62 02 |...B..B..B..*.b.|
00000020 aa 9a 6f 8a 20 ce 91 11 05 0a 81 db 60 c2 40 34 |..o. .......`.@4|
00000030 1e 17 17 a5 bc 0f db 05 08 1f 1e 0e 95 8f c1 56 |...............V|
00000040 0c 38 4d 07 ed 83 01 9d 8a 75 bf fb 16 8b d4 56 |.8M......u.....V|
00000050 ac 7f e8 3c 14 04 e2 38 30 1d 06 04 2d 4c 4b 68 |...<...80...-LKh|
00000060 1f 03 e1 0b 28 7f 92 f3 29 53 5f cf ae 1a 13 d3 |....(...)S_.....|
00000070 6d 08 14 0e 00 7a 76 37 2f 07 38 c3 00 d4 14 00 |m....zv7/.8.....|
00000080 1a 08 15 2a b8 1e 65 05 5b 0c f8 3c 6f fc b0 6f |...*..e.[..<o..o|
00000090 21 0f d5 ba 77 3e d8 c4 7c 0f 01 06 4f e0 29 01 |!...w>..|...O.).|
000000a0 8b c4 61 0c 19 3f c4 b1 0c 18 7b f5 54 7a 25 b4 |..a..?....{.Tz%.|
000000b0 23 2a 1e 26 6b 13 59 b9 18 1e 2a e7 a6 dd 9d df |#*.&k.Y...*.....|
000000c0 c2 31 b8 3c 07 f1 a0 a0 56 0c d0 33 62 52 71 20 |.1.<....V..3bRq |
000000d0 7e 0d a1 02 d0 64 9e 04 06 44 b1 08 7c 0c a5 50 |~....d...D..|..P|
000000e0 1d 8d 34 38 f2 45 0a 2e 8f 99 fd 47 fe 9c 26 3a |..48.E.....G..&:|
000000f0 07 80 fd 65 40 ec 78 a8 19 90 64 c1 0c 19 a1 e0 |...e@.x...d.....|
00000100 43 df 78 4a 10 d2 ef be 9a fd b0 2d 8c f3 97 07 |C.xJ.......-....|
00000110 2b 28 b3 ae 09 c9 81 e0 3f 7b 06 f0 fc 18 03 47 |+(......?{.....G|
00000120 60 c0 a0 ff fd e1 0c 7c d2 af b5 bb ff 6f 95 fd |`......|.....o..|
00000130 9c 53 1a 98 8f 35 40 da a2 a3 4f 95 f4 f3 e5 01 |.S...5@...O.....|
00000140 81 44 dc 06 05 10 f4 18 20 60 1f 1d 00 73 25 ab |.D...... `...s%.|
00000150 a7 69 38 30 20 02 88 1a 83 6f 99 4e 05 f3 4b 30 |.i80 ....o.N..K0|
00000160 bd 96 6b 1f db 7b 69 65 da 46 2d 03 a0 7f c0 f0 |..k..{ie.F-.....|
00000170 10 56 82 08 94 3d 2f 06 11 d3 4b ca 3e cb 81 0c |.V...=/...K.>...|
00000180 0d fb c3 ad cd ed 5e 7b 94 73 94 ab 9c 20 26 0d |......^{.s... &.|
00000190 00 ea 60 64 c0 cc ab 4c 91 a6 e6 a3 aa 41 42 0a |..`d...L.....AB.|
000001a0 01 0c 46 67 fc 1b 15 ff fe 20 1d 83 08 e0 7c 18 |..Fg..... ....|.|
000001b0 4a 06 1f 83 0f 80 f8 84 95 b0 82 db 0b f8 00 fe |J...............|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 28 3c 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: ===============================

unlzma: Decoder error
unlzma: Decoder error

Hreinsi
August 25th, 2011, 09:15 PM
http://www.webupd8.org/2011/06/boot-repair-fix-ubuntu-boot-issues.html

boot from live cd and install fix mine many times :)

stalkier
August 25th, 2011, 10:20 PM
http://www.webupd8.org/2011/06/boot-repair-fix-ubuntu-boot-issues.html

boot from live cd and install fix mine many times :)

Sorry doesn't correct mine. The application does not see my SATA drives that the MBR is on.

To me it doesnt matter how I get it to load, whether it is with GRUB, GRUB2 or Windows Loader. I DO have EasyBCD 2.1 to edit the Windows MBR.

This is really turning into a nightmare, like I knew it would be. I hate Windows so bad but I am stuck with it for gaming and Adobe products.

oldfred
August 25th, 2011, 11:08 PM
Boot script is not showing any Windows. It does not match your description in your first post. You show /home in sda1 and / (root)
in sdb1 with swap in sdb5.

You have grub2's boot loader in sda1 and in the partition boot sector of sdb1 where it will never be used.

If you set BIOS to boot your 82GB drive it should boot.

When you have mixed IDE & SATA, BIOS often promote the IDE drive to sda, then you have to be careful on where you install grub2's boot loader.

I always suggest when you have muliple drives to keep one entire system on each drive. Or Windows on sda & Linux (all partitions) on sdb. Then if your BIOS lets you you can boot each separately. But some older BIOS will only boot the IDE drive and you have to have grub's boot loader in the IDE drive.

Many also suggest for new users to totally disconnect each drive when installing the other system so things do not get messed up.

Installing Ubuntu in Hard Disk Two (or more) internal or external
Maverick screens shown, other versions have slight difference in screens but process is the same.
http://members.iinet.net.au/~herman546/p24.html