Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble with grub
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
chrisashton84
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 192
Location: Peoria, IL (home) Urbana, IL (school)

PostPosted: Tue Mar 09, 2004 2:12 am    Post subject: Trouble with grub Reply with quote

I'm trying to dual-boot Windows 98SE and Gentoo (for gaming, mostly) but my grub config isn't working. This might be the wrong forum, but it could be an amd64 issue (single Opteron 240).

Code:

default 0
timeout 30
splashimage=(hd0,4)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.3
root (hd0,4)
kernel (hd0,4)/kernel-2.6.3 root=/dev/hda6

title=Mandrake Linux
root (hd0,8)
kernel (hd0,8)/boot/vmlinuz-2.6.2-3mdksmp root=/dev/hda9 init=/dev/hda9/boot/initrd-2.6.2-3mdk.img

title=Windows 98SE
root (hd0,0)
chainloader +1


When it boots, it just prints this to the screen:

Code:

  Booting 'Windows 98SE'

root (hd0,0)
 Filesystem type is fat, partition type 0xc
chainloader +1


If I remove the chainloader +1 statement it just goes back to grub when I select Windows. Should I try a different chainloader value, or what? In the meanwhile I'll reinstall the Mandrake bootloader, since it booted Windows just fine. Any ideas?
Back to top
View user's profile Send private message
jhuebel
Retired Dev
Retired Dev


Joined: 01 Mar 2004
Posts: 23
Location: Orange, TX, USA

PostPosted: Tue Mar 09, 2004 3:26 am    Post subject: Reply with quote

Try adding "makeactive" as the next line after "chainloader +1"...
_________________
Jason Huebel
Retired Gentoo Developer (2003-2005)
Back to top
View user's profile Send private message
chrisashton84
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 192
Location: Peoria, IL (home) Urbana, IL (school)

PostPosted: Tue Mar 09, 2004 4:28 am    Post subject: Reply with quote

Thanks, but it didn't work. Just added that line to the text it spits out. Actually I'm pretty sure the text being there isn't an error but Windows hasn't cleared the screen yet. I see the Windows loading screen for just a fraction of a second before it goes back to text. Mandrake's boot didn't work either (Windows loading screen just kept going and going and going). :'( :'( I haven't made a single change to the partition from within Linux! No resizing, reformatting or anything! The only difference is I formatted all the drive as a ton of FAT32 partitions to get Windows to recognize it so it would install, then reformatted the other partitions but I never touched Windows. Why oh why can't I play Second Life? :'(

PS Mandrake SMP is horrible and I've been lucky to have it run for 5 minutes solid. Even the boot disk freezes up. I used LILO in Mandrake (It's what I thought had been working before I installed Grub).

PS PS The system isn't hard frozen, I can Alt+Ctrl+Del and it reboots just fine from where Windows stops working.
Back to top
View user's profile Send private message
chrisashton84
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 192
Location: Peoria, IL (home) Urbana, IL (school)

PostPosted: Wed Mar 10, 2004 2:07 am    Post subject: Reply with quote

Still no luck, any ideas?
Back to top
View user's profile Send private message
NateZ
n00b
n00b


Joined: 05 Feb 2004
Posts: 9
Location: not found.

PostPosted: Wed Mar 10, 2004 2:10 am    Post subject: Reply with quote

just wondering...but why are you using 98SE, especially on an amd64?!?
Back to top
View user's profile Send private message
Joe_H
n00b
n00b


Joined: 26 Feb 2004
Posts: 5
Location: Chicago

PostPosted: Wed Mar 10, 2004 4:08 am    Post subject: Reply with quote

Not why do you have Win98SE on an Opteron 240...

HOW do you have Win98SE working? You mention Mandrake SMP so I think you've got a second Opteron there. If so... how did you ever get Win98SE installed?!?

