I recently tried to dual-boot windows 10 and Ubuntu 15.10. I accidentally deleted all windows files in the process, with no backup. now, I can't get into my Ubuntu account because I had no password! HELP!!!!
Asked
Active
Viewed 82 times
-1
-
you may be able to recover some files using testdisk http://askubuntu.com/questions/286181/how-do-i-recover-my-accidentally-lost-windows-partitions-after-installing-ubuntu – mchid Nov 24 '15 at 06:27
1 Answers
1
As quoted by the official Ubuntu LostPassword documentation, do the following to login to Ubuntu:
- Reboot your computer.
- Hold Shift during boot to start GRUB menu.
- Highlight your image and press E to edit.
- Find the line starting with "linux" and append rw init=/bin/bash at the end of that line.
- Press Ctrl + X to boot.
- Type in passwd .
- Set your password.
As for the windows, I would recomend contacting microsoft to get your license back. Also, if you have a windows recovery partition, you can boot off of that and re-install windows. Best of luck!