Centos 6 unable to proceed boot

General support questions
jcdc0504
Posts: 6
Joined: 2019/07/03 08:37:42

Centos 6 unable to proceed boot

Post by jcdc0504 » 2019/07/03 08:44:57

Hello!

I need some help

I did yum update with the system and tried installing some dependencies of oracle instant client in order to get my php project working.

but i stuck in installation of php-devel wherein i need the phpize command.

then i found out while trying to search how to install phpize, my ssh to server returns access denied. no one can ssh to server anymore.

i tried reboot now command and the system stucked at system is going down for an hour and so what i did is pressed the restart button of the server

and now system dont boot. i get error says

"init : Failed to spawn readahead-collector main process: unable to execute: No such file or directory
init : Failed to spawn rcS pre-start process: unable to execute: No such file or directory
init : Failed to spawn readahead main process: unable to execute: No such file or directory
init : Failed to spawn readahead-collector post-stop process: unable to execute: No such file or directory
init : Failed to spawn rcS post-stop process: unable to execute: No such file or directory
init : Failed to spawn readahead-disable-services main process: unable to execute: No such file or directory"

I am really need of help please. I tried rescue mode but i dont know what to do inside the rescue mode.
Attachments
66457921_331809844401220_8457790890822336512_n.jpg
66457921_331809844401220_8457790890822336512_n.jpg (81.75 KiB) Viewed 5525 times

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6 unable to proceed boot

Post by TrevorH » 2019/07/03 09:22:03

I would start by running fsck against all your filesystems. Or if they are xfs, xfs_repair. You'll need to do that from a rescue boot and you must make sure they are all unmounted before you run it. I suspect it would be useful to see what happened before the messages you already showed.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jcdc0504
Posts: 6
Joined: 2019/07/03 08:37:42

Re: Centos 6 unable to proceed boot

Post by jcdc0504 » 2019/07/03 09:25:36

Hello, thanks for your reply. im not good in linux. how can i make sure its all unmounted? im current in rescue mode and dont know what to do inside the shell

jcdc0504
Posts: 6
Joined: 2019/07/03 08:37:42

Re: Centos 6 unable to proceed boot

Post by jcdc0504 » 2019/07/03 09:32:41

TrevorH wrote:
2019/07/03 09:22:03
I would start by running fsck against all your filesystems. Or if they are xfs, xfs_repair. You'll need to do that from a rescue boot and you must make sure they are all unmounted before you run it. I suspect it would be useful to see what happened before the messages you already showed.
I tried umount -a
then i got /mnt/sysimage/dev is busy

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6 unable to proceed boot

Post by TrevorH » 2019/07/03 09:40:39

If /mnt/sysimage is mounted then you told the rescue system to do so. It gives you a choice of what to do just before it drops you to a shell and one of t the choices is to mount your existing system on /mnt/sysimage. You don't want to do that. There is another option that just opens a root command prompt and does not mount the filesystems, use that.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jcdc0504
Posts: 6
Joined: 2019/07/03 08:37:42

Re: Centos 6 unable to proceed boot

Post by jcdc0504 » 2019/07/03 09:47:33

TrevorH wrote:
2019/07/03 09:40:39
If /mnt/sysimage is mounted then you told the rescue system to do so. It gives you a choice of what to do just before it drops you to a shell and one of t the choices is to mount your existing system on /mnt/sysimage. You don't want to do that. There is another option that just opens a root command prompt and does not mount the filesystems, use that.
Yes, i tried not mounting automatically but i got error when i tried fsck.

message says cannot find /etc/fstab

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6 unable to proceed boot

Post by TrevorH » 2019/07/03 10:34:01

You have to know the device names that contain your filesystems to provide that as a parameter to fsck when you start it - e.g. fsck /dev/sda1 (do not blindly cut and paste, check what device names your system is set up to use first).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jcdc0504
Posts: 6
Joined: 2019/07/03 08:37:42

Re: Centos 6 unable to proceed boot

Post by jcdc0504 » 2019/07/03 10:55:48

TrevorH wrote:
2019/07/03 10:34:01
You have to know the device names that contain your filesystems to provide that as a parameter to fsck when you start it - e.g. fsck /dev/sda1 (do not blindly cut and paste, check what device names your system is set up to use first).
i did fdisk -l
and see /dev/sda1 is my device boot

tried fsck /dev/sda1
i got WARNING: couldnt open /etc/fstab: No such file or directory
/dev/sda1: clean, 39/128000 files, 14352/128000 blocks

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6 unable to proceed boot

Post by TrevorH » 2019/07/03 11:59:20

Yes, most likely /dev/sda1 will be your /boot partition. Now you need to do the same to the other filesystems that you have on there. They may be on partitions or they may be on LVM Logical Volumes. You may need to run vgchange -ay and then lvs to get a list of the available LVs and run fsck against those using /dev/mapper/$volumegroup-$lvname (name substitution required).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jcdc0504
Posts: 6
Joined: 2019/07/03 08:37:42

Re: Centos 6 unable to proceed boot

Post by jcdc0504 » 2019/07/03 15:45:07

Hello Mr Trevor, I am currently not with the server. Will send a reply once I get back again to the system

Post Reply