rhauff
June 16th, 2012, 04:28 PM
I have a triple boot setup on a Compaq Presario CQ60. The problem is each time Ubuntu (12.04) updates the kernel, Windows XP will not boot.
I am able to fix it by running "Boot Repair", selecting advanced, then checking "Restore MBR", then apply & let it finish. Next I run "Boot Repair" again, Advanced, and "Reinstall Grub" and apply.
How can I fix this so I don't have to go through all this each time I want to boot Windows? (Which I do only about as frequently as the kernel updates ;-) )
Here is the OS prober portion of my grug.cfg:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 3AC0532DC052EF1F
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "LinuxMint GNU/Linux, with Linux 3.2.0-2-486 (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-3.2.0-2-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro splash quiet
initrd /boot/initrd.img-3.2.0-2-486
}
menuentry "LinuxMint GNU/Linux, with Linux 3.2.0-2-486 (recovery mode) (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-3.2.0-2-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro single splash
initrd /boot/initrd.img-3.2.0-2-486
}
menuentry "LinuxMint GNU/Linux, with Linux 3.0.0-1-486 (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-3.0.0-1-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro splash quiet
initrd /boot/initrd.img-3.0.0-1-486
}
menuentry "LinuxMint GNU/Linux, with Linux 3.0.0-1-486 (recovery mode) (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-3.0.0-1-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro single splash
initrd /boot/initrd.img-3.0.0-1-486
}
menuentry "LinuxMint GNU/Linux, with Linux 2.6.39-2-486 (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-2.6.39-2-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro splash quiet
initrd /boot/initrd.img-2.6.39-2-486
}
menuentry "LinuxMint GNU/Linux, with Linux 2.6.39-2-486 (recovery mode) (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-2.6.39-2-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro single splash
initrd /boot/initrd.img-2.6.39-2-486
}
### END /etc/grub.d/30_os-prober ###
I am able to fix it by running "Boot Repair", selecting advanced, then checking "Restore MBR", then apply & let it finish. Next I run "Boot Repair" again, Advanced, and "Reinstall Grub" and apply.
How can I fix this so I don't have to go through all this each time I want to boot Windows? (Which I do only about as frequently as the kernel updates ;-) )
Here is the OS prober portion of my grug.cfg:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 3AC0532DC052EF1F
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "LinuxMint GNU/Linux, with Linux 3.2.0-2-486 (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-3.2.0-2-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro splash quiet
initrd /boot/initrd.img-3.2.0-2-486
}
menuentry "LinuxMint GNU/Linux, with Linux 3.2.0-2-486 (recovery mode) (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-3.2.0-2-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro single splash
initrd /boot/initrd.img-3.2.0-2-486
}
menuentry "LinuxMint GNU/Linux, with Linux 3.0.0-1-486 (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-3.0.0-1-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro splash quiet
initrd /boot/initrd.img-3.0.0-1-486
}
menuentry "LinuxMint GNU/Linux, with Linux 3.0.0-1-486 (recovery mode) (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-3.0.0-1-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro single splash
initrd /boot/initrd.img-3.0.0-1-486
}
menuentry "LinuxMint GNU/Linux, with Linux 2.6.39-2-486 (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-2.6.39-2-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro splash quiet
initrd /boot/initrd.img-2.6.39-2-486
}
menuentry "LinuxMint GNU/Linux, with Linux 2.6.39-2-486 (recovery mode) (on /dev/sda3)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d
linux /boot/vmlinuz-2.6.39-2-486 root=UUID=dd0a1cfb-bcf7-4ab9-b462-933d34b3d04d ro single splash
initrd /boot/initrd.img-2.6.39-2-486
}
### END /etc/grub.d/30_os-prober ###