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.
My system refuses to boot after a power failure.
It boots to Grub prompt after starting Stage2.
The power failure resulted in the boot partition being trashed. No files could be read.
I have tried many things to resolve, but to no avail. Here is what I have tried:
Used Knoppix Live CD and disk utils to try and recover the files. All failed with unknown partition type. Knoppix Live CD does not support virtual disks (I have LVM2 as main vol) so now using Fedora Live CD.
I then used disk utility to name the boot partition 'boot' and ext3 type. This seems to resolve the problem with the disk utils but still had the same boot problem.
I have managed to add a second disk and copied all the files from the LVM2 volume (os files and data).
Tried grub_install from live cd but same result. Interestingly, I could not find grub.conf file.
As the LMV2 partition is intact, as far as I know, are the boot partition files stored anywhere on it?
Is there anyway to get this working without a full install?
I do not have the original install disk, as the system was setup 3+ years ago by others who cannot be traced. Indeed, I find it hard to ID the version of Linux used, but think it was Red Hat.
Thanks for your quick reply.
I wish I had asked the question earlier before messing around. Tried the SuperGrub Disk but the following were returned (erros only) all others were yes or succeeded.
grub.conf is a text file. it lists operating systems and similar (grub menu items). you could create it manually. but perhaps its better to do it with update-grub command. you might need to chroot first.
you should state the OS and grub version.
btw, it might be easier to reinstall the whole thing.
If your /boot partition is trashed and you can not read or recover any files from it then restoring grub will not fix your computer. /boot contains the kernel files which are not stored anywhere else. Did you try running fsck on the /boot partition? I suspect it is unrecoverable.
Since you can access / see if you have a file called /etc/fedora-release, redhat-release or similar. The contents will tell us the version.
I was able to manually create grub.conf but as Michaelk mentioned, this did not help as kernel files were missing.
Re-installing is the very last option, as I have no idea how to install and configure the SQL database that was running on this machine.
What I have done:
Attached an old IDE disk to the machine and install Fedora on it.
Copied all files from the new install to original boot partition.
Edit grub.conf as best I could for a single drive.
Copy all files from LVM2 volume to IDE disk (glad this was safe).
Shutdown and remove the IDE disk and reboot hoping this would do the trick. Did not work, got the Grub prompt but does not say 'loading Stage 2 anymore.
Used supergrub disk and manage to get the system to boot (part way), discovered:
Red Hat Enterprise was originally installed.
Red Hat 3.4.6-2 Linux ver 2.6.9-42.EL (got these from conf files).
On booting Fedora/Red Hat (call it Fedora from now on) discovered unclean shutdown and checked /boot but discovered an superblock error.
Now prompting for root password to run disk utils. I do not have, of course.
It seems this disk in not reliable and needs replacing.
So looking at a new install the question I have is, having a backup of the whole hard disk with database how can this be recovered to put on a new install?