Reset password in WinXP or Vista

Boot from Linux CD with ntchpw utility installed. Most of the time I used PING. Pretty sure most of Live CD’s do have that utility.

Mount Windows partition to Linux:
ntfs-3g /dev/hda1 /mnt/ntfs
OR
mount -t ntfs-3g /dev/hda1 /mnt/ntfs -o force
The last one is used if windows did not shut down properly.
In Windows partition Navigate to WINDOWS/system32/config
Execute chntpw SAM. As a safety measure you can copy SAM file somewhere available to restore, if things go wrong.
This utility will ask you number of options. Blank the password, do not set a new one. Agree to write hive files when finish.
Restart computer to boot into Windows.

By default chntpw is loading administrator account. You can load another user if required. Read man page for chntpw to figure out how to do this.

Mount NTFS in Lunix as user

Put into your Linux box a HDD with NTFS system on it.. you would want to be able to read and write to it under user account, not only as root.


root#: fdisk -l

To find all the hard drives installed in your system.. locate the one that looks like freshly installed and

root#: mount -t ntfs-3g /dev/sdb1 /mnt/hdd -o force,uid=userID

where sdb1 is the name of that HDD you want to mount, and userID is your username.