Using LinuxLite to repair Win 7 password - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20) +--- Thread: Using LinuxLite to repair Win 7 password (/showthread.php?tid=2296) |
Using LinuxLite to repair Win 7 password - Colin23erk - 10-13-2015 Is there an easy way to use LinuxLite to repair Win 7 password without using a CD or USB . A third party has locked me out of Win 7 which is dual booted with LinuxLite . I have tried several Bootable repair Disks which have either failed to boot properly or require Input details which I am not able to supply . I have used Synaptic to install [color=rgb(34, 34, 34)]chntpw[/color] [color=rgb(34, 34, 34)][/size]From How To Geek i have tried to follow their method[/color] [color=rgb(34, 34, 34)][/size][/color] [color=rgb(34, 34, 34)][/size][/color][color=rgb(34, 34, 34)][/size]Using chntpw to reset your password[/color][color=rgb(34, 34, 34)][/size]Before running chntpw, you will have to mount the hard drive that contains your Windows installation. In most cases, Ubuntu 9.10 makes this simple.[/color] [color=rgb(34, 34, 34)][/size]Click on Places at the top-left of the screen. If your Windows drive is easily identifiable – usually by its size – then left click on it.[/color] [color=rgb(34, 34, 34)][/size][/color] [color=rgb(34, 34, 34)][/size]If it is not obvious, then click on Computer and check out each hard drive until you find the correct one.[/color] [color=rgb(34, 34, 34)][/size][/color] [color=rgb(34, 34, 34)][/size]The correct hard drive will have the WINDOWS folder in it. When you find it, make a note of the drive’s label that appears in the menu bar of the file browser.[/color] [color=rgb(34, 34, 34)][/size][/color] [color=rgb(34, 34, 34)][/size]If you don’t already have one open, start a terminal window by going to Applications > Accessories > Terminal.[/color] [color=rgb(34, 34, 34)][/size][/color] [color=rgb(34, 34, 34)][/size]In the terminal window, enter the commands[/color][/size][color=rgb(34, 34, 34)]cd /media ls[/color][color=rgb(34, 34, 34)][/size]pressing enter after each line. You should see one or more strings of text appear; one of those strings should correspond with the string that appeared in the title bar of the file browser earlier.[/color] [color=rgb(34, 34, 34)][/size]Change to that directory by entering the command[/color][/size][color=rgb(34, 34, 34)]cd <hard drive label>[/color][color=rgb(34, 34, 34)][/size]Since the hard drive label will be very annoying to type in, you can use a shortcut by typing in the first few letters or numbers of the drive label (capitalization matters) and pressing the Tab key. It will automatically complete the rest of the string (if those first few letters or numbers are unique).[/color] [color=rgb(34, 34, 34)][/size][/color] [color=rgb(34, 34, 34)][/size]We want to switch to a certain Windows directory. Enter the command:[/color][/size][color=rgb(34, 34, 34)]cd WINDOWS/system32/config/[/color][color=rgb(34, 34, 34)][/size]Again, you can use tab-completion to speed up entering this command.[/color] [color=rgb(34, 34, 34)][/size][/color] [color=rgb(34, 34, 34)][/size]To change or reset the administrator password, enter:[/color][/size][color=rgb(34, 34, 34)]sudo chntpw SAM[/color][color=rgb(34, 34, 34)][/size]SAM is the file that contains your Windows registry. You will see some text appear, including a list of all of the users on your system.[/color] [color=rgb(34, 34, 34)][/size] [/size][/color] Quote:[color=rgb(34, 34, 34)] Re: Using LinuxLite to repair Win 7 password - torreydale - 10-13-2015 You may want to modify your post. What ended up being posted is super small in size. Very hard to read and, thus, could limit the help you receive. Re: Using LinuxLite to repair Win 7 password - Wirezfree - 10-13-2015 Hi, It seems I'm not the only one who get the funny posts. I now pre-write my posts in Leafpad, and then just copy 'n' paste into forum. So without knowing what you have tried...?? This is what Google shows... Fix Windows 7 password with Linux Re: Using LinuxLite to repair Win 7 password - Colin23erk - 10-14-2015 A third party has locked me out of Win 7 which is dual booted with LinuxLite . I have tried several Bootable repair Disks which have either failed to boot properly or require Input details which I am not able to supply . I have used Synaptic to install [color=rgb(34, 34, 34)]chntpw[/color] F[/color][color=rgb(34, 34, 34)]rom How To Geek i have tried to follow their method[/color] [/color][color=rgb(34, 34, 34)]Using chntpw to reset your password[/color][color=rgb(34, 34, 34)] [/color][color=rgb(34, 34, 34)]Before running chntpw, you will have to [/color][/color][color=rgb(34, 34, 34)]mount[/color][/color][color=rgb(34, 34, 34)] the hard drive that contains your Windows installation. In most cases, Ubuntu 9.10 makes this simple.[/color][/color][color=rgb(34, 34, 34)]Click on Places at the top-left of the screen. If your Windows drive is easily identifiable – usually by its size – then left click on it.[/color][/color][color=rgb(34, 34, 34)]If it is not obvious, then click on Computer and check out each hard drive until you find the correct one.[/color][/color][color=rgb(34, 34, 34)]The correct hard drive will have the WINDOWS folder in it. When you find it, make a note of the drive’s label that appears in the menu bar of the file browser.[/color] Mine is -(/media/sda1/Windows/System32/config/ ) [/color][color=rgb(34, 34, 34)]If you don’t already have one open, start a terminal window by going to Applications > Accessories > Terminal.[/color][/color][color=rgb(34, 34, 34)]In the terminal window, enter the commands[/color] [/color][color=rgb(34, 34, 34)]cd /media[/color] [/color][/color][color=rgb(34, 34, 34)]ls[/color] [/color][color=rgb(34, 34, 34)]pressing enter after each line. You should see one or more strings of text appear; one of those strings should correspond with the string that appeared in the title bar of the file browser earlier.[/color][/color][color=rgb(34, 34, 34)]Change to that directory by entering the command[/color] [/color][color=rgb(34, 34, 34)]cd <hard drive label>[/color][/color][color=rgb(34, 34, 34)]Since the hard drive label [/color] [/color][color=rgb(34, 34, 34)]will be very annoying to type in, you can use a shortcut by typing in the first few letters or numbers of the drive label[/color] [/color] [/color][color=rgb(34, 34, 34)][/code] colin@colin-NC110:~$ cd /media colin@colin-NC110:/media$ ls Backup cdrom colin floppy floppy0 sda1 colin@colin-NC110:/media$ cd sda1/ colin@colin-NC110:/media/sda1$ cd WINDOWS/system32/config/ bash: cd: WINDOWS/system32/config/: No such file or directory colin@colin-NC110:/media/sda1$ [/color] Code: [/size][/b][/color] Re: Using LinuxLite to repair Win 7 password - avj - 10-14-2015 If I am reading this correctly you should be able to just open the file manager and navigate to the WINDOWS/system32/config folder, once there right click on an empty space in the window and select "Open Terminal Here" and you will be in the right place no need to do all the cd commands. Then all you should have to do is run the following in the terminal you opened. Code: chntpw –l SAM Code: chntpw –u geek SAM Info found here: http://www.howtogeek.com/howto/windows-vista/change-your-forgotten-windows-password-with-the-linux-system-rescue-cd/ Re: Using LinuxLite to repair Win 7 password - Colin23erk - 10-14-2015 Thanks avj I tried what you suggested with no luck - tried the 2nd one with my user name Code: colin@colin-NC110:/media/sda1/Windows/System32/config$ chntpw –l SAM Colin Re: Using LinuxLite to repair Win 7 password - Colin23erk - 10-14-2015 Not sure if it helps -- this is the contents of the /media/sda1/Windows/System32/config/ Files Quote:/media/sda1/Windows/System32/config/Before Compact Colin Re: Using LinuxLite to repair Win 7 password - firenice03 - 10-14-2015 Both -l and -u commands are failing.. The command Code: chntpw –l SAM The command Code: chntpw –u geek SAM Not sure but maybe helpful for you guys??? 99.6 version?? http://askubuntu.com/questions/162267/problem-with-using-chntpw-in-ubuntu-to-reset-windows-7-password Additionally - the instruction here http://www.chntpw.com/reset-windows-7-admin-password-with-ubuntu/ suggests adding the drive identifier when changing directories... Re: Using LinuxLite to repair Win 7 password - paul1149 - 10-14-2015 Another thing you can try is to rename SAM to SAM.old and then copy the version of SAM from ../system32/RegBack over to the ../config folder. This should give you your previous password back if the date of the backup SAM file predates the problem. The entries, Last Known Good Configuration, and ~Revert to Restore Point~ in the Win7 Advanced Boot menu (F8 as Windows just begins to load) might do the same thing, not sure. Re: Using LinuxLite to repair Win 7 password - Colin23erk - 10-14-2015 Hi Paul Thanks for the idea but I cannot find RegBack Quote:../system32/RegBack over to the ../config folder. I am getting the feeling that the only way to go is to Reinstall Win7 . Fortunately I keep all my own Data / files in a separate Partition so they should not be affected as I can use them with LinuxLite . I have always kept them separate from Windows from the days when crashes were a fact of life Colin |