Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I have a Centos 6.4 server(Yum repo server -has internet connectivity). When we rebooted the server it's not booting and it went into grub. It shows two kernels in grub
2.6.32-358.el6.x86_64(default)
2.6.32-358.18.1.el6.x86_64
I followed the steps to boot with default kernel
find /vmlinuz-2.6.32-220.el6.x86_64
root (hd0,0)
kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=LABEL=/
initrd /initramfs-2.6.32-358.el6.x86_64.img
boot
But it's not booting neither in my old/new kernel. Any inputs will be much appreciated.
PFA screenshot for the same. Thanks in advance
Boot from rescue disk, give it to find and mount your installation, chroot into it.
Then you have to recreate initramfs by dracut according to your installation.
Usual reason for not finding / , is missing driver for something in initrd/initramfs.
You need to detect required drivers for disk subsystem and add them to /etc/dracut.conf, like:
add_drivers+="driver1 driver2 driver3"
Then rebuild initramfs to your boot kernel (not to rescue kernel, often mistake).
the system rebooted and entered grub again. I found my grub.conf file was empty. I have LVM partitions in the system. Is it possible to create grub.conf file again, if so what about the information pertaining to LVMs
Can you please elaborate it, I have assigned IP address and even taking the system remotely. How could I find what went wrong in grub and where to look. Even menu.lst which is pointing to grub is empty. Do we have any tool to create grub automatically or we have to create manually.
I *guess* that you do not see grub stuff in chrooted system.
This usually happen when /boot not mounted, or vice versa,
grub was installed (by script mistace) before /boot mounted.
This could happen with strange hardware, or installation
Thanks for the help. I need to get permission from network team. But as you said this kind of issue happens on a strange hardware, this is a virtual machine(base proxmox) on IBM HS 23 blade. Do we have any option of bringing the server back.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.