Reset password ubuntu using SytemRescueCD
Have you lost or forgotten password to login ubuntu. well, this started when I come to home my friend, and he complained to me can not login to ubuntu because forgotten password. then, I give a solution to reset the password using ubuntu SysemRescueCD
Previously I’ll tell you about SysemRescueCD..
SystemRescueCd is One of the most useful rescue disk for both Windows and Linux systems, Linux Live CD distributions that allow it to boot on both 32-bit or 64-bit Intel /AMD systems. SystemRescueCd is based on the Gentoo Linux distribution
You can download the iso image Linux SystemRescueCd here > Download SytemRescueCD
Once you download the ISO you can have it ready to run fast to burn photos toCD-ROM. This can be done under virtually all operating systems
SystemRescueCd also can be booted using a USB Stick, complete instructions for installing the SRCD to USB drives from Windows or Linux can be found here
1). Determine the disk partition your system. using fdisk
#fdisk -l Disk /dev/hda: 32.2 GB, 32212254720 bytes 255 heads, 63 sectors/track, 3916 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 3569 28667961 83 Linux /dev/sda2 3570 3916 2787277+ 82 Linux swap / Solaris
2). create a directory to mount your system partition, then mount your system partition
[sourcecode language=”bash”]
mkdir /mnt/system
mount /dev/sda1 /mnt/system[/sourcecode]
3). chroot into your system
[sourcecode language=”bash”]chroot /mnt/system[/sourcecode]
If you get an error about the wrong shell (SytemRescueCD uses ZSH by default but most Linux distros use BASH by default), you can export your shell and try again:
[sourcecode language=”bash”]
export SHELL=/bin/bash
chroot /mnt/system[/sourcecode]
4). Now reset password ubuntu system using passwd
passwd [user on your ubuntu]
example:
[sourcecode language=”bash”]
passwd noob
[/sourcecode]
good luck ..