I tried if this works on my friends computer and you know what happened.
Please help me fix the computer executing "init 0
" as root on startup..
Help me fix this and retrieve my OS back... intact... as it was!
Asked
Active
Viewed 102 times
0

juggernauthk108
- 961
-
1Did you try to enter in recovery mode and fix it back to level 2. – NonStandardModel Apr 28 '16 at 18:58
1 Answers
1
You should enter in recovery mode. Start the machine and when the BIOS passes press (hold) SHIFT. (Once the Ubuntu logo appears you have missed it. Do it again.) When Grub appears select "Advanced Options" and then select the line where you see something like "recovery mode". After while few options will appear. Select "Drop to root shell prompt". Partition will be mounted in "read" state. Write
mount -o remount,rw /
into the shell to remount it in "read-write" mode. You can change the /etc/rc.local back to level 2 with some Terminal editor (nano?). Be carefull in recovery mode not to make more damage! If you need to mount the home partition write
mount --all
after remounting the root partition.
Booting into recovery mode reference

NonStandardModel
- 3,450
-
-
1what if i did'nt know the root password? Would you be able to still save my job? – juggernauthk108 Apr 29 '16 at 08:49
-
If you selected "Drop to root shell prompt" after entering into recovery mode, it shouldn't ask for password. You can even change the root password there. – NonStandardModel Apr 29 '16 at 09:26
-
-
Hmm...It should not...I do not know if this can have something to do with changing root pass before. ex: if the root pass was changed with "sudo passwd" instead with only "passwd" when loged in as root. Anyhow...I will try when I come home from work. – NonStandardModel Apr 29 '16 at 10:12
-
Found this...http://askubuntu.com/questions/121698/how-do-i-reset-a-lost-password-using-recovery-mode-requires-me-to-type-the-pass ... your job can still be saved! – NonStandardModel Jun 08 '16 at 12:35