xoros
May 10th, 2010, 04:25 PM
My bios seems to support only booting a drive in position sata-0
Ubuntu 10.04 install is on the drive in sata-0
Vista install is a second drive in sata-1
*Ubuntu loads fine but when trying to load Vista from grub2 menu I get:
error: hd1,1 cannot get C/H/S values.
*Vista will boot fine if I swap the physical sata cables and place the vista drive in sata-0.
(But then I have no way to boot Ubuntu - get similar error when I've tried Easybcd to boot Ubuntu (then on sata-1) - so I reverted back to Vista's bootloader with bootrec.exe FixBoot / FixMbr )
Everything comes up fine when I run update-grub.
Is there any way to get grub to boot the Vista drive?
Or is this a lost cause due to my bios?
If anyone can help, it would be appreciated.
I ran bootinfo script:
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 /grub.
=> Windows is installed in the MBR of /dev/sdb
sda1: __________________________________________________ _______________________
File system: ext2
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img
sda2: __________________________________________________ _______________________
File system: xfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /etc/fstab
sda3: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: xfs
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sda6: __________________________________________________ _______________________
File system: xfs
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sda7: __________________________________________________ _______________________
File system: xfs
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sdb1: __________________________________________________ _______________________
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
=========================== 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 End Size Id System
/dev/sda1 * 63 514,079 514,017 83 Linux
/dev/sda2 514,080 105,370,334 104,856,255 83 Linux
/dev/sda3 105,370,335 106,414,559 1,044,225 82 Linux swap / Solaris
/dev/sda4 106,414,621 976,768,064 870,353,444 5 Extended
/dev/sda5 106,414,623 959,787,359 853,372,737 83 Linux
/dev/sda6 976,559,283 976,768,064 208,782 83 Linux
/dev/sda7 959,787,423 976,559,219 16,771,797 83 Linux
Drive: sdb ___________________ __________________________________________________ ___
Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders, total 312500000 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 * 2,048 312,496,127 312,494,080 7 HPFS/NTFS
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/sda1 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334 ext2 boot
/dev/sda2 3adc06f8-dbad-4143-b533-b0f4b8446273 xfs root
/dev/sda3 7ef54bd1-3613-42cf-9292-717b82ee2847 swap
/dev/sda4: PTTYPE="dos"
/dev/sda5 aa711fe6-6e16-4a26-b528-26a8bf41daa2 xfs home
/dev/sda6 1ab6aeaf-9708-4910-a7b5-a30d08d2f6c4 xfs tmp
/dev/sda7 a24188bf-0cf5-4586-bed6-d624a860b396 xfs var
/dev/sda: PTTYPE="dos"
/dev/sdb1 521E29011E28DFA9 ntfs
/dev/sdb: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda2 / xfs (rw)
/dev/sda1 /boot ext2 (rw)
/dev/sda5 /home xfs (rw)
/dev/sda6 /tmp xfs (rw)
/dev/sda7 /var xfs (rw)
/dev/sdb1 /media/521E29011E28DFA9 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
============================= sda1/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 xfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 3adc06f8-dbad-4143-b533-b0f4b8446273
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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
set locale_dir=($root)/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-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
linux /vmlinuz-2.6.32-22-generic root=UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 ro quiet splash
initrd /initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
echo 'Loading Linux 2.6.32-22-generic ...'
linux /vmlinuz-2.6.32-22-generic root=UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-22-generic
}
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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
linux /vmlinuz-2.6.32-21-generic root=UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 ro quiet splash
initrd /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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
echo 'Loading Linux 2.6.32-21-generic ...'
linux /vmlinuz-2.6.32-21-generic root=UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 ro single
echo 'Loading initial ramdisk ...'
initrd /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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sdb1)" {
insmod ntfs
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 521e29011e28dfa9
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 ###
=================== sda1: Location of files loaded by Grub: ===================
.0GB: grub/core.img
.0GB: grub/grub.cfg
.0GB: initrd.img-2.6.32-21-generic
.0GB: initrd.img-2.6.32-22-generic
.0GB: vmlinuz-2.6.32-21-generic
.0GB: vmlinuz-2.6.32-22-generic
=============================== sda2/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/sda2 during installation
UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 / xfs defaults 0 1
# /boot was on /dev/sda1 during installation
UUID=0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334 /boot ext2 defaults 0 2
# /home was on /dev/sda5 during installation
UUID=aa711fe6-6e16-4a26-b528-26a8bf41daa2 /home xfs defaults 0 2
# /tmp was on /dev/sda6 during installation
UUID=1ab6aeaf-9708-4910-a7b5-a30d08d2f6c4 /tmp xfs defaults 0 2
# /var was on /dev/sda7 during installation
UUID=a24188bf-0cf5-4586-bed6-d624a860b396 /var xfs defaults 0 2
# swap was on /dev/sda3 during installation
UUID=7ef54bd1-3613-42cf-9292-717b82ee2847 none swap sw 0 0
=================== sda2: Location of files loaded by Grub: ===================
.3GB: initrd.img
.3GB: initrd.img.old
.2GB: vmlinuz
.2GB: vmlinuz.old
Ubuntu 10.04 install is on the drive in sata-0
Vista install is a second drive in sata-1
*Ubuntu loads fine but when trying to load Vista from grub2 menu I get:
error: hd1,1 cannot get C/H/S values.
*Vista will boot fine if I swap the physical sata cables and place the vista drive in sata-0.
(But then I have no way to boot Ubuntu - get similar error when I've tried Easybcd to boot Ubuntu (then on sata-1) - so I reverted back to Vista's bootloader with bootrec.exe FixBoot / FixMbr )
Everything comes up fine when I run update-grub.
Is there any way to get grub to boot the Vista drive?
Or is this a lost cause due to my bios?
If anyone can help, it would be appreciated.
I ran bootinfo script:
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 /grub.
=> Windows is installed in the MBR of /dev/sdb
sda1: __________________________________________________ _______________________
File system: ext2
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img
sda2: __________________________________________________ _______________________
File system: xfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /etc/fstab
sda3: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: xfs
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sda6: __________________________________________________ _______________________
File system: xfs
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sda7: __________________________________________________ _______________________
File system: xfs
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sdb1: __________________________________________________ _______________________
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
=========================== 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 End Size Id System
/dev/sda1 * 63 514,079 514,017 83 Linux
/dev/sda2 514,080 105,370,334 104,856,255 83 Linux
/dev/sda3 105,370,335 106,414,559 1,044,225 82 Linux swap / Solaris
/dev/sda4 106,414,621 976,768,064 870,353,444 5 Extended
/dev/sda5 106,414,623 959,787,359 853,372,737 83 Linux
/dev/sda6 976,559,283 976,768,064 208,782 83 Linux
/dev/sda7 959,787,423 976,559,219 16,771,797 83 Linux
Drive: sdb ___________________ __________________________________________________ ___
Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders, total 312500000 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 * 2,048 312,496,127 312,494,080 7 HPFS/NTFS
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/sda1 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334 ext2 boot
/dev/sda2 3adc06f8-dbad-4143-b533-b0f4b8446273 xfs root
/dev/sda3 7ef54bd1-3613-42cf-9292-717b82ee2847 swap
/dev/sda4: PTTYPE="dos"
/dev/sda5 aa711fe6-6e16-4a26-b528-26a8bf41daa2 xfs home
/dev/sda6 1ab6aeaf-9708-4910-a7b5-a30d08d2f6c4 xfs tmp
/dev/sda7 a24188bf-0cf5-4586-bed6-d624a860b396 xfs var
/dev/sda: PTTYPE="dos"
/dev/sdb1 521E29011E28DFA9 ntfs
/dev/sdb: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda2 / xfs (rw)
/dev/sda1 /boot ext2 (rw)
/dev/sda5 /home xfs (rw)
/dev/sda6 /tmp xfs (rw)
/dev/sda7 /var xfs (rw)
/dev/sdb1 /media/521E29011E28DFA9 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
============================= sda1/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 xfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 3adc06f8-dbad-4143-b533-b0f4b8446273
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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
set locale_dir=($root)/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-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
linux /vmlinuz-2.6.32-22-generic root=UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 ro quiet splash
initrd /initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
echo 'Loading Linux 2.6.32-22-generic ...'
linux /vmlinuz-2.6.32-22-generic root=UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-22-generic
}
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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
linux /vmlinuz-2.6.32-21-generic root=UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 ro quiet splash
initrd /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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
echo 'Loading Linux 2.6.32-21-generic ...'
linux /vmlinuz-2.6.32-21-generic root=UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 ro single
echo 'Loading initial ramdisk ...'
initrd /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 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sdb1)" {
insmod ntfs
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 521e29011e28dfa9
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 ###
=================== sda1: Location of files loaded by Grub: ===================
.0GB: grub/core.img
.0GB: grub/grub.cfg
.0GB: initrd.img-2.6.32-21-generic
.0GB: initrd.img-2.6.32-22-generic
.0GB: vmlinuz-2.6.32-21-generic
.0GB: vmlinuz-2.6.32-22-generic
=============================== sda2/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/sda2 during installation
UUID=3adc06f8-dbad-4143-b533-b0f4b8446273 / xfs defaults 0 1
# /boot was on /dev/sda1 during installation
UUID=0e5a8bc3-1c6a-4ed3-a724-bda4c26ab334 /boot ext2 defaults 0 2
# /home was on /dev/sda5 during installation
UUID=aa711fe6-6e16-4a26-b528-26a8bf41daa2 /home xfs defaults 0 2
# /tmp was on /dev/sda6 during installation
UUID=1ab6aeaf-9708-4910-a7b5-a30d08d2f6c4 /tmp xfs defaults 0 2
# /var was on /dev/sda7 during installation
UUID=a24188bf-0cf5-4586-bed6-d624a860b396 /var xfs defaults 0 2
# swap was on /dev/sda3 during installation
UUID=7ef54bd1-3613-42cf-9292-717b82ee2847 none swap sw 0 0
=================== sda2: Location of files loaded by Grub: ===================
.3GB: initrd.img
.3GB: initrd.img.old
.2GB: vmlinuz
.2GB: vmlinuz.old