my bash file is deleted , trying to restore from kernel arguments
hi,
i have deleted my bash file and thus the system is not letting me to bash shell now i have a kernel panic situation i want to log in using ksh shell passing arguments from kernel lets begin.. |
Please tell us which distro & version you have, and give more details.
Which 'bash' file? 1. /bin/bash - the actual shell itself 2. .bashrc 3. .bash_profile 4. other |
yeah you got it right
its the /bin/bash file i am using RHEL5 |
I'd use the installation DVD in rescue mode ie at the first text prompt type
linux rescue then it will run from the DVD & mount your HDD as another disk. You can fix your login to use /bin/ksh or whatever so you can at least get in. You should then be able to use yum to re-install bash. |
Quote:
Then you can do 1 of 2 things... Reinstall bash Copy bash from the rescue mode -C |
the point is i don't want to use the dvd , or linux rescue mode... i want to fx it by passing arguments from the kernel to get into the computer using ksh shell
|
Quote:
Be truthful. |
Quote:
-C |
correct
i think something like init=/bin/ksh should work |
Quote:
-C |
All times are GMT -5. The time now is 01:29 PM. |