Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Windows XP, Gentoo, and Grub
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
coondog
n00b
n00b


Joined: 28 Sep 2003
Posts: 69
Location: Tallahassee, Florida

PostPosted: Wed Nov 26, 2003 4:44 am    Post subject: Windows XP, Gentoo, and Grub Reply with quote

I have a desktop with two hard drives. My linux one being my primary ide and my windows being secondary. I have tried to use LILO, but for some reason won't boot that partition. It doesn't even give me an error, it just hangs.

I then tried to use GRUB as a boot manager. I think i'll stick with it ... like it better, but anyways, it does the samething and I know that my grub.conf is setup right, any ideas. I think it has something to do with the fact that Windows XP needs to put some files of it's own on the primary hard disk in order to be able to boot.

Any Ideas Anyone please help !!!
Back to top
View user's profile Send private message
whatalotta
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2003
Posts: 114
Location: Union City, CA

PostPosted: Wed Nov 26, 2003 6:20 am    Post subject: Reply with quote

I think windows needs to be installed within the first (1kbytes?), on the first HD, or it will not boot up properly. I think I remember reading that someplace. Not exactly sure what the space limitation is before it, but I know it's small. You might want to swap HD postions and reconfigure. Put grub on the MBR of the Windows drive and try again.
Back to top
View user's profile Send private message
porter
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 95

PostPosted: Wed Nov 26, 2003 10:20 am    Post subject: Reply with quote

To solve this problem, you have to describe you problem more detailed. It would be very useful, if you described, which error message occurs when grub hangs.
_________________
no pain, no gain
Back to top
View user's profile Send private message
Pubare
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2003
Posts: 81
Location: Lafayette, LA

PostPosted: Wed Nov 26, 2003 11:00 am    Post subject: Reply with quote

Are the hard drives on seperate IDE channels, or did you mean the XP drive is a slave? Did you install grub to the primary master or MBR or elsewhere? Post your grub.conf as well just to be on the safe side... Do you get the grub prompt, an error message, or nothing at all? Are both drives still active in fdisk?
Back to top
View user's profile Send private message
nsahoo
l33t
l33t


Joined: 17 Jul 2003
Posts: 618

PostPosted: Wed Nov 26, 2003 5:04 pm    Post subject: Reply with quote

I have exactly the same problem, but, I use lilo. When I changed the lilo.conf to

Code:

...

other=/dev/hda2
   optional
   label=WinXP

other=/dev/hdb2
   optional
   label=NewWinXP


and ran lilo, and rebooted, I saw NewWinXP in the boot menu, but, when I hit enter on it, it didn't do anything just kept showing me the same boot menu.
Back to top
View user's profile Send private message
NSpacer
n00b
n00b


Joined: 31 Mar 2003
Posts: 72
Location: Frisco, TX, USA

PostPosted: Wed Nov 26, 2003 8:09 pm    Post subject: From what I remember reading somewhere... Reply with quote

I think I recall seeing that you want your bootloader on the main drive, but Windows on it as well. And you want Linux on the secondary drive.

I could be remembering things incorrectly.
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Wed Nov 26, 2003 10:52 pm    Post subject: Reply with quote

Yep that's definitely the problem. Windows has to live on the first disk and Linux on the second one. The way it works is that Windows is stupid and Linux is clever.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
nsahoo
l33t
l33t


Joined: 17 Jul 2003
Posts: 618

PostPosted: Thu Nov 27, 2003 4:09 am    Post subject: Reply with quote

my bad luck i guess then. but, i think you can make your comp boot from the secondary disk by changing the bios setting just before booting, is that right? it's a pain, but, not as bad as having to open the case and switch disks.
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Nov 27, 2003 5:00 am    Post subject: Reply with quote

AFAIK this will not work unless there is a master boot record at the begining of the second disk, but windows puts the mbr on the first disk (which is why it sometimes messes up your boot loader after a re-install). Unless you can get Windows to add it's mbr to the second disk I think you'll have to get the screwdriver out. Anyway taking your computer to bits isn't a pain, it's good fun :wink:
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Rodent
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2003
Posts: 81
Location: Noblesville, Indiana

PostPosted: Thu Nov 27, 2003 8:41 pm    Post subject: Reply with quote

I didn't really read this hole thread as I don't have time but,

for grub if Windows is on a slave drive you need to use the map commands, here see mine
Code:
title=Windows XP
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
makeactive
chainloader (hd1,0)+1

This makes windows think it is on the first disk

see 'info grub' for all the information on setting it up proper like

Hopes this helps and have a nice thanksgiving
Back to top
View user's profile Send private message
coondog
n00b
n00b


Joined: 28 Sep 2003
Posts: 69
Location: Tallahassee, Florida

PostPosted: Fri Nov 28, 2003 4:29 pm    Post subject: Reply with quote

that's awesome thank you for your help ...
one other thing I can't quite figure out is, my time on my laptop keeps displaying 5 hours behind but when i type date -u then it works just fine ... how do i setup my computer for the UTC time ?
Back to top
View user's profile Send private message
Rodent
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2003
Posts: 81
Location: Noblesville, Indiana

PostPosted: Fri Nov 28, 2003 6:11 pm    Post subject: Reply with quote

To set up your clock for UTC time you need to first set your time zone, I quote from the install guide:
Quote:
14. Setting your time zone

Now you need to set your time zone.

Look for your time zone (or GMT if you are using Greenwich Mean Time) in /usr/share/zoneinfo. Then, make a symbolic link to /etc/localtime by typing:

Code listing 14.1:
Code:
Creating a symbolic link for time zone

# ln -sf /usr/share/zoneinfo/path/to/timezonefile /etc/localtime

Then you need to make sure your rc.conf is configured to UTC time, again I quote from the install guide:
Quote:
22. Final steps: Configure Basic Settings (including the international keymap setting)

Code listing 22.1: Basic Configuration
Code:

# nano -w /etc/rc.conf

Follow the directions in the file to configure the basic settings. All users will want to make sure that CLOCK is set to his/her liking. International keyboard users will want to set the KEYMAP variable (browse /usr/share/keymaps to see the various possibilities).


Now your hardware clock should be UTC but 'date' should display your local time.

Finally if all that is correctly configured it is most likely just your time battery failing. Its just a watch battery so if it is like 3 years old it is very likely. Don't sweat it most of the time the manufactor makes this a easy and well documented task that allows you to go out and about to a local radio shack or the such.
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