Grub and Kernel parameter init=/bin/bash
Grub and Kernel parameter init=/bin/bash
...at the grub menu
I enter "a"
I append "init=/bin/bash" without quotes to the boot loader instruction.
System boots to a root prompt
I run passwd to recover
This is where the problem is ..
I can not run reboot or shutdown -r now.
As some other suggested
I :
mount /proc
mount -i remount,rw /
Still unable to reboot system.
Also had the same situation when appending "1" to the end of the boot loader instruction.
Centos 6.7 is running as a VM under VMware Workstation 12. I could obvious reset the guest but that really doesnt solve my problem.
Any help would be appreciated.
Thanks alot in advance !
Sum
I enter "a"
I append "init=/bin/bash" without quotes to the boot loader instruction.
System boots to a root prompt
I run passwd to recover
This is where the problem is ..
I can not run reboot or shutdown -r now.
As some other suggested
I :
mount /proc
mount -i remount,rw /
Still unable to reboot system.
Also had the same situation when appending "1" to the end of the boot loader instruction.
Centos 6.7 is running as a VM under VMware Workstation 12. I could obvious reset the guest but that really doesnt solve my problem.
Any help would be appreciated.
Thanks alot in advance !
Sum
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Grun and Kernel parameter init=/bin/bash
What do you mean by "I can not run reboot or shutdown -r now."?
Re: Grun and Kernel parameter init=/bin/bash
any of the 5 methods to shutdown/reboot the system fail.
I get an error message when trying any of the five shutdown/reboot method. See the attachment.
Please see the file attached.
Again for clarity
At the grub menu, I enter "a", I add "init=/bin/bash" without quotes at the end of the Kernel boot parameters.
I press enter and boot to bash.
after running passwd I attempt to reboot as shown in the attachment. But am unable to reboot or shutdown. The only way to do so is to use VMWare power reset on the guest.
Thanks for the help !!
Sum
I get an error message when trying any of the five shutdown/reboot method. See the attachment.
Please see the file attached.
Again for clarity
At the grub menu, I enter "a", I add "init=/bin/bash" without quotes at the end of the Kernel boot parameters.
I press enter and boot to bash.
after running passwd I attempt to reboot as shown in the attachment. But am unable to reboot or shutdown. The only way to do so is to use VMWare power reset on the guest.
Thanks for the help !!
Sum
- Attachments
-
- NoReboot.JPG (48.52 KiB) Viewed 18710 times
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Grun and Kernel parameter init=/bin/bash
/com/ubuntu/upstart ?
Re: Grun and Kernel parameter init=/bin/bash
I'm sorry but I don't understand why you refer to Ubuntu ... and at least from what I've been taught so far upstart isn't used in centos and will be depreciated.
Re: Grun and Kernel parameter init=/bin/bash
... and by the way, the same situation is noted buy appending run level 1.
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: Grun and Kernel parameter init=/bin/bash
Then look at your attachment, critically.sumncguy wrote:I'm sorry but I don't understand why you refer to Ubuntu ...
You have lines which show /com/ubuntu/upstart.
100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
Re: Grun and Kernel parameter init=/bin/bash
Yep. I certainly did ... and I'm all ears !!!
see the attached graphic
see the attached graphic
- Attachments
-
- wut_the_heck.JPG (82.65 KiB) Viewed 18545 times
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: Grun and Kernel parameter init=/bin/bash
It is your system that makes references to Ubuntu, so what have you done to it? We have no idea.
A CentOS 6 system does not reference Ubuntu.
A CentOS 6 system does not reference Ubuntu.
100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
Re: Grun and Kernel parameter init=/bin/bash
Well ... the only thing I can suggest is interrupt the boot loader
Hit a to append, then add init=/bin/bash at the end of the kernel boot command and press enter.
and try it. I am running Centos 6.7, if you need more information then that I can grab more screen shots. .... see if you get the same results.
Hit a to append, then add init=/bin/bash at the end of the kernel boot command and press enter.
and try it. I am running Centos 6.7, if you need more information then that I can grab more screen shots. .... see if you get the same results.