Dual boot Vista and Mint, problems after kernel upgrade

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Dual boot Vista and Mint, problems after kernel upgrade

Postby wcselby on Sun Mar 01, 2009 3:56 pm

I recently upgraded my kernel from 2.6.27-7 to 2.6.27-11 (canonical kept popping up and telling me I should do this, so I finally did). Once I did that however, Mint works great, my custom-ordered GRUB boot menu was lost (my fault for not making a backup). The new grub boot menu (/boot/grub/menu.lst) contained all the entries for booting the new kernel and the old kernel, but no entires for Vista.

Here's my issue - when I first setup the dual-boot, GRUB automatically detected and entered the correct settings to boot my Vista partition. All I had done was change the display order of my choices so that I only saw the choices "Linux Mint" and "Windows Vista".

My new menu.lst file does not have an entry for Vista, and every entry I try doesn't seem to work. My /windows partition is on sda6, so here's the entry I tried to put into /boot/grub/menu.lst:

Code: Select all
title      Windows Vista
rootnoverify   (hd0,5)
savedefault
makeactive
chainloader   +1


However, this gives me a message: "Error 12: Invalid Device Requested"

If I take out the line "makeactive", then I get a message that windows could not find the BOOTMGR and to reboot. Why would updating my Linux kernel have messed up my Vista bootmgr?

I'm still trying to get this working, but any help you guys may be able to provide would be much appreciated. Here's the output of "fdisk -l" and the entire contents of my /boot/grub/menu.lst files:

Code: Select all
warren@phobos ~ $ sudo fdisk -l
[sudo] password for warren:

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           7       56196   de  Dell Utility
/dev/sda2               8         138     1052257+  82  Linux swap / Solaris
/dev/sda3             139        1966    14683410   83  Linux
/dev/sda4            1967       30401   228404137+   5  Extended
/dev/sda5            1967       19589   141556716   83  Linux
/dev/sda6           19590       30401    86847358+   7  HPFS/NTFS


Code: Select all
warren@phobos ~ $ cat /boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default      0

## Graphical boot menu location
gfxmenu=/boot/gfxmenu/default.message

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      10

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title      Windows 95/98/NT/2000
# root      (hd0,0)
# makeactive
# chainloader   +1
#
# title      Linux
# root      (hd0,1)
# kernel   /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda3 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Linux Mint 6, kernel 2.6.27-11-generic
root      (hd0,2)
kernel      /boot/vmlinuz-2.6.27-11-generic root=/dev/sda3 ro quiet splash
initrd      /boot/initrd.img-2.6.27-11-generic
quiet

#title      Linux Mint 6, kernel 2.6.27-11-generic (recovery mode)
#root      (hd0,2)
#kernel      /boot/vmlinuz-2.6.27-11-generic root=/dev/sda3 ro single
#initrd      /boot/initrd.img-2.6.27-11-generic
#
#title      Linux Mint 6, kernel 2.6.27-7-generic
#root      (hd0,2)
#kernel      /boot/vmlinuz-2.6.27-7-generic root=/dev/sda3 ro quiet splash
#initrd      /boot/initrd.img-2.6.27-7-generic
#quiet
#
#title      Linux Mint 6, kernel 2.6.27-7-generic (recovery mode)
#root      (hd0,2)
#kernel      /boot/vmlinuz-2.6.27-7-generic root=/dev/sda3 ro single
#initrd      /boot/initrd.img-2.6.27-7-generic
#
#title      Linux Mint 6, memtest86+
#root      (hd0,2)
#kernel      /boot/memtest86+.bin
#quiet
#
### END DEBIAN AUTOMAGIC KERNELS LIST

title      Windows Vista
rootnoverify   (hd0,5)
savedefault
makeactive
chainloader   +1

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
wcselby
Level 1
Level 1
 
Posts: 5
Joined: Tue Dec 30, 2008 1:34 am

Linux Mint is funded by ads and donations.
 

Re: Dual boot Vista and Mint, problems after kernel upgrade

Postby wcselby on Sun Mar 01, 2009 4:13 pm

Doh! I just solved it. I found something online that said sometimes Vista will install the BOOTMGR on a separate partition from itself, especially if you've installed Vista to an extended partition. So I changed the line "rootnoverify (hd0,5)" to "rootnoverify (hd0,0)" (which is my Dell Utility partition which is also marked bootable in the fdisk -l output) and it booted up into Vista just the way it was doing before the kernel upgrade. For reference, here's the complete boot stanza:

Code: Select all
title      Windows Vista
rootnoverify   (hd0,0)
savedefault
makeactive
chainloader   +1


Everything else from the fdisk -l output and the /boot/grub/menu.lst files is the same.

Hopefully I'll save someone else some grief... :)
wcselby
Level 1
Level 1
 
Posts: 5
Joined: Tue Dec 30, 2008 1:34 am

Re: Dual boot Vista and Mint, problems after kernel upgrade

Postby darco on Thu Mar 05, 2009 10:38 pm

Upgraded to 27-11 and all is well....I dual boot too and no issues...

darco
darco
Level 3
Level 3
 
Posts: 166
Joined: Sat May 24, 2008 5:03 pm


Return to Installation & Boot

Who is online

Users browsing this forum: mgold1, mhbell, Resistor and 13 guests