LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-19-2005, 03:43 PM   #1
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Rep: Reputation: 30
Dual boot question W2K


Ladies and gentlemen,

After searching the ussual dual boot grub threads nothing seems to help this time around. I'm sure its simple however no matter what I set in the menu.lst for the w2k partition it does not boot. The Debian partition boots just fine

Output as follows for $ fdisk -l

Disk /dev/hdc: 80.0 GB, 80054059008 bytes
16 heads, 63 sectors/track, 155114 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 107897 54379993+ 7 HPFS/NTFS
/dev/hdc2 107897 155114 23797400 f W95 Ext'd (LBA)
/dev/hdc5 * 107897 153064 22764073+ 83 Linux
/dev/hdc6 153064 155104 1028128+ 82 Linux swap / Solaris
/dev/hdc7 155105 155114 5008+ 83 Linux

Disk /dev/hde: 20.4 GB, 20490559488 bytes
16 heads, 63 sectors/track, 39703 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hde1 * 1 39703 20010280+ 83 Linux

Disk /dev/hdf: 20.4 GB, 20490559488 bytes
16 heads, 63 sectors/track, 39703 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdf1 1 39703 20010280+ 83 Linux


Output as follows for menu.lst

title Debian GNU/Linux, kernel 2.6.12-1-k7
root (hd0,4)
kernel /boot/vmlinuz-2.6.12-1-k7 root=/dev/hdc5 ro
initrd /boot/initrd.img-2.6.12-1-k7
savedefault
boot

