View previous topic :: View next topic |
Author |
Message |
*nix-xtc n00b
Joined: 04 Jun 2003 Posts: 4
|
Posted: Wed Jun 04, 2003 8:54 pm Post subject: just get "GRUB" (Dual boot XP and Gentoo) |
|
|
I tried out Redhat 9, and was sorely disappointed. Time to try Gentoo instead.
Thing is, I have linux installed on a second hard drive, and had dual-booting setup really nicely, using Grub, as outlined here:
http://www.geocities.com/epark/linux/grub-w2k-HOWTO.html
Now, everything just went fine for the install of Gentoo. I installed Grub on /dev/hdb1 or (hd1,0) for Grub. I setup the grub.conf file appropriately.
I did not install Grub into the MBR of the first drive, cuz, well, the above setup worked great for the few days I tinkered with RH 9, and I have the two OS'es living quite separately.
However, when I try to boot into Gentoo, (having followed the procedure given at the URL), what I get onscreen is just:
GRUB
and a flashing cursor, and it just sits.
I was able to boot from the CD, and somehow managed to mount the actual Hard Drive partitions and check things, and everything looked ok. In fact, the very first time out all I got was a black screen, and so when I did boot from CD & mount the HD partitions, I found that bzImage was read-only across the board. Thinking that might be the problem, I maded it executable by the owner (it said root, shouldn't that be "system" ? )
So I here I am, a painfully long install of Gentoo (and yet somehow fun in a sick way), that I can't boot into properly.
I followed the Gentoo bit about making a boot floppy. But it ain't. Well, all I get again, is:
GRUB
and the cursor.
Hardly booting my system.
Please chime in and tell me if you think I can get the setup outlined at the URL working with Gentoo, and how. Maybe anything else I should check.
Any way to use that floppy to boot my installed system ?
TIA !!! |
|
Back to top |
|
|
H0bb3z Tux's lil' helper
Joined: 28 May 2003 Posts: 121 Location: in the transmogrifier
|
Posted: Wed Jun 04, 2003 9:15 pm Post subject: |
|
|
Within GRUB, you should be capable of modifying the boot parameters if you are stuck so that you can change a couple of things to boot the right partition or add a kernel parameter, etc.
Are you getting all the way to a GRUB prompt like
If so, you can hit TAB to get a list of possible commands to modify your boot parameters. Typing "help" will get you a basic readable list of commands as well. _________________ -H0bb3z-
-----------
Intel QX9770 | 6Gb DDR3 | ATI 4870 HD 1Gb | 2xSeagate 1Tb SATAs
Running Funtoo Core2 build |
|
Back to top |
|
|
*nix-xtc n00b
Joined: 04 Jun 2003 Posts: 4
|
Posted: Thu Jun 05, 2003 2:30 am Post subject: |
|
|
Well, yes. I get to that point.
What happens then is: I tried a few of the commands, and got a reponse akin to "command not found" !
This is not like I can easily go back & reformat & reinstall...
I hate the feeling that my only option is to hose (as far as XP and any anti-virus prog is concenred) the MBR on the first drive.
And then if I ever have to reinstall Windows (we all know that story), I'm back to square one...
What's NOT clear to me at all, is how to point Grub to my currently installed kernel, and to try to boot that...
Thanks |
|
Back to top |
|
|
foshdawg n00b
Joined: 27 May 2003 Posts: 63
|
Posted: Thu Jun 05, 2003 2:51 am Post subject: |
|
|
gentoo install docs talk about installing grub somewhere else other than the mbr, did you follow that? |
|
Back to top |
|
|
Ne0_ n00b
Joined: 17 Nov 2002 Posts: 16 Location: germany
|
Posted: Thu Jun 05, 2003 5:48 am Post subject: |
|
|
Ok, this is my '/boot/grub/grub.conf', it's doalbooting with gentoo and xp.
XP is installed at the first primary partition, at least it was preinstalled there, i just resized the partition and put gentoo on it.
I think grub is installed at the mbr, but not sure
Code: |
timeout 10
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
default 0
title Gentoo Linux (Default)
root (hd0,4)
kernel /boot/bzImage root=/dev/hda6 vga=0x305
title Gentoo Linux (Kernel 2)
root (hd0,4)
kernel /boot/bzImage.2 root=/dev/hda6 vga=0x305
title WinXP
root (hd0,1)
makeactive
chainloader +1
|
|
|
Back to top |
|
|
*nix-xtc n00b
Joined: 04 Jun 2003 Posts: 4
|
Posted: Thu Jun 05, 2003 3:04 pm Post subject: |
|
|
foshdawg asked:
did I follow the gentoo docs about installing Grub somewhere other than the MBR ?
Yes. I followed the Gentoo install guide, and setup Grub on the boot partition of the second hard drive (where Gentoo is installed)
as follows:
root (hd1,0)
setup (hd1)
and setup the grub.conf file appropriately |
|
Back to top |
|
|
JoeW71 n00b
Joined: 07 May 2003 Posts: 27 Location: Umea, Sweden
|
Posted: Thu Jun 05, 2003 8:12 pm Post subject: |
|
|
Hello, I'm no expert in this area but what I've gathered the optimal setting would be to install grub on the boot-record of the first disc that boots.
In your case that would be to do this in grub:
Code: |
grub>root (hd1,0)
grub>setup hd(0)
|
and in grub.conf add a paragraph for Windows, like:
Code: | title=Windows
root (hd0,0)
chainloader (hd0,0)+1 |
Hope it helps.... _________________ I once met the guys in Anthrax, backstage after a gig in Stockholm. I didn't ask for autographs though..... |
|
Back to top |
|
|
BigBaaadBob Guru
Joined: 19 Apr 2003 Posts: 342 Location: Swampscott, MA USA
|
Posted: Thu Jun 05, 2003 9:54 pm Post subject: |
|
|
In my situation I have this layout:
Code: | # fdisk -l /dev/hda
Device Boot Start End Blocks Id System
/dev/hda1 1 1941 14673928+ 5 Extended
/dev/hda2 * 1942 2584 4861080 7 HPFS/NTFS
/dev/hda5 * 1 13 98217 83 Linux
/dev/hda6 14 46 249448+ 82 Linux swap
/dev/hda7 47 1941 14326168+ 83 Linux |
Grub says:
Code: | Possible partitions are:
Partition num: 1, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type unknown, partition type 0x82
Partition num: 6, Filesystem type is reiserfs, partition type 0x83 |
My grub.conf says:
Code: |
# Boot the Windows 2k partition
title Windows 2000
rootnoverify (hd0,1)
makeactive
chainloader +1 |
But I get "Window 2000 coulnd not start because the folowing file is missing or corrupt. <windows 2000 root>\system32\ntoskrnl.exe" What did I do wrong?
Last edited by BigBaaadBob on Sun Jun 08, 2003 11:29 pm; edited 1 time in total |
|
Back to top |
|
|
*nix-xtc n00b
Joined: 04 Jun 2003 Posts: 4
|
Posted: Fri Jun 06, 2003 2:42 am Post subject: |
|
|
Well, I was able to boot from the Grub boot floppy that is made during the install process, and pass the argument :
kernel (hd1,0)/boot/bzImage root=/dev/hdb3
and then the system booted from the installed Gentoo (on the second hard drive). Good to go from there. Thanks !
And as for installing Grub to the MBR of the first drive, no thanks.
This way, I can reinstall Win XP without fear (which I need to do soon). Before that I just make a backup copy of the "linux.bin" file created (see the URL I referenced in my first post), and the custom boot.ini file
The problem was in my grub.conf file, confirmed by being able to boot from the installed system by passing the correct arguments using the Grub boot floppy. |
|
Back to top |
|
|
Milamber n00b
Joined: 23 May 2003 Posts: 72 Location: Richmond, VA
|
Posted: Sun Jun 08, 2003 4:27 pm Post subject: |
|
|
*nix-xtc wrote: |
And as for installing Grub to the MBR of the first drive, no thanks.
This way, I can reinstall Win XP without fear (which I need to do soon). Before that I just make a backup copy of the "linux.bin" file created (see the URL I referenced in my first post), and the custom boot.ini file
|
I second that !
Most people don't realize that any windows version will be harder to
reinstall/troubleshoot with the Win install CD when the MBR of the
first disk (/dev/hda1) is overwritten.
BTW, if you're still having problems chaining GRUB to the Win2K
bootloader (that is, W2k bootloader calls GRUB), maybe this post
will be helpful :
make W2K bootloader boot grub |
|
Back to top |
|
|
|
|
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
|
|