LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-06-2004, 08:50 PM   #1
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Rep: Reputation: 52
GRUB won't boot Gentoo Linux :(


Hello
I recently installed Gentoo and I am having some problems with GRUB. I can boot GRUB just fine.... my problem is when i attempt to boot into Gentoo i get this

STEP 4a: Mounting root
mount: Mounting /dev/hda3 on /newroot failed: Invalid arguement
Could not mount specified ROOT, try again
Root block device unspecified or not detected.
Please specify a device to boot, or "shell" for a shell.
:

Now, my /etc/fstab looks like this:

/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / reiserfs noatime 0 1
/dev/SWAP none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0
none /proc proc defaults 0 0

My /boot/grub/grub.conf appears as this:



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

#all above works fine in /boot/grub/grub.conf


#For Booting GNU/Linux
title=My Example Gentoo Linux (recent genkernel)
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.22 root=/dev/ram0 real_root=/dev/hda3 init=/linuxrc
initrd (hd0,0)/boot/initrd-2.4.22-gentoo-r5

##########################################
#end
any help is greatly appreated
 
Old 02-06-2004, 09:03 PM   #2
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
You need to change the BOOT to reflect your boot partition, like /dev/hda1, and you need to change your ROOT to reflect your / partition, like /dev/hda3, and you need to change your SWAP to reflect your swap partition, like /dev/hda2. Those capital letter words are there so you can replace them.

i.e.
Code:
/dev/hda1   /boot ext2 noauto,noatime 1 2
/dev/hda3   / reiserfs noatime 0 1
/dev/hda2   none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0
none /proc proc defaults 0 0
-Josh
 
Old 02-06-2004, 09:06 PM   #3
sjia
Member
 
Registered: Jan 2004
Location: Ont, Canada
Distribution: Fedora Core 1
Posts: 113

Rep: Reputation: 15
Is Gentoo Linux on your 1st partition of your 1st hard drive?

Also if you use root (hd0,0), you do not need to add it to the kernel or initrd.

Last edited by sjia; 02-08-2004 at 03:56 PM.
 
Old 02-06-2004, 09:12 PM   #4
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Original Poster
Rep: Reputation: 52
sorry guys:

my fstab is properly set... i just copied that from the gentoo install guide

hda1: boot
hda2 swap
hda3 root

i found something in the gentoo forums that may work..... i'll keep you guys posted

thanks for the input
 
Old 02-06-2004, 09:53 PM   #5
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
I'm pretty sure GRUB is (hd0,0), I just went through another Gentoo stage1 install last weekend.... Also, Shane, you do have to change those parameters in your fstab, unless you define them before those lines, which I did not see. Good luck...

-Josh
 
Old 02-06-2004, 10:55 PM   #6
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Original Poster
Rep: Reputation: 52
Josh,
My fstab uses the actual hda1, hda2, instead of BOOT,. SWAP it was just an honest mistake that i posted it that way thanks for wishing me luck i shall keep you guys posted
 
Old 02-07-2004, 10:26 AM   #7
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
Shane,

Ok, sorry about that then. Just trying to help...<g>

-Josh
 
Old 02-07-2004, 11:10 AM   #8
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Original Poster
Rep: Reputation: 52
Josh,
I noticed you are using gentoo as well. Did you have to do any special configuration to make it work? I read on the gentoo forums that the latest kernel 2.4.22-gentoo-r5 has a bug where reiserfs does not load properly, so therefore it is nessary for a special kernel configuration to be ran thru the use of genkernel --menuconfig all, i tried that and it failed, I am trying now under ext3.
just curios


shane
 
Old 02-07-2004, 12:08 PM   #9
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
I couldn't get gentoo to boot until i removed the (hd0,0) from the kernel line. Here's what my grub file looks like:

Code:
title=Gentoo Bootsplash
root (hd0,0)
kernel /boot/kernel_020504 root=/dev/hda3 hdd=ide-scsi hdc=ide-scsi video=vesa:ywrap,mtrr $
initrd=/boot/initrd-1280x1024
and my fstab looks like this:
Code:
/dev/hda1               /boot           reiserfs        noauto,noatime,notail           1 1
/dev/hda3               /               reiserfs        noatime                 0 0
/dev/hda2               none            swap            sw                      0 0
Maybe this will help you out.
Quote:
kernel (hd0,0)/boot/kernel-2.4.22 root=/dev/ram0 real_root=/dev/hda3 init=/linuxrc
What is the root=/dev/ram0 for? Have you tried getting rid of that? I would suggest making your grub file as simple as possible until you get it to boot, and then mess with it using a new menu entry so that if you have to boot, you always can.

Last edited by busbarn; 02-07-2004 at 12:11 PM.
 
Old 02-07-2004, 11:08 PM   #10
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Original Poster
Rep: Reputation: 52
i'm gonna give that a try thanks
 
Old 02-07-2004, 11:28 PM   #11
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
Shane,

I did not have to do anything special, my grub.conf is as follows:

Code:
default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
 
title Gentoo 2.4.22
kernel (hd0,0)/boot/bzImage
Note: I'm not using initrd because I did not use the genkernel, I manually configured everything.

My /etc/fstab is as follows:

Code:
/dev/hda1           /boot       reiserfs  noauto,notail   1 1
/dev/hda3           /           reiserfs  noatime         0 0
/dev/hda4           /beta       reiserfs  noatime         0 0
/dev/hda2           none        swap      sw              0 0
/dev/cdroms/cdrom0  /mnt/cdrom  iso9660   noauto,ro       0 0
/dev/cdroms/cdrom1  /mnt/cdrom1 iso9660   noauto,ro       0 0
/dev/fd0            /mnt/floppy auto      noauto          0 0

none      /proc   proc    defaults    0 0
none      /dev/shm  tmpfs   defaults    0 0
I don't know if my splash image works though...(not sure what its supposed to look like).

After you installed GRUB, did you do the root (hd0,0) then setup (hd0,0)?

-Josh
 
Old 02-08-2004, 11:59 AM   #12
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Original Poster
Rep: Reputation: 52
yeah i did, the splash image is just a graphical look for GRUB
 
Old 02-08-2004, 03:20 PM   #13
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Original Poster
Rep: Reputation: 52
i have successfully booted into the system


now i am emerging kde and will soon have Gentoo Linux ready to roll
 
Old 02-08-2004, 07:42 PM   #14
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
Congratulations!
 
Old 02-08-2004, 09:44 PM   #15
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Original Poster
Rep: Reputation: 52
thanks busbarn


getting the ethernet card to work took some snooping on the gentoo forums...

for any one in my pinch, in the terminal just type in dhcpcd ethx


where x is your network card

i did some quick math and it seems it will be 41 hours total for KDE (and from the compiling i have watched it is installing everything under the sun that comes w/ kde)

i want to make sure it works when its done..... for anyone else who has installed gentoo (stage3) is there any X configuration needed?

Shane
 
  


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 04:50 PM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
Gentoo-Im dumb and deleted /boot/boot Grub Says: Error 26 : Too many symbolic links smehi Linux - Software 5 06-24-2006 06:25 AM
Gentoo Error can't boot with Grub therapture Linux - Distributions 4 02-14-2005 11:07 AM
Boot error (GRUB GENTOO) linuxnoob2287 Linux - Distributions 4 10-28-2004 04:44 AM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration