Bug#498439: Grub2 1.96 can't boot Windows xp

wolfman.wu r6aix at 21cn.com
Wed Sep 10 02:20:20 UTC 2008


Package: grub-pc
Version: 1.96+20080724-9

I install the Lenny from netinst.iso(Debian GNU/Linux testing "Lenny" - Official Snapshot i386 NETINST Binary-1 20080908-00:14 )

Problem:
  1. select Lenny item, it can't boot successful.
  2. select XP item, the system can't boot. the error message:

       no such partition

  3. when select XP item at first time, the system can't boot.
     then go back to select the Lenny, the system can't can't boot too. the error message:

        you need to load kernel first

sovlution:
   change in grub.cfg 
   old:
   >     menuentry "Microsoft Windows XP Professional" {
   >      set root=(hd0,0)
   >      chainloader +1
   >     }

   new(the second line been changed):
   >     menuentry "Microsoft Windows XP Professional" {
   >      set root=(hd0,1)
   >                    ^
   >      chainloader +1
   >     }


Enviroment:
  1. I have install dual system in a computer:
       Lenny & Windows XP

  2. My grub.cfg:
        set default=0
        set timeout=5
        set root=(hd0,6)
        search --fs-uuid --set a1eb98f0-719a-4c9c-940e-227a450d8b7c
        if font /share/grub/ascii.pff ; then
          set gfxmode=640x480
          insmod gfxterm
          insmod vbe
          terminal gfxterm
        fi
        set root=(hd0,6)
        search --fs-uuid --set a1eb98f0-719a-4c9c-940e-227a450d8b7c
        insmod png
        if background_image /share/images/desktop-base/debian-blueish-wallpaper-640x480.png ; then
          set color_normal=black/black
          set color_highlight=magenta/black
        else
          set menu_color_normal=cyan/blue
          set menu_color_highlight=white/blue
        fi
        set root=(hd0,3)
        search --fs-uuid --set 662a3e12-57bb-4383-ad41-229725e5e357
        menuentry "Debian GNU/Linux, linux 2.6.26-1-686" {
         linux /boot/vmlinuz-2.6.26-1-686 root=UUID=662a3e12-57bb-4383-ad41-229725e5e357 ro vga=791 
         initrd /boot/initrd.img-2.6.26-1-686
        }
        menuentry "Debian GNU/Linux, linux 2.6.26-1-686 (single-user mode)" {
         linux /boot/vmlinuz-2.6.26-1-686 root=UUID=662a3e12-57bb-4383-ad41-229725e5e357 ro single vga=791
         initrd /boot/initrd.img-2.6.26-1-686
        }
        menuentry "Microsoft Windows XP Professional" {
         set root=(hd0,0)
         chainloader +1
        }

  3. Run fdisk -l /dev/sda  result:
        Disk /dev/sda: 250.0 GB, 250058268160 bytes
        255 heads, 63 sectors/track, 30401 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        Disk identifier: 0x31693168

           Device Boot      Start         End      Blocks   Id  System
        /dev/sda1   *           1        6527    52428096    7  HPFS/NTFS
        /dev/sda2            6528       30282   190812037+   f  W95 Ext'd (LBA)
        /dev/sda3           30283       30401      955867+  83  Linux
        /dev/sda5            6528       13054    52428096    7  HPFS/NTFS
        ............

this is a bug in grub2 ?

Best regards,
wyw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080910/43a8b470/attachment.htm 


More information about the Pkg-grub-devel mailing list