diff options
author | Silvino Silva <silvino@bk.ru> | 2018-04-09 19:29:41 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2018-04-09 19:29:41 +0100 |
commit | ceb5d994c81cde76ee7fa95ba0d507bdafd7da18 (patch) | |
tree | 4c186eb400ca4593307ea6a8c039a8e24991d728 /core | |
parent | 87bc35062d0cf0eab0189349b20c8d83d7242e73 (diff) | |
download | doc-ceb5d994c81cde76ee7fa95ba0d507bdafd7da18.tar.gz |
core added how to recover root pass
Diffstat (limited to 'core')
-rw-r--r-- | core/index.html | 5 | ||||
-rw-r--r-- | core/reboot.html | 34 |
2 files changed, 34 insertions, 5 deletions
diff --git a/core/index.html b/core/index.html index 7818109..e6e6c62 100644 --- a/core/index.html +++ b/core/index.html @@ -58,12 +58,13 @@ </ul> </li> - <li><a href="reboot.html">1.4. Prepare for reboot</a> + <li><a href="reboot.html">1.4. Boot</a> <ul> <li><a href="reboot.html#linux">1.4.1. Kernel</a></li> <li><a href="reboot.html#dracut">1.4.2. Dracut</a></li> <li><a href="reboot.html#grub">1.4.3. Grub</a></li> - <li><a href="reboot.html#checkup">1.4.4. Checkup</a></li> + <li><a href="reboot.html#recover">1.4.4. Recover</a></li> + <li><a href="reboot.html#checkup">1.4.5. Checkup</a></li> </ul> </li> </ul> diff --git a/core/reboot.html b/core/reboot.html index ea174a2..1eb6808 100644 --- a/core/reboot.html +++ b/core/reboot.html @@ -2,13 +2,13 @@ <html dir="ltr" lang="en"> <head> <meta charset='utf-8'> - <title>1.4. Prepare Reboot</title> + <title>1.4. Boot</title> </head> <body> <a href="index.html">Core OS Index</a> - <h1>1.4. Prepare for Reboot</h1> + <h1>1.4. Boot</h1> <p>Follow this instructions with active chroot, first <a href="configure.html#chroot">mount partitions</a> @@ -176,7 +176,35 @@ } </pre> - <h2 id="checkup">1.4.4. Checkup</h2> + <h2 id="recover">1.4.4. Recover</h2> + + <h3>Root password</h3> + + <p>On grub boot menu press e to edit boot options, change;</p> + + <pre> + linux /vmlinuz-4.9.92-gnu root=UUID=3bab76f8-e714-45f1-8e30-04cc8a09c3d1 ro single + </pre> + + <p>to;</p> + + <pre> + linux /vmlinuz-4.9.92-gnu root=UUID=3bab76f8-e714-45f1-8e30-04cc8a09c3d1 ro init=/bin/bash + </pre> + + <p>Boot and mount;</p> + + <pre> + # mount -a + # mount -o remount,rw / + # passwd root + # mount -o remount,ro / + # sync + </pre> + + <p>Reboot computer using power / reset.</p> + + <h2 id="checkup">1.4.5. Checkup</h2> <p>If you have qemu installed you can see if it boots, in this example sdb is usb external drive;</p> |