Operating System - Linux
1752572 Members
4615 Online
108788 Solutions
New Discussion юеВ

Dual boot problem debian-windows, strange case

 
SOLVED
Go to solution
test_goraz
Occasional Advisor

Dual boot problem debian-windows, strange case

Hi all, I really your help, just to see what I can not see.
I have installed debian/lenny in dual boot with win/xp ( many times in last 3,5 years ).
Today I installed it again and during installation I got an message "...it seems that it is only os ...blala " but I said ok, it is not problem I will set up it in /boot/grub/menu.lst
I did it many times before.

But today I have some strange situation.
fdisk -l has output:

fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x18d818d7

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1044 8385898+ 7 HPFS/NTFS
/dev/hda2 1045 2609 12570862+ 7 HPFS/NTFS
/dev/hda3 2610 3217 4883760 83 Linux
/dev/hda4 3218 9729 52307640 5 Extended
/dev/hda5 3218 4190 7815591 83 Linux
/dev/hda6 4191 4676 3903763+ 83 Linux
/dev/hda7 4677 4919 1951866 82 Linux swap / Solaris
/dev/hda8 4920 5114 1566306 83 Linux
/dev/hda9 5115 9729 37069956 83 Linux


in my /boot/grub/menu.lst I have ( last lines regarding booting system ... )


## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.22-3-686
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-3-686 root=/dev/hda3 ro
initrd /boot/initrd.img-2.6.22-3-686

title Debian GNU/Linux, kernel 2.6.22-3-686 (single-user mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-3-686 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.22-3-686

### END DEBIAN AUTOMAGIC KERNELS LIST

title WindowsXP
#rootnoverify (hd0,0)
map (hd2) (hd0)
map (hd0) (hd2)
rootnoverify (hd0,0)
makeactive
#chainloader (hd*,*)+1
chainloader +1
boot

....The part regarding windows I added...
and now when I want to boot into windows I get and message " Grub loading stage 2 Read Error " ...and just hung there :(.

I tried many " tricks", googled, used live cd to install grub into hd0, the grub is installed during installation into MBR.

Please if some one know what to, you will help me a lot if you write it here.

With regards,


6 REPLIES 6
Mike Stroyan
Honored Contributor

Re: Dual boot problem debian-windows, strange case

I don't see why you are using map commands.
Do you have multiple hard disks installed?
The rest of your posting looks like you only have one disk, hd0.
test_goraz
Occasional Advisor

Re: Dual boot problem debian-windows, strange case

...just experimenting, I read it on some mailing-list. I have just one disk hda.
Without map command I also cannot boot into into Win/xp
I installed many times in dual boot linux and windows, but this is very strange for me and I do not know what to do.

Kind regards,
Mike Stroyan
Honored Contributor

Re: Dual boot problem debian-windows, strange case

You certainly should NOT use the map commands for your configuration.
Are you getting the same error message when booting the XP partition without the map commands?
test_goraz
Occasional Advisor

Re: Dual boot problem debian-windows, strange case

Thanks for your answers.
I tried and without map commands, and in that case I got after chosing to boot win/xp just flash showing following "

Booting 'windows/xp'
rootnoverfy (hd0,0)
makeactive
chainloader +1

Grub loading stage 2.....

And after this message is flashed everything is returned to grub menu, to starting point, and after grub-timeout linux is ready for boot.

I tried with(out) map commands but I cannot solve it to boot into win/xp. This is strange to me, because I did the same proces many times, and everything was simple, to be honest install system is not anything difficult, but sometimes it can be.

kind regards
Mike Stroyan
Honored Contributor
Solution

Re: Dual boot problem debian-windows, strange case

Your symptoms sound a lot like this discussion-
http://ubuntuforums.org/archive/index.php/t-91050.html

If your most recent install actually wrote grub at the start of the first NTFS partition then you would chainload right back into grub.

This posting may have a cure. I haven't tried it myself-
http://ubuntuforums.org/archive/index.php/t-194340.html

The recovery from backup boot sector is also described here-
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step#NTFS_Boot_sector_recovery
test_goraz
Occasional Advisor

Re: Dual boot problem debian-windows, strange case

Thanks :)

Kind regards