Gentoo 2006.0 installation completed, but GRUB does not boot it
Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Gentoo 2006.0 installation completed, but GRUB does not boot it
Hi,
I followed the Gentoo documentation to the word, but I have still encountered problems. I installed Gentoo via the network using the Minimal Install CD. I used genkernel to compile my kernel, which meant that my grub.conf ended up looking like this:
/boot is located on hda1 (formatted as ext2), / on hda3 (formatted as ext3), swap on hda2. I installed GRUB using grub-install, but then this happened-
When I boot the computer, first of all no splash image is displayed when GRUB comes up - and then after about 10 seconds, I get the following error:
Code:
Booting 'Gentoo Linux 2006.0'
root (hd0,0)
Filesystem type ext2fs, partition type 0x83
kernel /boot/kernel-genkernel-x86-2.6.15-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
Error 15: File not found
Press any key to continue...
I'm not sure about the last three dots there (...) as they come up as extended ASCII characters which I cannot possibly replicate, but I assume that is what they would be.
I then tried reinstalling GRUB by chrooting to the mounted filesystem again from the Gentoo Minimal CD, mounting /dev/hda1 to /boot, and then doing the following:
I reinserted the Minimal Install CD - here are the contents of hda3's (/) boot partition:
Code:
boot # ls -l
total 4216
-rw-r--r-- 1 root root 820775 Mar 27 13:32 System.map-genkernel-x86-2.6.15-gentoo-r1
lrwxrwxrwx 1 root root 1 Mar 27 09:31 boot -> .
-rw-r--r-- 1 root root 1842250 Mar 27 13:47 initramfs-genkernel-x86-2.6.15-gentoo-r1
-rw-r--r-- 1 root root 1637177 Mar 27 13:32 kernel-genkernel-x86-2.6.15-gentoo-r1
I've checked, and there isn't a misspelling. But, grub.conf refers to 'root (hd0,0)' as the root of 'Gentoo Linux 2006.0'. However, (hd0,0) is my hda1 (/boot mount point), isn't it? Therefore, GRUB is looking for the kernel in hda1, but it's actually in hda3. So, should I change 'root (hd0,0)' to 'root (hd0,1)'? I'm going to give it a shot now.
This could happen if you did not have /dev/hda1 (your /boot - where grub _and_ the kernel should be) to / while setting up grub.
Or if you forgot to mount /boot when you copied the kernel to it - it would have ended up in /boot on /dev/hda3 then.
Make sure /boot is mounted when you set up grub and when installing the kernel.
-edit-
just saw you posted in the meantime:
looks like what I suggested second...you did not mount /boot so the kernel ended up being copied to /boot on /dev/hda3
Thanks for your reply - it worked! I basically chrooted to /mnt/gentoo (where /dev/hda3 was mounted), copied the contents of /dev/hda3's /boot directory to a directory /tmp/kernel, mounted /dev/hda1 over /boot, and then copied the files in /tmp/kernel recursively into /dev/hda1's boot.
And now it boots - GRUB even displays the splash image!
I have another problem though: when Gentoo is starting, here is the error message I get (after a few screenfuls of text):
Code:
* Checking root filesystem...
fsck.ext3: No such file or directory while trying to open /dev/ROOT
/dev/ROOT:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap of ufs or something else), then the supervlock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsk -b 8193 <device>
* Filesystem couldn't be fixed :(
Give root password for maintenance
(or type Control-D to continue):
I hope you can help me here. I'm at the console logged in as root (after the last bit of the error), so I would be extremely grateful if you could help me out. Switching to Gentoo isn't easy
look at the file /etc/fstab (in your / partition...)
IIRC there was a "template" which refers to your partitions as /dev/ROOT for what would really be /dev/hda3 for you
the same goes for entries like /dev/SWAP and /dev/BOOT - which are /dev/hda1 and /dev/hda2 respectively - change these to their real names.
Excellent - I commented out all the /dev/ROOT, /dev/SWAP etc and left the mount lines I had added manually - and now I can login!
I have a few more questions though.. Here is the first one - it complains that DHCP is not available:
Code:
* No loaded modules provide "dhcp" (dhcp_start) [ !! ]
* ERROR: Problem starting needed services.
* "netmount" was not started.
However, my /etc/resolv.conf shows:
Code:
# Generated by dchpcd for interface eth1
nameserver xxx.xxx.xxx.xx
nameserver xxx.xxx.xxx.x
domain WORKGROUP
So, dhcpcd is there. I also tried emerging it again, and the emerge worked (even though my internet connection does not work). I restarted the computer and I still got the same error message. So, I tried setting the IP address and the rest manually using 'ifconfig up eth0 192.168.1.100 netmask 255.255.255.0' (I know there are no conflicts) but it still doesn't work. Emerge complains about not being able to resolve the download servers.
Is there any way I can fix this?
Another thing is that the 'startx' command doesn't work, so I'm not sure how to bring up the GUI. Oh, and I tried creating a standard user (with no password), and then switching to the user (max) via 'su max', which worked. BUT, then I tried to change the passwd from the user max (I know I could've done this as root), and I got the error "passwd: Authentication token manipulation error" when I entered a blank password. Why? There should not be a password on the account. And another thing is that I cannot 'su' back to root (error- "su: Permission denied. Sorry."), so I cannot shutdown/reboot the computer either.
If you look at the error...
netmount was not started because dhcp was not started - and this in turn was not started because...I have a guess:
is /etc/init.d/net.eth0 a link to /etc/init.d/net.lo
ls -al /etc/init.d/net*
it should be...
Is the module for your ethernet-card loaded - or is it compiled into the kernel - is it the right one?
Check the systems logs /var/log/messages
and dmesg | less
For the startx - do you have xorg installed?
Install a display-manager like GDM or KDM...this will also solve the problem with the password...
There should be a password - and I don't even know how to make it going without one - and I really would not do so.
It's not neccessary eighter, because when using a display-manager you can allow passwordless logins for specific users or even automatically start a session without needing to login via user/password
The password for user max can be changed by max: passwd --> while logged in as max
or by root: passwd max --> while being root
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.