Grub works fine with AMD64. I believe you have to emerge it static. But I'm doing quite fine multibooting FreeBSD, Gentoo and a few Windows things.

FYI... The Unreal Tournament 2004 demo runs quite well using both of my 240s on Win2K3. Same game does equally well under Gentoo, but I've not got the sound working there yet.

I'll include my grub.conf file here below. I had to
do something a bit odd to get FreeBSD to work. You may want to try that to get Win98SE to work.

Good luck.

/boot/grub/grub.conf

Code:

# Which listing to boot as default.  0 is the first, 1 the second, etc.
 
default 0
 
# How many seconds to wait before the default listing is booted
 
timeout 30
 
# Splash
 
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
 
# Partition 1 - Win2K3 boot loader
 
title=Windows Boot Loader
root (hd0,0)
chainloader +1
 
# Partition 2 - FreeBSD
 
title=FreeBSD
rootnoverify (hd0,1)
chainloader +1
 
# Partition 3 - Gentoo Linux
 
title=Gentoo Linux 2.6.2
#root (hd0,2)
#root=/dev/hda3
kernel (hd0,2)/boot/kernel-2.6.2 root=/dev/hda3
 
title=Gentoo Linux 2.6.3
#root (hd0,2)
#root=/dev/hda3
kernel (hd0,2)/boot/kernel-2.6.3 root=/dev/hda3
 
Back to top
View user's profile Send private message
chrisashton84
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 192
Location: Peoria, IL (home) Urbana, IL (school)

PostPosted: Wed Mar 10, 2004 11:25 pm    Post subject: Reply with quote

Joe_H wrote:
Not why do you have Win98SE on an Opteron 240...

HOW do you have Win98SE working? You mention Mandrake SMP so I think you've got a second Opteron there. If so... how did you ever get Win98SE installed?!?

Grub works fine with AMD64. I believe you have to emerge it static. But I'm doing quite fine multibooting FreeBSD, Gentoo and a few Windows things.



Answer: Mandrake detected the Opteron (it's 10.0 rc3, so that's probably a good thing that it checked for that) but it didn't check to see whether I actually had two processors or not. I don't (single Opteron 240, will have 2 when I've got some extra cash) but it installed the smp kernel anyway.

Anyhow, Mandrake won't boot it either anymore so I'm guessing that the Windows is borked. Keep in mind that in the past week I've installed Windows at least 4 times. I don't want to do it again. I don't know why this would happen - I never, not once, accessed it's partition through linux, not once. What's up with this?
Oh, and any tips on how to install 98 without having to repartition the entire drive fat32? I've never had it get past checking the hard drive at the very beginning of install if any partition isn't genuine FDISK & format. It always borks if I've say used Mandrake's partitioning tool during install to make a FAT32 to install on.
I'm not willing to reinstall everything again I to to get this working (ie linux). Sorry, but I can't spend this much time getting Linux to work just to risk it overwriting Windows. Give me a fully working Wine with support for all the newest games and it's a possibility that I could forego Windows completely, but right now if I have to remove linux to reinstall Windows, there's a very good chance linux might not come back... so please help!!

PS I've been using linux for about 5 years now, and Gentoo for around 2-3 so it's not like I'm just trying linux out. I've seen what it can offer me, which is a decently stable environment (though I came back from class and I had to hard-reboot as xscreensaver had frozen, and don't get me started on Mandrake's stability) with the newest fastest programs that I need and none that I don't. But Windows offers decent stability (yes it's 98SE but it runs for days on end if I don't push it really hard) and most important the games the rest of my friends play.
Back to top
View user's profile Send private message
Joe_H
n00b
n00b


Joined: 26 Feb 2004
Posts: 5
Location: Chicago

PostPosted: Fri Mar 12, 2004 7:29 pm    Post subject: Reply with quote

Your xscreensavers locking up too, huh? It bugs me since I'm inclined to believe it's a graphics driver issue.

Well. Your Linux experience surpasses mine. My _Unix_ experience is deep and long. But it's mainly been Solaris these last few years.

I'm not certain I can help that much. Forgive the obvious things you already know. You might learn more from others correcting my misunderstandings. But here goes...

First, the obvious. You really should consider WinXP or beyond. But if you were working fine with Win98 before, then this shouldn't be necessary.

My last box was a Win98/Win2K/FreeBSD multiboot. I left a bit of space for Linux but never really got around to it.

On that box, I used BootMagic/PartitionMagic. BootMagic is similar to Grub in the way it is homed on a particular partition/OS. If you wipe that partition or OS, you lose your ability to boot. (I found that out the hard way.)

Now I've got a much stranger configuration:
Win2K3 on IDE; Win2K3 on SATA RAID; WinXP on SATA RAID; Gentoo on IDE; FreeBSD on IDE. Eventually, I'll shift the unices to the SATA RAID whenever support exists for this.

But I've got a number of failsafes for booting. I can use Windows stuff to reset my MBR if I so choose. I can quickly reinstall FreeBSD's bootloader. I can use the LiveCDs for Linux and fix grub. That is to say, I have an independent mechanism to get to each OS (or family thereof) should any single bootloader fail.

However... at several steps of my install I temporarily lost ability to boot to previous stuff. I didn't lose any OSs. I just had to rework bootloaders, etc., to get it all working together.

From my experience, I believe that unless you're _actively_ doing stuff you typically don't lose data or partitions, just the ability to access them or boot them.

So... I don't think Linux is overwriting or corrupting Windows. The issue seems to be Grub overwriting the MBR. Whatever bootloader you use, it has to work with Win98 (though right now I cannot figure out why Grub and LILO aren't working for you). If you can spare the change, look into PartitionMagic/BootMagic. I know that'll work for you. Or you can try the shareware PartitionStar/BootStar.

