Windows XP
Grub 2
Well, the very day after that post, the problem recurred, almost certainly the result of an update. This time /boot/grub.d/device.map was not the problem: it was there, but os-prober still couldn't find Win XP. I decided it was time to just write a static entry. I created a script /etc/grub.d/29_winxp (so it runs after memtest, but before os_prober), and it looks like this:
The uuid for the Windows drive was found using sudo blkid. It works, and let's hope it's a durable solution.#!/bin/sh -eecho "Adding Windows XP to GRUB 2 menu (29_windxp)" >&2cat << EOFmenuentry "Microsoft Windows XP (on /dev/sda1)" --class windows --class os {insmod part_msdosinsmod ntfsset root='(hd0,1)'search --no-floppy --fs-uuid --set=root 6EC07F71C07F3E81drivemap -s (hd1) (hd0)chainloader +1}EOF
No comments:
Post a Comment