-
Boot with a LiveCD (e.g. Ubuntu, SystemRescueCD, Knoppix)
-
fdisk -l (determine the device of the partition) optionally: fdisk /dev/sda or /dev/hda
alternatively, cat /etc/fstab - /dev/hda1 in this case -
If Necessary: mkdir /mnt/passwordreset
-
sudo mount /dev/sda1 /mnt/passwordreset (mount the partition) alternatively: ntfs-3g /dev/sda1 /mnt/windows
-
LINUX sudo chroot /mnt/passwordreset SYSTEMRESCUECD: sudo chroot /mnt/passwordreset /bin/bash cat /mnt/passwordreset/etc/passwd passwd root reboot
-
WINDOWS sudo chntpw -l /mnt/sda1/windows/system32/config/SAM (list the users in the SAM file) sudo chntpw -u
/mnt/sda1/windows/system32/config/SAM (reset the password - blank recommended) Save the changes to the hive umount /mnt/passwordreset (unmount the disk) reboot
alternatively: halt or shutdown -r now (take out the livecd before rebooting)