CentOS 7 hangs at boot

General support questions
Post Reply
ozkin
Posts: 5
Joined: 2014/12/21 17:31:09

CentOS 7 hangs at boot

Post by ozkin » 2014/12/21 17:39:51

Hi,

My CentOS 7 machine does not boot and hangs at very early boot stage with last message printed "[ OK ] Reached target Initrd Default Target.".

I was running software updates when the machine accidentally was powered off (cable out, battery 0%). And then next boot didn't go work...

Any ideas how to fix it?

I read somewhere about enabling/disabling SELinux (using rescue mode), but that didn't help.
I saw a couple of similar topics here but no solution was provided.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: CentOS 7 hangs at boot

Post by gerald_clark » 2014/12/21 18:30:58

Boot the old kernel, yum remove the new kernel, and yum update kernel.

ozkin
Posts: 5
Joined: 2014/12/21 17:31:09

Re: CentOS 7 hangs at boot

Post by ozkin » 2014/12/22 05:21:42

The same happens with old kernel(s).

ozkin
Posts: 5
Joined: 2014/12/21 17:31:09

Re: CentOS 7 hangs at boot

Post by ozkin » 2014/12/22 21:21:01

Any other idea, suggestion, anyone?

What you think got broken during terminated software update which could cause Linux not to boot?... is it kernel, file system, some modules?

Cookacoo
Posts: 15
Joined: 2014/09/26 00:03:53

Re: CentOS 7 hangs at boot

Post by Cookacoo » 2015/01/05 02:58:49

ave you tried booting a live CentOS disk, andchrooting into the driver, and running

Code: Select all

sudo yum upgrade
It should complete the software updates, and hopefully fix the issue.

Hope this helps! :D

ozkin
Posts: 5
Joined: 2014/12/21 17:31:09

Re: CentOS 7 hangs at boot

Post by ozkin » 2015/01/07 17:10:34

I tried that but chrooting fails:

sh-4.2# chroot /mnt/sysimage/
chroot: failed to run command /bin/bash: Input/output error

pwd
Posts: 54
Joined: 2014/12/23 11:54:42

Re: CentOS 7 hangs at boot

Post by pwd » 2015/01/07 21:27:23

mount /proc /sys /dev to local system before chroot

Code: Select all

mount -o bind /sys /mnt/sysimage/sys
etc.
Then try

Code: Select all

chroot /mnt/sysimage/ /bin/sh
"God, root, what is difference?"

ozkin
Posts: 5
Joined: 2014/12/21 17:31:09

Re: CentOS 7 hangs at boot

Post by ozkin » 2015/01/07 21:41:54

Mounting /sys, /proc, /dev to local system with the given command did not help.
Same "Input/output error" for /bin/sh.

cartuchofc
Posts: 1
Joined: 2015/03/24 11:05:17

Re: CentOS 7 hangs at boot

Post by cartuchofc » 2015/03/24 11:10:52

i have the same issue. Are you fixed?
please help me
Thanks

User avatar
avij
Forum Moderator
Posts: 2723
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: CentOS 7 hangs at boot

Post by avij » 2015/03/24 14:50:01

cartuchofc, you may or may not have the same issue. There are multiple ways CentOS 7 can hang at boot. It would have been better to create a new topic and posting enough details about what you're trying to do, what you've tried so far and what the results have been.

Post Reply