From ceb5d994c81cde76ee7fa95ba0d507bdafd7da18 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Mon, 9 Apr 2018 19:29:41 +0100 Subject: core added how to recover root pass --- core/index.html | 5 +++-- core/reboot.html | 34 +++++++++++++++++++++++++++++++--- 2 files changed, 34 insertions(+), 5 deletions(-) (limited to 'core') 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 @@ -
  • 1.4. Prepare for reboot +
  • 1.4. Boot
  • 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 @@ - 1.4. Prepare Reboot + 1.4. Boot Core OS Index -

    1.4. Prepare for Reboot

    +

    1.4. Boot

    Follow this instructions with active chroot, first mount partitions @@ -176,7 +176,35 @@ } -

    1.4.4. Checkup

    +

    1.4.4. Recover

    + +

    Root password

    + +

    On grub boot menu press e to edit boot options, change;

    + +
    +        linux   /vmlinuz-4.9.92-gnu root=UUID=3bab76f8-e714-45f1-8e30-04cc8a09c3d1 ro single
    +        
    + +

    to;

    + +
    +        linux   /vmlinuz-4.9.92-gnu root=UUID=3bab76f8-e714-45f1-8e30-04cc8a09c3d1 ro init=/bin/bash
    +        
    + +

    Boot and mount;

    + +
    +        # mount -a
    +        # mount -o remount,rw /
    +        # passwd root
    +        # mount -o remount,ro /
    +        # sync
    +        
    + +

    Reboot computer using power / reset.

    + +

    1.4.5. Checkup

    If you have qemu installed you can see if it boots, in this example sdb is usb external drive;

    -- cgit 1.4.1-2-gfad0