LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2002, 02:28 AM   #16
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47

Quote:
Originally posted by bax
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=My example Gentoo Linux
root (hd0,0)
kernel /boot/bzImage root=/dev/hda3

# Below needed only for people who dual-boot
title=Windows NT Workstation
root (hd0,5)
chainloader +1

I'm guessing I need to modify this to show where the location of the splahimage is which would be (hd1,0) right? My XP partition would be (hd0,1) right?

If xp is on the first partition, it would be (hd0,0).

Try this:

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

title=My example Gentoo Linux
root (hd1,0)
kernel /bzImage root=/dev/hda3


# Below needed only for people who dual-boot
title=Windows NT Workstation
root (hd0,5)
chainloader +1

title=WinXP
root (hd0,0)
chainloader +1


Then run:

grub> root (hd1,0)
grub> setup (hd0)

If that doesn't work, try:

grub-install --root-directory=/boot /dev/hda

If that doesn't work, try:

grub-install --root-directory=/boot/grub /dev/hda

I hope it works.
 
Old 07-03-2002, 07:58 PM   #17
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Original Poster
Rep: Reputation: 30
Many thanks to all who have helped!

grub> root (hd1,0)
grub> setup (hd0)
This worked great. Beautiful Gentoo GRUB splashscreen on boot and I can boot into gentoo just fine. Couldn't boot into Winblows, though..... Also got into Gentoo, recieved a warning about not having DEVFS compiled into the kernel. Really didn't have the slightest idea about how get X up and running except I was sure I needed a copy of my XF86Confg-4 file from other Linux installs that worked. I decided I wouldn't be able to get Gentoo up and running w/out around the clock handholding so I am reinstalling Redhat 7.3 as we speak. I am going to do everyting I can on Redhat to prepare mysel for Gentoo again like recompiling the kernel and compiling my own programs like Mozilla instead of descending into RPM hell. If there's anybody who wants to help me w/ Gentoo on chat or in the San Diego area, shoot me a line and the beer will free! Any tips on what I should have done next to get X up and running? Also, again many thanks to all who helped me out. I will continue to learn and try to pass what I know. Any other suggestions for geting off of the RPM tit, let me know.
 
Old 07-03-2002, 09:16 PM   #18
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.
 
Old 07-03-2002, 10:40 PM   #19
burzmali
Member
 
Registered: Jan 2002
Distribution: gentoo
Posts: 68

Rep: Reputation: 15
no problem man
try the gentoo forums also at
http://forums.gentoo.org
they are very helpfull
free beer? man if i lived nearer dan diego...
 
Old 07-04-2002, 09:34 AM   #20
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Grub numbers drives numerically, starting with 0 as the first number.
Linux numbers drives alphabetically, starting with A as the first number.
Grub numbers partitions numerically, starting with 0 the first number.
Linux numbers partitions numerically, starting with 1 as the first number.

Under Grub, the first partition of the first hard drive is then hd0,0. The fifth partition of the first hard drive is hd0,4. The first partition of the second hard drive is hd1,0. These would be the same as Linux hda,1, hda,5, and hdb,1 respectively.

For a good read on how Grub works, and how to configure, with examples, go to support.calderasystems.com/support and do a knowledgebase search for Zen and the Art of Using Grub. Follow it step by step. It's get you straight with grub.
 
Old 07-25-2002, 11:51 PM   #21
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Rep: Reputation: 15
This fits into my problem. I need help configuring Grub for my system.

My partitions is as follows:

1 - WinXP - NTFS
2 - Linux Boot - Ext3
3 - Linux Swap - Swap
4 - Linux / - Ext3

I need to know how to setup Grub. I obviously did something wrong as my computer automaticlly comes up in WindowsXP on every restart.


And another thing, how do I use the Gentoo CD to get into my Gentoo Linux? I always start at the boot prompt. I don't know how to get into the Gentoo I already installed.

Last edited by DAKPluto; 07-25-2002 at 11:53 PM.
 
Old 07-26-2002, 01:29 AM   #22
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Quote:
My partitions is as follows:

1 - WinXP - NTFS
2 - Linux Boot - Ext3
3 - Linux Swap - Swap
4 - Linux / - Ext3
Do you mean:

hda1 - WinXP - NTFS
hda2 - Linux Boot - Ext3
hda3 - Linux Swap - Swap
hda4 - Linux / - Ext3

Quote:
I need to know how to setup Grub. I obviously did something wrong as my computer automaticlly comes up in WindowsXP on every restart.
Do see anything that indicates that it's grub that is doing the booting?

Quote:
And another thing, how do I use the Gentoo CD to get into my Gentoo Linux? I always start at the boot prompt. I don't know how to get into the Gentoo I already installed.
Entering linux root=/dev/hda4 and pressing <ENTER> at the prompt might boot linux. It depends on what your root partition is.
 
Old 07-26-2002, 05:55 AM   #23
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Rep: Reputation: 15
Quote:
Originally posted by linuxcool


Do you mean:

hda1 - WinXP - NTFS
hda2 - Linux Boot - Ext3
hda3 - Linux Swap - Swap
hda4 - Linux / - Ext3


Exactly Right sir.



Quote:
Do see anything that indicates that it's grub that is doing the booting?
Nothing



Quote:
Entering linux root=/dev/hda4 and pressing <ENTER> at the prompt might boot linux. It depends on what your root partition is.
I will try this and let you know.
 
Old 07-26-2002, 09:52 AM   #24
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Rep: Reputation: 15
I tried the linux root=/dev/hda4 but it had problems with the kernel. So I don't think I compiled it properly. So I am going to take another crack at it.
 
Old 07-26-2002, 08:54 PM   #25
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Good luck!
 
  


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
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 05:50 PM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 04:13 AM
grub on gentoo need help chiatello Linux - General 1 07-27-2003 03:30 PM
Grub and Gentoo CheeseManD Linux - Newbie 2 04-27-2003 01:48 PM
Gentoo and Grub Arleta Linux - Newbie 1 01-06-2003 04:11 PM


All times are GMT -5. The time now is 06:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration