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.
masonm, I have been having problems with this for some time. I turn on the PC, and sometimes it gets past Stage 2, and other times it does not. There seems to be no ryme or reason to when it decides to freeze the boot process at this point. I can press the reboot button on my PC and get past it. I have done a little research, and have entertained that the problem was a) the BIOS, but I cannot find any real problems when I enter the BIOS setup, or b) that GRUB cannot "see" the disks during the boot process. This could mean that GRUB cannot calculate the goemetry of the disks, implying some hardware issue with the disks, or that GRUB was never really healthy to begin with. I am running a dula-boot Win XP and RH WS 3. Any insight is appreciated, and thanks for the help so far.
Look here: http://www.gnu.org/software/grub/man...l#Installation If you have one, you may use a LiveCD (such as Knoppix or its derivatives, whatever suits you), mount the partition containing your Linux kernel, chroot into it and reinstall from there. For example, if your RH install is on the 2nd HD, 1st partition, try
I was able to reinstall GRUB from a terminal session using the "grub-install /dev/hda" command. Since doing so (yesturday), the problem has not repeated itself, nor do I see the "GRUB error loading Stage 2" message during the verbose booting process. I used to see this message flash by just before the GRUB graphical screen came on, or at the point where the boot process froze. Now it simply says something like "GRUB is now loading" for a second before I see the GRUB screen with the OS choices. I hope this is the fix, as this problem had been occurring for months and was really quite annoying. I had troubleshooted everything from it being the IDE cable (bought a better one anyway) to there being an actual physical problem with one or both of the drives. I entertained using "fixmbr" from Windoze recovery as a solution, but I really did not want to loose Linux. Thanks again, everyone.
OK, so I reinstalled GRUB twice and am still getting errors. The new error is Error 21 and occurs during Stage 1.5. There is a general lack of information available about Error 21 the "unkown error". I finally got sick of GRUB errors, and would like to boot Linux only from a floppy. I have created a GRUB boot floopy using the instructions posted in this thread. It seems to have worked, as I get to the grub> prompt when booting from the floppy. At this prompt, I'm a littel lost about what to do next. My guess is that I have to type in the kernel command and location, as it is specified in the original grub.conf file in the /etc directory on my hard disk. The kenel name and command is rather long, and I would like the booting to happen automatically instead of my (presumably) typing it in. Is there some file on the new floppy I must alter? Should I copy my grub.conf to the floppy and modify it to take out Windows. If all goes well, I plan to use fixmbr and/or fixboot to reinstate the Windows boot loader. I'd like to have the Linux part squared away before I try anything like that. Thanks for all your assistance so far, and thanks in advance for answering my new questions.
I was able to boot my Linux OS from the grub> prompt. The contents of the grub.conf, which is copied to the floppy during the creation of the boot floppy , is as follows:
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
title Red Hat Enterprise Linux WS (2.4.21-15.0.4.EL)
kernel /vmlinuz-2.4.21-15.0.4.EL ro root=LABEL=/ hdd=ide-scsi
#title Red Hat Enterprise Linux WS (2.4.21-15.0.3.EL)
# root (hd1,0)
# kernel /vmlinuz-2.4.21-15.0.3.EL ro root=LABEL=/ hdd=ide-scsi
# initrd /initrd-2.4.21-15.0.3.EL.img
#title Red Hat Enterprise Linux WS (2.4.21-4.EL)
# root (hd1,0)
# kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/ hdd=ide-scsi
# initrd /initrd-2.4.21-4.EL.img
Note that I have commented out some of the old entries, which are previous kernels that are installed. By entering the following commands at the grub> prompt, I was able to boot into Linux from the floppy, as desired: