Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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 have installed Fedora 12 and something went wrong when I tried to uninstall software (mgetty). The system hung and after switching the power off, I could not restart Fedora anymore. It hangs somewhere in the boot procedure, but I cannot see where, since the interactive mode cannot be activated.
I checked the forums and inserted the USB stick with the Fedora 12 installation. However, when it starts, it does not give a rescue option. I only get: boot, verify and boot, memory test, and boot from local drive.
The only way to get a terminal is to boot from the USB stick and login as a liveuser. But then I cannot mount my hard drive anymore.
I also tried to download the Fedora 14 installation ISO image and put it on an USB stick, but I cannot make my computer boot from that one. I stubbornly boots from the hard disk.
Can anyone help me get out of this mess.
Thanks for the quick reply.
I am logged in as liveuser now, opened a terminal window , set myself as a superuser (su, no password required).
fsck from util-linux-ng 2.16
# mount sda
mount: can't find sda in /etc/fstab or /etc/mtab
First you need to figure out the partition you have Fedora installed onto. The easiest way to list partitions is to do:
That should print out a list of partitions, filesystem types, and sizes. It should be relatively easy to figure out which one has Fedora on it, assuming it isn't a dual-boot or some other more complicated setup. Note that it is a lower-case L, not a one.
Once you have the partition (which will be something like sda1, sda2, not just sda), you run fsck against it, for example:
It will then run through the filesystem and report any errors. Hopefully anything it finds will be fixable. Afterwards, you can try mounting the partition to see if everything is still there. To do that you need to first create a mount point, and them mount the partition to it. That would look something like this:
mount /dev/sda1 /mnt/target
Those commands first make a mount point under /mnt, mount /dev/sda1 to it, list the contents of the root of that partition, and then unmount it. Remember that /dev/sda1 may not be the partition in your case, so replace that with the appropriate device node if necessary.
In the meantime, I got a little further. I found the grub.conf file in the grub directory. Through there, I found the filesystem in /dev/mapper/vg_linux1-lv_root. I also ran a fsck on that volume and it was also clean. I then removed the rhgb and quiet options from the kernel command and launched linux from my hard disk again. Then dracut told me to set selinux=0 in the kernal line. I did this and now dracut is haning after it told me: "Switching root"