Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Win2k after Linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ee99ee2
Guru
Guru


Joined: 18 Jun 2002
Posts: 307
Location: Murfreesboro, TN, USA

PostPosted: Tue Jul 09, 2002 3:12 am    Post subject: Win2k after Linux Reply with quote

I installed Gentoo, and was very happy until I started to miss all the crashes, and blue screens, and things not working.... no, actually I just miss Half-Life and Unreal 2003. But that's not the point.....

So I'm happy and all with Gentoo 1.3a. Been using Linux on my desktop for about a month and a half.... been playing with it for about a year... but I need Win2k... so I made it a small 10GB partition on my 2nd HD. Here is the way my HD's are laid out:

Code:
/dev/hde1 - /boot
/dev/hde2 - swap
/dev/hde3 - /
/dev/hdg1 - NTFS partition with Win2k on it right now


Now, I use LILO, b/c I was having major problems with Grub and LILO solved it... plus I like LILO better... don't ask why...

Like I said, I can boot Linux just fine, but when I go to boot Windows, I get this error:

Code:
NTLDR missing...
Press any key to reboot.


Here is my /etc/lilo.conf file:

Code:
menu-scheme=Wb
boot = /dev/hde
prompt
map = /boot/System.map
lba32
delay = 5
vga = normal
        image = /boot/bzImage
        root = /dev/hde3
        label = Gentoo
        read-only
        other = /dev/hdg1
        label = Windows
        table = /dev/hdg



Anybody got any suggestions?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 09, 2002 3:17 am    Post subject: Reply with quote

I'm not sure if you can do this under Lilo, but Windows likes to boot off of the first hard drive. With Grub, you would issue two "map" commands (to swap the second disk with the first disk and vice vesa), and Windows suddenly becomes happy.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
ee99ee2
Guru
Guru


Joined: 18 Jun 2002
Posts: 307
Location: Murfreesboro, TN, USA

PostPosted: Tue Jul 09, 2002 3:19 am    Post subject: Reply with quote

How do I do that? I had grub before, and I wouldn't mind to go back. I always kept getting an Error 21 though... but I was always able to boot off floppy just fine.

I'll try it after I find out how to map the drives....

-ee99ee2
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 09, 2002 3:27 am    Post subject: Reply with quote

Code:
map (hd0) (hd1)
map (hd1) (hd0)


...I think. There's an example in the Grub FAQ (somewhere on the Grub site, and I don't feel like digging up the link).
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
ee99ee2
Guru
Guru


Joined: 18 Jun 2002
Posts: 307
Location: Murfreesboro, TN, USA

PostPosted: Tue Jul 09, 2002 4:15 am    Post subject: Reply with quote

So if Winblows is in (hd1) right now, would I tell it to load (hd0) after I enter the map thing into menu.lst?

-ee99ee2
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 09, 2002 4:20 am    Post subject: Reply with quote

Give Grub the real information, as Grub isn't fooled by itself. ;)

Code:
title=Win2k
rootnoverify (hd1,0)
chainloader +1
map (hd1) (hd0)
map (hd0) (hd1)


That ought to do the trick.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
ee99ee2
Guru
Guru


Joined: 18 Jun 2002
Posts: 307
Location: Murfreesboro, TN, USA

PostPosted: Tue Jul 09, 2002 4:44 am    Post subject: Reply with quote

Well now everthing's messed up:

What should I type at grub>?

Here's what I did and how it turned out:

Code:
grub> root (hd0)
 File system type unknown, using whole disk

grub> setup (hd0)

Error 17: Cannot mount selected partition


It also gives me the same error when I try to setup (fd0). I've tried this with /boot mounted and unmounted. Same error. /boot is there, and everything is in place. It's ext2.

I was able to boot up in "rescue" mode by using the Gentoo boot CD. Then mount / on /mnt/gentoo/ and /boot on /mnt/gentoo/boot. Then chroot /mnt/gentoo /bin/bash and source /etc/profile.

-ee99ee2
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 09, 2002 4:52 am    Post subject: Reply with quote

You should run root() on your /boot partition, and setup your primary boot device (hd0).
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
ee99ee2
Guru
Guru


Joined: 18 Jun 2002
Posts: 307
Location: Murfreesboro, TN, USA

