Rescue Mode

General support questions
Post Reply
arede
Posts: 3
Joined: 2018/07/23 14:45:10

Rescue Mode

Post by arede » 2018/07/23 15:07:55

Hi,
I've got a server (with two computational nodes) in CentOS 6.5. I used yum to update some packages, but there was a problem. So many packages were duplicated. I removed the old ones by yum remove and around 600 packages removed. Now the server does not load. I tried the rescue mode to reinstall the grub but it did not work.
photo_2018-07-23_19-31-30.jpg
photo_2018-07-23_19-31-30.jpg (71.08 KiB) Viewed 264 times
I also tried "install or upgrade an existing system" from the first menu to upgrade the OS, but it did not work.
photo_2018-07-23_19-34-31.jpg
photo_2018-07-23_19-34-31.jpg (97.09 KiB) Viewed 264 times
Can someone help me please? Thank you very much

User avatar
TrevorH
Forum Moderator
Posts: 23883
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Rescue Mode

Post by TrevorH » 2018/07/23 15:32:25

Using yum remove to get rid of the duplicate packages was probably a mistake as, without a specific version number being given, it will remove both copies of the packages.

You've given us no clues as to why it doesn't boot but you seem to have decided that it's a grub problem. You didn't tell us why you think that so we have no way to tell if you are correct. Your screenshots appear to show that it isn't since it installed ok on /dev/sda when you told it to.

Show us the errors you are getting.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

arede
Posts: 3
Joined: 2018/07/23 14:45:10

Re: Rescue Mode

Post by arede » 2018/07/24 07:10:21

when the machine boots, I got

Error 15: File not found
Press any key to continue...

So I thought that it's a grub problem. I decided to reinstall it by means of the rescue mode. after next reboot the same error (as I mentioned above) appeared. Next time I decided to upgrade the OS by means of CentOS 6.5 DVD part1. After a long time it worked and something like a minimal CentOS loaded. I could just log on to root (I was not be able to log on to user) and No internet, No GUI. I tried startx and also init commands but it did not work. I'm not an expert at Linux OSs, so I am not be able to find the main factor that caused the OS not to load normally.

User avatar
TrevorH
Forum Moderator
Posts: 23883
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Rescue Mode

Post by TrevorH » 2018/07/24 08:18:31

Boot from DVD in rescue mode and have it mount your system partitions - they'll be under /mnt/sysimage when it drops you to a command prompt. From there, show us the contents of /boot/grub/grub.conf and also the output from ls -la /boot/
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

arede
Posts: 3
Joined: 2018/07/23 14:45:10

Re: Rescue Mode

Post by arede » 2018/07/24 19:31:41

Thank you for your prompt reply.
The server is now working. So, I used putty to log in to root.

=========================================================================================================================
vi /boot/grub/grub.conf
----------------------------------------------------------------------------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-431.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=UUID=43d54bdc-af55-4bdf-92c7-a5cfc11345e8 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.el6.x86_64.img
title CentOS (2.6.32-754.2.1.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-754.2.1.el6.centos.plus.x86_64 ro root=UUID=43d54bdc-af55-4bdf-92c7-a5cfc11345e8 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-754.2.1.el6.centos.plus.x86_64.img
========================================================================================================================
ls -la /boot/
------------------------------------------------------------------------------------------------------------------------------------
total 58540
dr-xr-xr-x. 5 root root 4096 Jul 22 08:50 .
dr-xr-xr-x. 27 root root 4096 Jul 24 07:37 ..
-rw-r--r--. 1 root root 105195 Nov 22 2013 config-2.6.32-431.el6.x86_64
-rw-r--r--. 1 root root 109993 Jul 13 17:19 config-2.6.32-754.2.1.el6.centos.plus.x86_64
drwxr-xr-x. 3 root root 4096 Feb 7 2015 efi
-rw-r--r--. 1 root root 184688 May 10 2016 elf-memtest86+-5.01
drwxr-xr-x. 2 root root 4096 Jul 24 18:48 grub
-rw-------. 1 root root 17523591 Feb 7 2015 initramfs-2.6.32-431.el6.x86_64.img
-rw-------. 1 root root 22859111 Jul 22 05:57 initramfs-2.6.32-754.2.1.el6.centos.plus.x86_64.img
-rw-------. 1 root root 4837644 Feb 7 2015 initrd-2.6.32-431.el6.x86_64kdump.img
drwx------. 2 root root 16384 Feb 7 2015 lost+found
-rw-r--r--. 1 root root 183012 May 10 2016 memtest86+-5.01
-rw-r--r--. 1 root root 193758 Nov 22 2013 symvers-2.6.32-431.el6.x86_64.gz
-rw-r--r--. 1 root root 218912 Jul 13 17:20 symvers-2.6.32-754.2.1.el6.centos.plus.x86_64.gz
-rw-r--r--. 1 root root 2518236 Nov 22 2013 System.map-2.6.32-431.el6.x86_64
-rw-r--r--. 1 root root 2666637 Jul 13 17:19 System.map-2.6.32-754.2.1.el6.centos.plus.x86_64
-rwxr-xr-x. 1 root root 4128368 Nov 22 2013 vmlinuz-2.6.32-431.el6.x86_64
-rw-r--r--. 1 root root 166 Nov 22 2013 .vmlinuz-2.6.32-431.el6.x86_64.hmac
-rwxr-xr-x. 1 root root 4347024 Jul 13 17:20 vmlinuz-2.6.32-754.2.1.el6.centos.plus.x86_64
-rw-r--r--. 1 root root 182 Jul 13 17:20 .vmlinuz-2.6.32-754.2.1.el6.centos.plus.x86_64.hmac
=========================================================================================================================

Post Reply