A huge benefit to BootMagic (and possibly BootStar) is that you can create a rescue disk to reset the MBR back to it if Grub or LILO fail you.

Oh yeah. One other possibility... I corrupted the Win2K installation by splitting the former Win98 partition in two (that's when I lost BootMagic). This really confused the BR and related files over there since the partition addressing they were using was rendered incorrect. I couldn't correct it. Maybe editing a file shoved it past a boundary?!? But again, I didn't lose the data. I just had to wait until I could access that partition from a working, bootable OS.

Maybe if you're creating partitions _after_ installing Win98, you're confusing it too. Something like PartitionMagic knows what to "fix" in the Windows installs when doing this. Linux fdisk's of course won't touch anything in Windows installs.

Good luck.
Back to top
View user's profile Send private message
GoingDown
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jan 2004
Posts: 117
Location: Finland

PostPosted: Sat Mar 13, 2004 6:40 am    Post subject: Re: Trouble with grub Reply with quote

chrisashton84 wrote:

root (hd0,0)
Filesystem type is fat, partition type 0xc
chainloader +1

If I remove the chainloader +1 statement it just goes back to grub when I select Windows. Should I try a different chainloader value, or what? In the meanwhile I'll reinstall the Mandrake bootloader, since it booted Windows just fine. Any ideas?


This might happen because either your vfat partition is hidden, or there is more than one unhidden primary partitions in your drive. Try following :

Code:

title=Windows 98SE
root (hd0,0)
hide (hd0,xxxxx) --- hide all other primary partitions in your drive, except extended partition
unhide (hd0,0)
makeactive (hd0,0)
chainloader +1
Back to top
View user's profile Send private message
get sirius
Guru
Guru


Joined: 27 Apr 2002
Posts: 316
Location: Madison, WI

PostPosted: Sat Mar 13, 2004 12:43 pm    Post subject: Reply with quote

Best forget windows 98; it will not work on an SMP machine, even if it's just, as in your present case, SMP-capable. Windows 2000 Pro will work just fine. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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