PostPosted: Tue Jul 09, 2002 5:09 am    Post subject: Reply with quote

Now when I boot off the hard drive, I get this:

Code:
GRUB loading, please wait...



I think that's b/c my BIOS reconizes my RAID controller, and not as 2 IDE controllers. But, when I use the boot floppy I made, it boots to grub> prompt and not the menu. What do I do now?

-ee99ee2
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 09, 2002 5:10 am    Post subject: Reply with quote

Re-jumper your hard drives, install Lilo on your Windows disk, and update your fstab? :D
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
ee99ee2
Guru
Guru


Joined: 18 Jun 2002
Posts: 307
Location: Murfreesboro, TN, USA

PostPosted: Tue Jul 09, 2002 5:25 am    Post subject: Reply with quote

I don't know how to install LILO. When I go to "emerge lilo" in the rescue mode thing, it says /boot must be mounted. Boot it mounted at /boot like it says. I've tried remounting it and everything, still asys the same thing.

Also, what did u mean by install LILO on my WINDOWS partition?

-ee99ee2
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 09, 2002 5:29 am    Post subject: Reply with quote

Switch your drives in hardware so that Windows resides on the first disk (either by switching master/slave or swapping cables) and install Lilo into the MBR of that disk. You should already have lilo installed under Gentoo (right?), so you shouldn't have to re-emerge it.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
ee99ee2
Guru
Guru


Joined: 18 Jun 2002
Posts: 307
Location: Murfreesboro, TN, USA

PostPosted: Tue Jul 09, 2002 5:38 am    Post subject: Reply with quote

No, I have grub installed, not LILO. I removed LILO when I tried it yesterday and went back to grub like someone told me I should do.

I'll need to change my fstab and what else if I switch those drives. Is that it?

-ee99ee2
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 09, 2002 5:45 pm    Post subject: Reply with quote

ee99ee2 wrote:
I'll need to change my fstab and what else if I switch those drives. Is that it?


Yeah, and the "root=/dev/..." boot parameter.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
ee99ee2
Guru
Guru


Joined: 18 Jun 2002
Posts: 307
Location: Murfreesboro, TN, USA

PostPosted: Tue Jul 09, 2002 6:07 pm    Post subject: Reply with quote

Okay. Did that. FINALLY got LILO installed. Don't know how I did it, but I'm never going back to grub.

ANYWAY, when I try to boot Winblows, I get the same old error...:

Code:
NTLDR missing...
Press any key to restart.


I've got a major headake over all this. *bangs head on desk* wonder why

-ee99ee2
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20589

PostPosted: Tue Jul 09, 2002 6:15 pm    Post subject: Reply with quote

I forget the filename, but you may have to edit the NT file that points to where
it is installed. After doing the map commands, maybe this is confusing NT?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
ee99ee2
Guru
Guru


Joined: 18 Jun 2002
Posts: 307
Location: Murfreesboro, TN, USA

PostPosted: Tue Jul 09, 2002 6:21 pm    Post subject: Reply with quote

Are you thinking of boot.ini? That's what tells the Windows boot loader what to load. But the problem is I don't want to use the Windows boot loader to load LILO, then load Linux... I want to use LILO to load Windows.... and I know it's possable, because I did it about 2 months ago with Win2k and Debian on this same machine. Only difference was I installed Win2k first, but that shouldn't make much difference, other then make it easier to get things working.

What u all think?

-ee99ee2
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20589

PostPosted: Tue Jul 09, 2002 6:25 pm    Post subject: Reply with quote

Yeah, thats what I was thinking of. You've got me. I've never heard of a way to
boot Windows without using the NTLDR. Did you follow a HOW-TO the last time?

I use Grub to boot and choose linux/win2k. When I select win2k, NTLDR boots
windows.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 09, 2002 6:40 pm    Post subject: Reply with quote

kanuslupus wrote:
I use Grub to boot and choose linux/win2k. When I select win2k, NTLDR boots windows.


Ditto, and remember the boot.ini uses a silly format like multi(0)disk(0)rdisk(0)partition(1)... just change all occurences of disk(1) to disk(0) and you should be good.

BTW, Grub really isn't all that bad. As you said, it's probably your BIOS'es fault. :D
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum