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.
So I have to ask. I cant even begin to explain how many countless hours I have put into setting this server up for my boss, but is there anyway possible for me to reinstall linux or grub or anything that WONT destroy everything I have done on the server?
Ok I think I may have gone wrong with understanding that I am using a live CD to do all the command stuff. Anyway I am using a slax CD and once I log into the terminal I get a "root@slax:/#" prompt.
here is what I get...
root@slax:/# cd boot
root@slax:/# ls
grub/ lost+found/
Now I thought this was just coming off the CD so I also did this...
root@slax:/# cd /mnt/sda1
root@slax:/# ls
grub/ lost+found/
And to be sure that what I was looking at made since I also did this...
root@slax:/# cd /mnt/sda2
root@slax:/#ls
...all my folders and files (ones I did personally) show up here...
root@slax:/# cd boot
root@slax:/# ls
root@slax:/# (I get nothing)
With showing these examples (hopefully it helps illustrate any confusion either of us has) When I did the first example then did this...
root@slax:/# vi grub/menu.lst
.
.
.
-contents of menu.lst are displayed-
everything that is shown in this are all the changes we made to the file but I was under the impression that it would have been just a copy of the file on the disk.
Oh yea I almost forgot. I did try to mount sda1 and it said it already was which may explain away the confusion I had with thinking I may end up looking at a CD version of the menu.lst file.
Now I thought this was just coming off the CD so I also did this...
root@slax:/# cd /mnt/sda1
root@slax:/# ls
grub/ lost+found/
That's bad news. Most of the files that should be in /boot are missing (the system map, kernel and initrd images, etc).
Quote:
And to be sure that what I was looking at made since I also did this...
root@slax:/# cd /mnt/sda2
root@slax:/#ls
...all my folders and files (ones I did personally) show up here...
root@slax:/# cd boot
root@slax:/# ls
root@slax:/# (I get nothing)
That's bad news. All of the files that should be in /boot are missing.
It seems that when someone (whomever that someone is) tried to seperate /boot from the root of the filesystem and put it in it's own partition, the files of /boot were incompletely moved from the /boot under the root of the filesystem to the new /boot partition.
If you have a backup that you can restore, then you can recover those missing files.
If you don't have a backup, you will have to re-install the grub rpm from the Fedora install cd. Copy it from the cd, and re-install with 'rpm -i --replacefiles <grub rpm name here>'.
I suggested the command-line version of rpm installation because I don't know what Fedora provides by way of GUI installer, and I don't know if the GUI installer will allow you to specify the --replacefiles option (to replace those missing files in /boot).
Indeed, I'm not certain re-installing grub will replace the kernel, initrd, systemmap, etc., or if those files are copied there during the OS installation. I'm hoping that the installation of grub is what drives the copying of files into /boot. Those missing files certainly go a long way to explain the grub error 15.
If this still doesn't work, there is still one option left: backup what you have (as in system backup) then re-install Fedora. If it comes to that, be careful during installation, when it gets to the part of selecting the partition(s) to install into, select /dev/sda1 with a mount point of /boot and do not format, then select /dev/sda2 with a mount point of / and do not format.
That should get your /boot files back. But it will (may?) undo anything else you have done in setting up the server. Just restore that backup (all except /boot) and you're back in business.
Well just as an FYI I tried the rescue mode [F5] and it ends up saying something like it had problems mounting some things and then lets me hit enter to get a sh-3.1# prompt... Im still unsure how to find the rpm grub name though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.