# Reset Root Password

**URL:** <https://deeptalk.lambda.ai/t/reset-root-password/2086>\
**Category:** Technical Help\
**Created:** [January 7, 2021, 7:14pm UTC](https://deeptalk.lambda.ai/t/reset-root-password/2086 "2021-01-07T19:14:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy](https://sea1.discourse-cdn.com/flex019/user_avatar/deeptalk.lambda.ai/jeremy/32/235_2.png) [@jeremy](https://deeptalk.lambda.ai/u/jeremy)\
**Post date:** [January 7, 2021, 7:14pm UTC](https://deeptalk.lambda.ai/t/reset-root-password/2086/1 "2021-01-07T19:14:04Z")

</div>

### 1. Create a bootable USB of Ubuntu(or any flavor of Linux)

We discuss creating a bootable USB [here](https://deeptalk.lambda.ai/t/create-usb-for-installing-ubuntu-18-04/482).

### 2. Boot into the live image

Power the machine on and press **Del** when you see the Asus logo.  
Then press **F8** to open the boot menu. Select your USB drive.  
From here, select _Try Ubuntu without Installing_.

### 3. Mount the root partition:

`lsblk`(list block) lists all of the disks/drives seen by your machine.  
Open up a terminal and enter `lsblk` to see the existing partitions.

This is a snippet from `lsblk` on my machine:

```auto
...
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part
└─nvme0n1p2 259:2 0 931G 0 part
...

```

Given the size of `nvme0n1p2`, I know it’s my root partition.  
I mount it to the `/mnt` directory with the following:

```auto
sudo mount /dev/nvme0n1p2 /mnt

```

1. Chroot(change root) into the directory.  
In the terminal, run:

```auto
sudo chroot /mnt

```

### 5. Change your Password

Run `passwd` to change the root password.

Optionally run `passwd <your username>` to change the password for your user.

### 6. Syncing & Umounting the disk:

Finally, run:

```auto
exit
sudo umount /mnt
sudo sync

```

Remove the USB and reboot.
