It can lock your disk and make your disk unbootable, and you can't start Windows, Windows RE / PE, MS-DOS or even linux.
NOTE: It's dangerous to use it in real machine, so please run it in virtual machine.
Download the latest release or compile it.
Lock: Open command prompt and enter lockdisk \\.\PhysicalDrive<NUM> -l
.
Unlock: Open command prompt and enter lockdisk \\.\PhysicalDrive<NUM> -u
.
Please replace <NUM>
with your disk number.
Lock: Open command prompt and enter lockdisk <path> -l
.
Unlock: Open command prompt and enter lockdisk <path> -u
.
Please replace <path>
with your virtual disk file.
- Write
unlock.img
to a floppy or a USB drive. - Boot using this floppy/USB drive, and follow the prompts on the screen, your disk will be unlocked.
- Reboot your computer using your disk.
- If you still fail to boot, try to use the fix steps for SCSI disk.
- Create a bootable FreeDOS USB drive containing partition tools. (e.g. DiskGenius)
- Boot using this USB drive, and empty the sector 0, sector 1024, and then you can reboot to Windows PE.
- Write sector 9 to sector 0 and sector 10 to sector 1024.
- In newer systems that use BCD to manage boot may fail to boot, so you must fix the BCD if you are using newer systems.