Skip to main content

Posts

Showing posts from March, 2017

Change Ubuntu user password

go to linux recovery mode pressing esc button till boot option menu appears. then select advance options then select recovery mode option. then you should see following ui. select update grub boot-loader option to get the read write access to the system. then select drop to root shell prompt option. then press enter to go to root terminal. now you can change the password easily root@ubuntu:~# passwd nuwans Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully root@ubuntu:~#   you are done.   troubleshooting   you might see a error like key string is not matching once you logged in to the system. you can delete  the key-string file to create a new file.   rm ~/.local/share/keyrings/login.keyring    

Did you delete your fstab file in ubuntu 16.04 ?

  P ossible result would be hang your booting at a black screen.   F ix would be restoring the fstab file. Unfortuanatly if you don’t have a back up file have to recreate the file manually.   Y ou should be able to go to recovery mode by pressing esc button till boot option menu appears.  Then select advance options and then select recovery mode.   T hen should see a white ui window.  Select Update g rub bootloader to to get read write access to file system. Then select drop to root shell prompt. N ow sudo blkid file get partition info   sudo blkid   /dev/sda1: UUID="78985254-78ae-45b3-923d-804c7d56a7dc" TYPE="ext4" PARTUUID="ab55e511-01" /dev/sda2: UUID="a30e14b5-0203-4ef3-a135-2dad9c26c309" TYPE="swap" PARTUUID="ab55e511-02" /dev/sda3: UUID="377ce2fa-29c3-46d2-87da-88ff55502d66" TYPE="ext4" PARTUUID="ab55e511-03" Since