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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I know, I know, your asking your self, why is a noOb asking about gentoo....Well I was surfing around on the web and found the fluxbox.org website and thats where it all begins. I have been a windows user all my life. I have numoruse windows books to help me with problems I have had in the past. I saw the awsome schemes and windows used in fluxbox and thought:"I want my computer to look like this..." so I began looking around to find out how I would do this. And I stumbled upon gentoo.org. from there I downloaded and began my trivial pursuit of installing this OS.
I have a test pc that I am using for the install and if i is ever installed for me to learn the in, and outs of gentoo with out messing up the main system I am using now. Then after everything is good and I know what im doing I would install on this system. so my est pc is an old athlon thunderbird 800Mhz pc. with a little tiny 10 gig hd. I formatted the drive like this:
/dev/hda3: extended=I guess about 9 gig
so I followed the install giude,handbook-x86.2005.1 from gentoo.org and got all the way to 10.d rebooting system. when I rebooted I got the gentoo splash and the selection of gentoo. when I choose it says:
Booting 'Gentoo Linus 2.6.12-r6'
Filesystem type is ext2fs, partitin type 0x83
kernel /kernel-2.6.12-gentoo-r6 root=/dev/hda5
Error 15: File not found
Press any key to continue...
my grub.conf is/was:
title=Gentoo Linux 2.6.12-r6
kernel /kernel-2.6.11-gentoo-r11 root=/dev/hda5
So i figured I should have told grub.conf that root=(hd0,0) for boot and not root. at the time it was about 0500 in the morning. so I gave up and turned off the computer. now I cant find any of the directories. or files. like when I try cd /usr/src/linux = file or directory does not exsist. so im asking do I need to start over? or can I just (re)mount and get back to grub.conf and change what needs to be changed? and continue on with the install. if so how do I do this I have tried mount /mnt/gentoo and I get gentoo at the prompt/ but it wont (ls) /mnt/gentoo/usr/portage/distfiles/ .
so im oping I am just not mounted correctly and I can get back to the state I was in at section 10d. but I'll start over if need be. it will only be my 4th time....lol
You'll notice that theres two kernel entries, this is only because since I installed the system, theres been a new kernel version issued and that's been "emerged", but I always leave it in the system, since I know it's worked ok and just in case I have problems upgrading the kernel (as per the instructions from the gentoo kernel upgrade guide), it's there for me to be able too boot back into.
Now I don't pretend to have all (ha! or any really) or the possible answers, but I understood that it's often more difficult (when you're starting out) not to have had the kernel compile an initrd.
Seriously though, I followed the guide exactly, for the instructions for the Stage 3 + GRP install (theres a few bits too watch out for, as suggested by the install guide, stuff like don't change any USE flags if you're going to use the GRP packages, do that post-install, and then when you do the upgrades/updates use the "--newuse" switch when doing the emerge - I understand that this makes your life considerably easier).
Additionally, if you're using a 10 gig hdd, OK I don't see why this shouldn't work, but whats the point of having an extended partition ? The system would/should see anything else as /dev/hdb anyway. I don't follow whether grub would see the / partition as hd0,3 or hd0,4 because I've not used it with extended partitions.
Maybe uberNUT69 has spotted the confusion ??? What does your fstab say ? i.e. the business of calling it /root instead of / and all that???
Mine looks like this;-
# See the manpage fstab(5) for more information.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext2 noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/hda4 /home ext3 noatime 0 1
#/dev/cdroms/cdrom0 /mnt/cdrom iso9660 auto,users 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
/dev/hdc /media/cdrecorder auto user,exec,noauto,managed 0 0
/dev/hdb /media/cdrecorder1 auto user,exec,noauto,managed 0 0
You should notice the difference between my partitioning scheme and yours, I only use 4 partitions (all primary) and no extendeds - which is deliberate, I do have nearly 50 gigs of space, but I'll probably just make my / and /home bigger at a later date if I start getting "tight" for space.
The bit that uberNUT69 was highlighting, is that the booting system looks for / and not /root, hence the possible error reply.
thanks for both of your replys. as of now I feel my main problem was I told grub the wrong drive to look for the kernel. I think*. but if that is all then I need to know how I can get back mounted correctly to edit the grub.conf. If no I would have to start over anyway. I looked in grub (Tabbed) and it showed 0,1,4,5 availible. so if I do start over that will change as well.
Wait a minute - is the mount-point really the problem?
I suggest it's only a small grub-issue:
title=Gentoo Linux 2.6.12-r6
kernel /kernel-2.6.11-gentoo-r11 root=/dev/hda5
You are telling Grub to boot from /dev/hda5, but you have a /boot-partition on /dev/hda1.
Try this: When you get grub's boot-menu press 'e'
You can now edit the settings.
Mark the line root (hd0,4), press 'e' again.
Change it to root (hd0,0)
escape, 'b' to boot.
You could also delete that line root ... (by pressing 'd' I think), then edit next line.
You have tab-completion here, so erase the kernelname and type in:
then press <tab> and you'll get a list of possible choices.
This way you can try any partition if you didn't install grub in /dev/hda1 with /boot mounted.
Only remember: If you have no /boot-partition, the kernel line must include /boot:
Yeah, Im stil here. I finally got back in after taking some time off...lol. and got back to the grub.conf and made it right. It booted and started in to grub and I got the kernel panic. so I figured hey, why not start from the begining again. I mean it is good practice. so I deleated the partitions and started over. so now I only have:
Then at this command:# mount -t proc none /mnt/gentoo/proc
I got file or directory does not exsist.
so Iwent in and found proc and put that in and went on to:# chroot /mnt/gentoo /bin/bash
and got again, /bin/bash file or directory does not exsist, even though I used ls /mnt/gentoo and could clearly see bin and with ls /mnt/gentoo/bin there is clearly a bash there aswell. So I am going to give it a go again from square one tomorrow, lol well today from the start.
I went back and checked everything and I am not sure where I went wrong. every other time I have had no problems with either of the above commands. But Im a glutton for punishment I guess.