GRUB Parrot OS Recovery and Account Unlock Process

 1. Booting into Recovery Mode via GRUB

  1. Restart your computer and hold the Shift key until the GRUB menu appears.

    GRUB Menu
    Fig1: GRUB menu (hold Shift until this screen appears)

  2. From the GRUB menu, select Advanced options for Parrot.

    Advanced Options
    Fig2: Select "Advanced options for Parrot"

  3. From the next menu, choose Recovery Mode.

    Recovery Mode
    Fig3: Select “Recovery Mode”

2. Entering Root and Unlocking Accounts

  1. After entering recovery mode, select Root to enter single-user mode.

    Root Command Line
    Fig4: Enter root command line

  2. Unlock the root account. Type the following command to reset the root password:

    passwd root
    

    Enter and confirm the new password.

    Reset Root Password
    Fig5: Resetting root password

  3. Unlock your regular user account (if necessary). If your username is lrb, run:

    sudo passwd lrb
    sudo usermod -U lrb
    

    Unlock User Account
    Fig6: Unlocking user account

3. Restoring System Snapshot Using Timeshift

  1. Restore your system snapshot by typing the following command:

    sudo timeshift --restore
    

    Timeshift Command
    Fig7: Restoring system snapshot command

  2. Select the snapshot you want to restore from the list of available backups.

    Select Snapshot
    Fig8: Select the snapshot to restore

  3. After the restoration, you will be prompted to reboot the system:

    sudo reboot
    

    Reboot System
    Fig9: Reboot the system after restoration

4. Fixing GRUB Bootloader (No USB Needed)

If GRUB is broken, causing the system not to boot, follow these steps to repair GRUB:

  1. In Root mode, type the following commands:

    sudo grub-install /dev/sda
    sudo update-grub
    

    GRUB Install Command
    Fig10: GRUB install command

  2. Reboot the system:

    sudo reboot
    

    Reboot After GRUB Fix
    Fig11: Reboot after GRUB repair


Post a Comment

0 Comments