CentOS 7 hangs at boot
CentOS 7 hangs at boot
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.
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.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: CentOS 7 hangs at boot
Boot the old kernel, yum remove the new kernel, and yum update kernel.
Re: CentOS 7 hangs at boot
The same happens with old kernel(s).
Re: CentOS 7 hangs at boot
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?
What you think got broken during terminated software update which could cause Linux not to boot?... is it kernel, file system, some modules?
Re: CentOS 7 hangs at boot
ave you tried booting a live CentOS disk, andchrooting into the driver, and running
It should complete the software updates, and hopefully fix the issue.
Hope this helps!
Code: Select all
sudo yum upgrade
Hope this helps!
Re: CentOS 7 hangs at boot
I tried that but chrooting fails:
sh-4.2# chroot /mnt/sysimage/
chroot: failed to run command /bin/bash: Input/output error
sh-4.2# chroot /mnt/sysimage/
chroot: failed to run command /bin/bash: Input/output error
Re: CentOS 7 hangs at boot
mount /proc /sys /dev to local system before chroot
etc.
Then try
Code: Select all
mount -o bind /sys /mnt/sysimage/sys
Then try
Code: Select all
chroot /mnt/sysimage/ /bin/sh
"God, root, what is difference?"
Re: CentOS 7 hangs at boot
Mounting /sys, /proc, /dev to local system with the given command did not help.
Same "Input/output error" for /bin/sh.
Same "Input/output error" for /bin/sh.
-
- Posts: 1
- Joined: 2015/03/24 11:05:17
Re: CentOS 7 hangs at boot
i have the same issue. Are you fixed?
please help me
Thanks
please help me
Thanks
Re: CentOS 7 hangs at boot
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.