Download ubuntu or any flavour of it live CD.
Boot with the live CD and select the "Try ubuntu" option.
If you are using an esx machine, check this post on how to change the boot settings.
Open the terminal and get the original linux file system using below command.
Type sudo fdisk -l. In the output we are concerned to know which partition Linux is installed on and what name the hard disk is using. (e.g) in this case it is /dev/sda1 is the required partition. If you are sure about the partition you can skip this step.
Next we need to mount the Linux partition. Create a directory to act as mount point for the partition. Use ‘sudo mkdir /media/linx_part‘
Mount the linux partition using the command ‘sudo mount /dev/sda1 /media/linx_part‘
Change Root to the mount directory – ‘sudo chroot /media/sda1‘
Type passwd and then enter the new password to change the password.
Reboot the system.
There are many other options alng with live CD.
More info: Reference
Boot with the live CD and select the "Try ubuntu" option.
If you are using an esx machine, check this post on how to change the boot settings.
Open the terminal and get the original linux file system using below command.
Type sudo fdisk -l. In the output we are concerned to know which partition Linux is installed on and what name the hard disk is using. (e.g) in this case it is /dev/sda1 is the required partition. If you are sure about the partition you can skip this step.
Next we need to mount the Linux partition. Create a directory to act as mount point for the partition. Use ‘sudo mkdir /media/linx_part‘
Mount the linux partition using the command ‘sudo mount /dev/sda1 /media/linx_part‘
Change Root to the mount directory – ‘sudo chroot /media/sda1‘
Type passwd and then enter the new password to change the password.
Reboot the system.
There are many other options alng with live CD.
More info: Reference
No comments:
Post a Comment