Linux - NewbieThis 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
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.
After my installation of gentoo and while installing grub which was in the final phase ,I made one entry wrong in grub.conf.
My grub.conf is like this:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.24-r5
root (hd0,0)
kernel /boot/kernel-2.6.24-gentoo-r5 root=/dev/sda3
#the red one is the wrong entry
title Gentoo Linux 2.4.24-r5 (rescue)
root (hd0,0)
kernel /boot/kernel-2.6.24-gentoo-r5 root=/dev/sda3 init=/bin/bb
So when I boot normally gives me Error no:15 file not found.
I corrected it from grub prompt by editing it but I think it boots in rescue mode as my disk image .iso file's path is directly set in my Vmware.
So after successful booting I tried to edit /boot/grub/grub.conf but I found the entire grub subdirectory missing.
I tried to mount
#mount /dev/sda1 /boot
but it says mount failed no such file or directory.
Editing from grub prompt is temporary,how would I edit grub.conf permanently?
I am not putting my question in gentoo forum because I think my problem is more of grub related.
Okay, it sounds like you understand how it all works. The only thing you didn't
mention is the difference between the title line and the kernel line. The title
can say anything, it's just a good idea to have it match your kernel version. The
kernel line is the one that must be right.
Since the root parameter is hd(0,0) I take it that sda1 is your root partition,
and the boot partition is hd(0,2). If that's right, you should be able to boot
the system by editing your boot parameters, then update /boot/grub/menu.lst.
You could also boot from a live cd like Knoppix, mount /dev/sda3 and edit the
grub/menu.lst file at the mountpoint.
Okay, it sounds like you understand how it all works. The only thing you didn't
mention is the difference between the title line and the kernel line. The title
can say anything, it's just a good idea to have it match your kernel version. The
kernel line is the one that must be right.
Since the root parameter is hd(0,0) I take it that sda1 is your root partition,
and the boot partition is hd(0,2). If that's right, you should be able to boot
the system by editing your boot parameters, then update /boot/grub/menu.lst.
The boot partition can be the first partition ... the third can be your root partition, second swap - in fact, that's the way they have it laid out in the handbook for Gentoo ...
Right now the Gentoo handbook (in their examples) shows 2.6.24 as the example, but the kernel they are using right now by default is 2.6.29-gentoo-r5 ... It might be what's causing confusion.
I am not a gentoo guy but to edit grub.conf open a terminal, become root
and call up a text editor or filemanager
like say I was in ubuntu
I would open terminal
and open Nautilus as root
"sudo nautilus"
enter my password and then do the editing as root
using text editor
"sudo gedit /boot/grub/grub.conf"
EDIT: it is also easy enough to make a new grub folder/grub.conf this way tooo
EDIT again:
I just installed fedora 11 from cd to my ext3 usb
via liveusb-creator
I thought it would put a grub folder/mewnu.lst there
it put a syslinux folder and extlinux.conf(extlinux is for ext2/3)
so, I just made a boot/grub folders and a menu.lst
converting the extlinux.conf into menu.lst
I don't mean to quadruple post, but also:
*edit: yeah, the title wouldn't affect it, for some reason I was thinking it said you wrote the 2.4 twice ...
Also, if he installed Gentoo using the handbook and he experienced this problem when rebooting to finish up the installation, he doesn't have x.org or a desktop environment installed yet - otherwise I would think you mean chrooting, I don't know much about vmware though, maybe it's causing me confusion. From the command line you'd be using nano unless you emerged vim or whatever while installing ... It doesn't have vim if you just go by the handbook unless you install it yourself, all the instructions in the handbook use nano.
*edit:Using genkernel, it still makes the default the actual kernel you're using, if you're using the default now with 2008.0 it would be 2.6.29-gentoo-r5 or you rename it ...
I don't mean to quadruple post, but also:
Say you're using 2.6.29, if you have 2.4.29 as the second title, it would still automatically boot the 2.6 unless you chose to boot to rescue.
Also, if he installed Gentoo using the handbook and he experienced this problem when rebooting to finish up the installation, he doesn't have x.org or a desktop environment installed yet - otherwise I would think you mean chrooting, I don't know much about vmware though, maybe it's causing me confusion. From the command line you'd be using nano unless you emerged vim or whatever while installing ... It doesn't have vim if you just go by the handbook unless you install it yourself, all the instructions in the handbook use nano.
Yes you are right,my kernel is 2.6.29 version. Actually I just copied and pasted the example given in the handbook to this post.
The actual name I have given to my kernel image is kernel-2.6.24(which needs correction if I stick to its actual version).
In that kernel line of grub.conf only kernel image name matters(one what we decide after building a kernel image)...and that can be anything.
Yes no X.org no vim yet,need to install.
I Solved the problem by editing menu.lst
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.