Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Gentoo Linux Help
Reload this Page Not understanding Grub
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Gentoo Linux Help For help and discussion related to Gentoo Linux

Reply
 
Thread Tools Display Modes
Old 07-30-2005   #1 (permalink)
George Harrison
Linux User
 
George Harrison's Avatar
 
Join Date: Mar 2005
Location: Pepperland
Posts: 445
Send a message via AIM to George Harrison Send a message via MSN to George Harrison Send a message via Yahoo to George Harrison
Not understanding Grub

Hello, I plan on putting Gentoo back on my box soon but on my slave drive. I have used Lilo and only Lilo with Gentoo (and everything else, unless a distro auto configures Grub for me). I'd like to switch over to Grub when I install Gentoo the next time. I tried to do this last week or so with it being hd1,0 I thought that it would be this but it gave me a kernel panic so I scrapped it. It makes the most sense though - the number one because it is the slave drive and 0 for the first partition for boot. I'm not really understanding Grub at all, I know that it is quite hard to help me without a specific question or me posting what my grub.list file is but are there any helpful hints before I go and try to install Gentoo with using Grub as the bootloader? I have tried reading the docs for Grub and the Gentoo handbook but everything assumes that you want to install to the master drive, which is annoying. Thanks.
__________________
Registered Linux user #393103
George Harrison is offline   Reply With Quote
Old 07-30-2005   #2 (permalink)
budman7
Super Moderator
 
budman7's Avatar
 
Join Date: Oct 2004
Location: Knee deep in Grand Rapids, Michigan
Posts: 3,243
When you say it assumes you want to install to the master drive, I believe those are just examples.
Or you might be referring to putting Grub on the MBR. This is a necessity, In order for Grub to be able to boot your OS, it needs to be on the MBR. Unless you want to put it on a floppy of course.

You are right that the first partition on the slave drive would be (hd1,0) or /dev/hdb1.

The kernel panic might be due to an error in your /etc/fstab.
__________________
Go RedWings
How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger

New users read The FAQ
budman7 is offline   Reply With Quote
Old 08-01-2005   #3 (permalink)
d0p
Just Joined!
 
Join Date: Jul 2005
Posts: 60
If there is an error in your grub.conf it will also throw a kernel panic error. A mount point block (0,0) error is a error in the kernel line. Lately, the initrd line makes gentoo throw an kernel panic message/halt.
d0p is offline   Reply With Quote
Old 08-01-2005   #4 (permalink)
drakebasher
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,813
If you want to understand how Grub boots and what it "sees", I'd suggest making a Grub boot floppy and then trying different things. If you have Grub installed (not necessarily as the bootloader: you just need the Grub package on the system), you can read the instructions for creating a boot floppy if you do 'info grub' then choose 'Installation' and then find the section on installing to a floppy disk (press 'q' to quit from the 'info' command). I think the commands are these:
Code:
/sbin/grub
root (fd0)
setup(fd0)
With a generic Grub boot floppy you can boot to the 'grub>' prompt and then "manually" boot your system. Grub has a useful filename completion feature. If, at the grub> prompt, you do: 'kernel (hd1,0)/ <tab>' Grub will list the directory of the partition that it recognizes as (hd1,0). You can drill down into the directories to find any file you want: 'kernel (hd1,0)/boot/ <tab>' will show the kernels and any other files and directories in the /boot subdirectory on partition (hd1,0) if the /boot directory exists.

The cool thing is, you can poke around extensively without ever booting your system until you are ready. The Grub boot floppy can also be used to install Grub to the MBR "natively" and it serves as a useful rescue boot disk.
__________________
/IMHO
//got nothin'
///this use to look better
drakebasher is offline   Reply With Quote
Old 08-01-2005   #5 (permalink)
George Harrison
Linux User
 
George Harrison's Avatar
 
Join Date: Mar 2005
Location: Pepperland
Posts: 445
Send a message via AIM to George Harrison Send a message via MSN to George Harrison Send a message via Yahoo to George Harrison
Hmm.. ok thanks.

I just completed my Gentoo Stage 1 install last night so I threw Lilo on there, it's very easy to configure so I figured there would be no problem - there wasn't. I also was just finishing up on the install at about 1 am last night so I didn't really want to have to deal with a kernel panic on that first boot if I messed something up so I just did Lilo. I can later mask Grub over it if I really feel like it, just add the Grub package, install from the prompt "Grub>" thing and tell it to go to the mbr, etc. I'm just a bit confused because of all the examples are written for Gentoo to be installed to the master is all. I might make a Grub floppy and go from there.
__________________
Registered Linux user #393103
George Harrison is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 05:29 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0