title Debian GNU/Linux, kernel 2.6.12-1-k7 (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.12-1-k7 root=/dev/hdc5 ro single
initrd /boot/initrd.img-2.6.12-1-k7
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-1-386
root (hd0,4)
kernel /boot/vmlinuz-2.6.8-1-386 root=/dev/hdc5 ro
initrd /boot/initrd.img-2.6.8-1-386
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-1-386 (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.8-1-386 root=/dev/hdc5 ro single
initrd /boot/initrd.img-2.6.8-1-386
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdc1
title Microsoft Windows 2000 Professional
rootnoverify (hd2,0)
makeactive
chainloader +1
map (hd0) (hd2)
map (hd2) (hd0)

the w2k partition is on /dev/hdc1 hense the (hd2,0)
does the three bootable partitions make conflict?

thanks in advance!!!

Last edited by H2O-linux; 11-19-2005 at 03:45 PM.
 
Old 11-19-2005, 04:00 PM   #2
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Re: Dual boot question W2K

You have hdc, hdd and hdf (does this imply six hard-drives??), but what happened to hda and hdb?

Quote:
Originally posted by H2O-linux

title Debian GNU/Linux, kernel 2.6.12-1-k7
root (hd0,4)
kernel /boot/vmlinuz-2.6.12-1-k7 root=/dev/hdc5 ro
initrd /boot/initrd.img-2.6.12-1-k7
savedefault
boot

.....

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdc1
title Microsoft Windows 2000 Professional
rootnoverify (hd2,0)
makeactive
chainloader +1
map (hd0) (hd2)
map (hd2) (hd0)
The Debian installation is also on hdc, but it is being listed as (hd0,4). Have you tried using (hd0,0) for Windows (and skipping the virtual drive swapping)?

Quote:
the w2k partition is on /dev/hdc1 hense the (hd2,0)
does the three bootable partitions make conflict?
Is (hd2,0) the actual original automatic value, or did you change it?

It would be useful to have explicit information from you how many of what kind of hard-drives you have connected on what controllers. Usually just 2 IDE drives on master and slave...
 
Old 11-19-2005, 04:04 PM   #3
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Maybe you could try without the map commands, and see if that works? Just to isolate where exactly the problem is...

Do you get any kind of error message?
 
Old 11-19-2005, 04:19 PM   #4
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Original Poster
Rep: Reputation: 30
hde and hdf are actually connected to an onboard raid controller. Debian just thinks they are regular ide connectors which they phicicaly are.

hda and hdb are the cdrom and dvd player.

There are 4 hard drives in the system.

I also tried removing the mapping lines.

Still says hdc1 is not a valid partition.

Last edited by H2O-linux; 11-19-2005 at 04:21 PM.
 
Old 11-20-2005, 02:24 PM   #5
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Since it won't hurt to try (as long as you backup the menu list of course), try this out for the Windows entry:
Code:
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdc1
title Microsoft Windows 2000 Professional
rootnoverify (hd0,0)
makeactive
chainloader +1
The reason I suggest this is that, according to the combined info from fdisk and menu.lst, your hdc is (hd0), on which you have both Win2kPro and Debian installed. Since GRUB is booting Debian using (hd0,4), and Win2k is on the first partition of that same drive, then logically the Win entry should be (hd0,0). Since that is the first drive, Windows doesn't need to be fooled by a disk-swapping technique.

If it doesn't help, write down exactly what error message GRUB is giving, maybe that can lead somewhere.


Hth,
Mike
 
Old 11-20-2005, 07:24 PM   #6
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Original Poster
Rep: Reputation: 30
Thank you, I will give that a try!
 
Old 11-20-2005, 10:21 PM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
How did you install w2k out there on hdc1? I seem to remember - but don't quote me - that Windows does not like to boot from anything other than the first two harddrives. That doesn't say it won't, just that "it doesn't like to". I'm not even 100% sure about this thought. Windows may be perfectly happy on a high numbered drive and I'm just remembering wrong.

If you did a native install of w2k to hdc1 then I'm not sure what your problem might be. But if you imaged a w2k install off some other disk or partition with Ghost, TrueImage, etc., and then restored to hdc1 then you might need to change your boot.ini file. Were this the case, I'd expect some terse and non-informative message like "OS not found" if you were booting from a Windows "standard" MBR. I don't know what the symptoms would be when attempting to boot via GRUB. Are you getting any error messages?
 
Old 11-21-2005, 01:39 AM   #8
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Indeed, it may very well be that Windows *is* booting (i.e. grub already exited and everything), and that sth. is going wrong there. Windows is known not to give much useful error messages in that case
 
Old 11-21-2005, 01:57 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,287

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
The /dev/hdc? issue is merely because it is on the second (E)IDE interface.
Grub sees the same disk as hd0.

Windows requires that the system partition reside on a primary partition on the (BIOS) primary boot disk - nothing more. Sometimes we have to use mapping to convince it to boot - although not in this case.

I concur with michapma - that solution seems the most cogent.
 
Old 11-21-2005, 11:57 AM   #10
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Quote:
Originally posted by syg00
Windows requires that the system partition reside on a primary partition on the (BIOS) primary boot disk - nothing more. Sometimes we have to use mapping to convince it to boot - although not in this case.
After reading this, I agree that this would be the first place to start looking.

I had an issue once where I had a boot manager (XOSL) on my primary boot disk and it was trying to transfer to booting Windows off of a secondary disk. Windows did not like that one bit. It may have been solveable, but after 5 minutes of investigation I just decided to switch the boot order in BIOS (and also moved XOSL to that other disk).

BTW, Windows can boot out of a logical partition. I have two systems that do exactly this. However, if Windows had it's way it surely would not do this. If you want to boot out of a logical partition, you have to "convince" Windows to do it, and it will be kicking, screaming, and fighting you all the way!
 
Old 11-22-2005, 04:17 PM   #11
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Original Poster
Rep: Reputation: 30
Well the screen just hangs with :

Boot 'Microsoft Windows 2000 Professional'

rootnoverify (hd0,0)
makeactive
chainloader +1
 
Old 11-22-2005, 04:52 PM   #12
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
I would need references to see what's going on (I say that as if I really knew what I were talking about, heh), but if you have trime maybe try just "root (hd0,0)" instead of "rootnoverify (hd0,0)".

Try also to verify that your hdc1 (Win2k NTFS) is on a primary partition, and not a logical one. I'm pretty sure it will be, but GRUB apparently can't boot Windows from a logical partition.

Sorry I don't have time to look up more stuff at the moment...
 
Old 11-24-2005, 06:34 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,287

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Let's have a look at the start of that partition - maybe you have hexedit (or equivalent) on Debian. If so, try posting the first screen of output from
Code:
hexedit /dev/hdc1
 
Old 11-24-2005, 07:40 PM   #14
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Original Poster
Rep: Reputation: 30
00000000 EB 52 90 4E 54 46 53 20 20 20 20 00 02 08 00 00 .R.NTFS .....
00000010 00 00 00 00 00 F8 00 00 3F 00 FF 00 3F 00 00 00 ........?...?...
00000020 00 00 00 00 80 00 80 00 B2 8B 7B 06 00 00 00 00 ..........{.....
00000030 04 00 00 00 00 00 00 00 20 16 95 00 00 00 00 00 ........ .......
00000040 F6 00 00 00 01 00 00 00 C1 8C 8D F8 A6 8D F8 4E ...............N
00000050 00 00 00 00 FA 33 C0 8E D0 BC 00 7C FB B8 C0 07 .....3.....|....
00000060 8E D8 E8 16 00 B8 00 0D 8E C0 33 DB C6 06 0E 00 ..........3.....
00000070 10 E8 53 00 68 00 0D 68 6A 02 CB 8A 16 24 00 B4 ..S.h..hj....$..
00000080 08 CD 13 73 05 B9 FF FF 8A F1 66 0F B6 C6 40 66 ...s......f...@f
00000090 0F B6 D1 80 E2 3F F7 E2 86 CD C0 ED 06 41 66 0F .....?.......Af.
000000A0 B7 C9 66 F7 E1 66 A3 20 00 C3 B4 41 BB AA 55 8A ..f..f. ...A..U.
000000B0 16 24 00 CD 13 72 0F 81 FB 55 AA 75 09 F6 C1 01 .$...r...U.u....
000000C0 74 04 FE 06 14 00 C3 66 60 1E 06 66 A1 10 00 66 t......f`..f...f
000000D0 03 06 1C 00 66 3B 06 20 00 0F 82 3A 00 1E 66 6A ....f;. ...:..fj
000000E0 00 66 50 06 53 66 68 10 00 01 00 80 3E 14 00 00 .fP.Sfh.....>...
000000F0 0F 85 0C 00 E8 B3 FF 80 3E 14 00 00 0F 84 61 00 ........>.....a.
00000100 B4 42 8A 16 24 00 16 1F 8B F4 CD 13 66 58 5B 07 .B..$.......fX[.
00000110 66 58 66 58 1F EB 2D 66 33 D2 66 0F B7 0E 18 00 fXfX..-f3.f.....
00000120 66 F7 F1 FE C2 8A CA 66 8B D0 66 C1 EA 10 F7 36 f......f..f....6
00000130 1A 00 86 D6 8A 16 24 00 8A E8 C0 E4 06 0A CC B8 ......$.........
00000140 01 02 CD 13 0F 82 19 00 8C C0 05 20 00 8E C0 66 ........... ...f
00000150 FF 06 10 00 FF 0E 0E 00 0F 85 6F FF 07 1F 66 61 ..........o...fa
00000160 C3 A0 F8 01 E8 09 00 A0 FB 01 E8 03 00 FB EB FE ................
00000170 B4 01 8B F0 AC 3C 00 74 09 B4 0E BB 07 00 CD 10 .....<.t........
00000180 EB F2 C3 0D 0A 41 20 64 69 73 6B 20 72 65 61 64 .....A disk read
00000190 20 65 72 72 6F 72 20 6F 63 63 75 72 72 65 64 00 error occurred.
000001A0 0D 0A 4E 54 4C 44 52 20 69 73 20 6D 69 73 73 69 ..NTLDR is missi
000001B0 6E 67 00 0D 0A 4E 54 4C 44 52 20 69 73 20 63 6F ng...NTLDR is co
000001C0 6D 70 72 65 73 73 65 64 00 0D 0A 50 72 65 73 73 mpressed...Press
--- hdc1 --0x0/0xCF7176600----------------------------------------------
 
Old 11-24-2005, 08:41 PM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,287

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Well that certainly is the NT boot sector record.
Seems like grub isn't transfering control - if you have access to the keyboard, type in "boot" (no quotes) and hit enter" - if it works, add "boot" to the menu.lst for a permanent fix.
This shouldn't be necessary, but try it.

Last edited by syg00; 11-24-2005 at 08:42 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual-Boot with W2k? Boc_Mage Ubuntu 1 09-04-2005 01:40 AM
Dual boot - need it to default to W2k johngregor Linux - Newbie 4 06-17-2004 10:46 PM
Dual boot - W2K and Mandrake 7.1 Harters Linux - Newbie 3 11-05-2001 08:09 PM
Dual-boot W2K/Redhat trianon Linux - Software 2 09-27-2001 07:44 PM
tricky dual boot question--w2k/rh7.1 glock19 Linux - General 3 08-10-2001 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration