Urgent Help

Home » CentOS » Urgent Help
CentOS 12 Comments

Hi, From yesterday my server was down. It was showing only rescue menu. I copy grub.cfg to grub.cfg.old. Replace grub.cfg from another server. Now I cannot start server. How to revert back grub.cfg and how to put vm in the boot folder?

Thanks in advance.

Shiva

12 thoughts on - Urgent Help

  • Have seen a few separate emails about this topic and based on the collective information you provided; I assume that the kernel that you deleted to ‘try’ and resolve a network issue was not reinstalled. If you still haven’t reinstalled the kernel you will need to do so before you can see or add it into grub.

  • Boot from DVD/USB. Select rescue installed (on CentOS7 or vmlinuz rescue on older), select configure network and mount installed, then
    “chroot /mnt/sysimage” and yum install kernel… This should do…


    Marcelo

    “¿No será acaso que esta vida moderna está teniendo más de moderna que de vida?” (Mafalda)

  • not intending to sound like a jerk, but I suspect I still will. given the small bits that I’ve gleaned from the OPs emails, and his proclivity to …. somewhat randomly delete things, I’d suggest using a live cd distro to boot, make backups of all essential and useful data and then start anew with a reinstall. And if none of that makes sense as a set of instructions, then by all means stop and get some more help rather than plowing forward and making worse things more-worse-est.

  • I am from application back ground. I never worked on Linux. I follow some steps which posted on internet. I update Kernel from CentOS rescue cd option. But boot did not update.Is it a bug in CentOS?

  • I copy from other server. Grub is confusing. I need another help. I want to go for virtual concept. So that I can minimise down time.

  • This is why you should have done as others had suggested. It automatically sets up grub with the new kernels.

    I guess you’re going to give up on this system, then?

    You’d have a lot less down time if you didn’t delete things without understanding what you’re deleting.


    Jonathan Billings

  • I was trying for grub. But it does not show me anything. Hence confused.

    Shiva Prasad Nath
    92981134

  • I’m not sure what you are describing.

    You should be booting from a CentOS install CD, into rescue mode, as was described previously:

    https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ap-rescuemode.html#s1-rescuemode-boot

    Once you’ve booted into the rescue mode, you should choose the option to mount the OS partitions and chroot into the OS, as described here:

    https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/rescuemode_drivers.html

    … but instead of removing any packages, you should start your network with ‘service network start’ and then ‘yum install kernel’.

    Please record the output of this effort, and if you get any errors or it doesn’t work, be prepared to include the text in any further requests for support.


    Jonathan Billings