You are not logged in.
Greetings,
after upgrading GRUB Legacy to GRUB2, Windows Xp won't boot anymore. It hangs during splash screen, with progress bar eternally moving.
Windows is on /dev/sda1 and it is correctly identified by os-prober. Here's my /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 ###
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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 load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 4d869aa8-05d4-4687-9905-9f9278f47f6f
else
search --no-floppy --fs-uuid --set=root 4d869aa8-05d4-4687-9905-9f9278f47f6f
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=it_IT
insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=7
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch GNU/Linux, con Linux lts kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-lts kernel-true-4d869aa8-05d4-4687-9905-9f9278f47f6f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 ed003ac9-b3ab-4cef-8772-59b4da6f6688
else
search --no-floppy --fs-uuid --set=root ed003ac9-b3ab-4cef-8772-59b4da6f6688
fi
echo 'Caricamento Linux lts kernel...'
linux /vmlinuz-linux-lts root=UUID=4d869aa8-05d4-4687-9905-9f9278f47f6f ro
echo 'Caricamento ramdisk iniziale...'
initrd /initramfs-linux-lts.img
}
menuentry 'Arch GNU/Linux, with Linux lts kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-lts kernel-fallback-4d869aa8-05d4-4687-9905-9f9278f47f6f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 ed003ac9-b3ab-4cef-8772-59b4da6f6688
else
search --no-floppy --fs-uuid --set=root ed003ac9-b3ab-4cef-8772-59b4da6f6688
fi
echo 'Caricamento Linux lts kernel...'
linux /vmlinuz-linux-lts root=UUID=4d869aa8-05d4-4687-9905-9f9278f47f6f ro
echo 'Caricamento ramdisk iniziale...'
initrd /initramfs-linux-lts-fallback.img
}
menuentry 'Arch GNU/Linux, con Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-4d869aa8-05d4-4687-9905-9f9278f47f6f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 ed003ac9-b3ab-4cef-8772-59b4da6f6688
else
search --no-floppy --fs-uuid --set=root ed003ac9-b3ab-4cef-8772-59b4da6f6688
fi
echo 'Caricamento Linux core repo kernel...'
linux /vmlinuz-linux root=UUID=4d869aa8-05d4-4687-9905-9f9278f47f6f ro
echo 'Caricamento ramdisk iniziale...'
initrd /initramfs-linux.img
}
menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-4d869aa8-05d4-4687-9905-9f9278f47f6f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 ed003ac9-b3ab-4cef-8772-59b4da6f6688
else
search --no-floppy --fs-uuid --set=root ed003ac9-b3ab-4cef-8772-59b4da6f6688
fi
echo 'Caricamento Linux core repo kernel...'
linux /vmlinuz-linux root=UUID=4d869aa8-05d4-4687-9905-9f9278f47f6f ro
echo 'Caricamento ramdisk iniziale...'
initrd /initramfs-linux-fallback.img
}
### 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+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Microsoft Windows XP Home Edition (su /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-72B8157DB81540D1' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 72B8157DB81540D1
else
search --no-floppy --fs-uuid --set=root 72B8157DB81540D1
fi
drivemap -s (hd0) ${root}
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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###Windows bootloader is chainloaded correctly, in fact I manage to get to the splash screen, then it freezes.
Shutting down the machine makes Windows ask if I want to boot in safe mode, which makes no difference.
I tried different configuration such as the one reported in the wiki, but to no avail:
menuentry "Microsoft Windows XP" {
insmod part_msdos
insmod ntfs
insmod search_fs_uuid
insmod ntldr
search --fs-uuid --no-floppy --set=root 72B8157DB81540D1
ntldr /ntldr
}Reverting to GRUB Legacy corrected the problem, as this is the second time I'm experiencing it. The first time occurred some time ago, after an upgrade of GRUB2, which I used with no problems for years.
Offline
Have you tried automatically generating a .cfg?
# pacman -S grub-bios os-prober
# grub-install --target=i386-pc --recheck --debug /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfgEdit: Is Windows installed on a different drive than /dev/sda?
https://wiki.archlinux.org/index.php/GRUB#With_Windows
Last edited by DSpider (2012-08-25 13:11:17)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Try basic chainloading?
Something like:
menuentry "Windows XP (Why do I still have this horrible thing installed?)" {
set root=(hd0,1)
chainloader +1
}Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Have you tried automatically generating a .cfg?
# pacman -S grub-bios os-prober # grub-install --target=i386-pc --recheck --debug /dev/sda # grub-mkconfig -o /boot/grub/grub.cfg
That's exactly what I did.
Edit: Is Windows installed on a different drive than /dev/sda?
No. It's in /dev/sda1 and there isn't another drive.
Try basic chainloading?
Something like:menuentry "Windows XP (Why do I still have this horrible thing installed?)" { set root=(hd0,1) chainloader +1 }
Already tried, same consequence. :-(
Thanks for the answers. I've searched a lot the web not finding any similar behaviour, because normally a bad configurated GRUB2 isn't able to initialize the Windows bootloader at all. Here's different.
As I said, the first time I experienced this was after GRUB2 upgrade, and that makes me suspect on a bug.
The modular behaviour of GRUB2 could be related to the issue? In particular some video modules loaded by default by GRUB2 in the "headers" section?
Is there a way to inspect exactly at which point Windows startup freezes?
Offline
You should try mount the W$hit partition before run # grub-mkconfig -o /boot/grub/grub.cfg
Offline
You should try mount the W$hit partition before run # grub-mkconfig -o /boot/grub/grub.cfg
No consequences. :-(
Offline
Can you chainload from the Arch Linux install media?
Press Tab over the "Boot existing OS" entry and change it to "hd1 0" (if it's running from a USB stick, because the USB stick would be hd0 0 - the first in the BIOS boot order).
Does Windows XP start up then?
- If it doesn't, then it's not GRUB's fault. It means that your Windows install got screwed (a virus?), and we can't help you with that because this isn't the Windows support forum.
- If it does start, then you should probably look into downgrading GRUB. Have a look in the pacman log (/var/log/pacman.log) for when GRUB was last updated and downgrade to that version.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Can you chainload from the Arch Linux install media?
Press Tab over the "Boot existing OS" entry and change it to "hd1 0" (if it's running from a USB stick, because the USB stick would be hd0 0 - the first in the BIOS boot order).
Does Windows XP start up then?
- If it doesn't, then it's not GRUB's fault. It means that your Windows install got screwed (a virus?), and we can't help you with that because this isn't the Windows support forum.
- If it does start, then you should probably look into downgrading GRUB. Have a look in the pacman log (/var/log/pacman.log) for when GRUB was last updated and downgrade to that version.
Before reading this post, I gave up and switched to BURG, taken from AUR. Now Windows boots normally, confirming that isn't its fault, and there is no problem in Windows installation.
Anyway, I'm going to try your good idea about install media and let you know.
P.S. Should I tag this as "solved"? ![]()
Offline