Reset password ubuntu using SytemRescueCD

SHARE :Share on Google+3Share on Facebook2Tweet about this on Twitter0Share on StumbleUpon0Pin on Pinterest0Share on Reddit0Share on LinkedIn0

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..

hotw to reset password ubuntu using systemrecuecd

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

mkdir /mnt/system
mount /dev/sda1 /mnt/system

3). chroot into your system

chroot /mnt/system

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:

export SHELL=/bin/bash
chroot /mnt/system

4). Now reset password ubuntu system using passwd

passwd [user on your ubuntu]

passwd noob

good luck ..

You may also like...