Why is my windows HDD write protected?

1

1

I am trying to modify the HDD that windows 7 is running on using WinHex. But after i edit a few bytes of the physical HDD, i cannot save the changes as it says my HDD is write protected and locked.

Is there anyway to actually edit a HDD in windows while windows is running? Please help

notdefeated8

Posted 2011-06-25T10:30:23.547

Reputation: 11

I've tried numerous disk editors and they all give me the same error about the HDD being write protected, so this isn't just a winhex issue. – notdefeated8 – 2011-06-25T10:31:17.900

Answers

2

Open a command box and type in the following commands individually, and hit enter after each one.

diskpart
list disk
select disk 0 (or whatever disk you are trying to change)
attributes disk clear readonly (this command is not available on XP)

That should do it for you.

KCotreau

Posted 2011-06-25T10:30:23.547

Reputation: 24 985

1

Even chkdsk can not access a running c: drive. You need to boot from another disk/CD/USB Stick.

Other drives should work, as long as there is not a file open on the drive.

Turbo J

Posted 2011-06-25T10:30:23.547

Reputation: 1 919

so basically its impossible? – notdefeated8 – 2011-06-25T11:00:25.827

No. I just used WinHex to clone a disk and it marked it write-protected as well. This is due to WinHex being used as a forensics tools. See KCotreau answer for a solution. – rism – 2013-08-06T23:45:02.513