Help to boot windows from a extended partition

Alexandra Zaharia f0rg3r at gmail.com
Thu Mar 6 19:22:25 UTC 2008


On Thu, Mar 6, 2008 at 8:45 PM, Breno Batista Machado
<breno at brenomachado.org> wrote:
>
>
> fsI have installed ubuntu hardy heron in my primary partition (sda1) and
> windows in a extended partition (sda5) and i cant boot from grub in my
> windows.
> can anyone help me?
>
> In sda1 was installed windows vista, so i formatted it and installed ubuntu,
> after this i cant login anymore in windows.
>
> thank's
>
> (sorry my bad english)
> my partitions:
>    + sda1 - reiserfs     (ubuntu)
>    + sda2 - extended
>    +--+ sda5 - ntfs        (Windows XP)
>    +--+ sda6 - ntfs        (Files)
>    +--+ sda7 - ntfs        (Files)
>    +--+ sda8 - ntfs        (Files)
>    +--+ sda9 - reiserfs   (/home)>
>    +--+ sda10 - linux-swap
>
> follow my menu.lst:
>
>
> default 0
> timeout 10
>
> title Ubuntu hardy (development branch), kernel 2.6.24-11-generic
> root (hd0,0)
> kernel /boot/vmlinuz-2.6.24-11-generic
> root=UUID=c9d8dc9d-7daf-400b-b163-c96411e8b515 ro quiet splash
> initrd /boot/initrd.img-2.6.24-11-generic
>  quiet
>
> title Ubuntu hardy (development branch), kernel 2.6.24-11-generic (recovery
> mode)
> root (hd0,0)
> kernel /boot/vmlinuz-2.6.24-11-generic
> root=UUID=c9d8dc9d-7daf-400b-b163-c96411e8b515 ro single
> initrd /boot/initrd.img-2.6.24-11-generic
>
> title Ubuntu hardy (development branch), kernel 2.6.24-11-386
> root (hd0,0)
> kernel /boot/vmlinuz-2.6.24-11-386
> root=UUID=c9d8dc9d-7daf-400b-b163-c96411e8b515 ro quiet splash
> initrd /boot/initrd.img-2.6.24-11-386
>  quiet
>
> title Ubuntu hardy (development branch), kernel 2.6.24-11-386 (recovery
> mode)
> root (hd0,0)
> kernel /boot/vmlinuz-2.6.24-11-386
> root=UUID=c9d8dc9d-7daf-400b-b163-c96411e8b515 ro single
> initrd /boot/initrd.img-2.6.24-11-386
>
> title Ubuntu hardy (development branch), memtest86+
> root (hd0,0)
> kernel /boot/memtest86+.bin
> quiet
>
> title Windows XP
> root (hd0,5)
> chainloader +1
> makeactive
>

Hello Breno,

If indeed your Windows XP partition is on /dev/sda5, then you should
modify the section:

title Windows XP
root (hd0,5)
chainloader +1
makeactive

into

title Windows XP
root (hd0,4)
chainloader +1
makeactive

This is because your first HDD (be it sda) is known as hd0. If you
have a 2nd HDD (be it sdb) it will be known as hd1 and so on. The same
(the counting from 0 stuff) applies to partitions: sda1=(hd0,0),
sda99=(hd0,98) etc.

So edit as root /boot/grub/menu.lst with the modification I listed
above, save, reboot and pray :-)

HTH,

Alex.




More information about the ubuntu-users mailing list