1

I'm having trouble with my newly installed hard drive, when ever I format it I can use it as normal and change permissions and ownership but after restarting my pc I get permission errors and cant install or move files to the drive and have to re format to use it again this is my 3rd hard drive and this problem also happened with my first 2 hard drives but I cant remember how I fixed them. would anyone be able to help fix this problem. ownership of the drive defaults to system upon reformatting ive tried changing it to my user but still does not work also default permissions work until i restart the pc i think its something to do with inheritance but cant find anything wrong on that front ive also tried using the cmd to takeown and icacls commands but get access denied after restarting

enter image description here enter image description here enter image description here enter image description here enter image description here

8
  • 1
    You should edit your question and use the Image button to upload your pictures so everyone can see them.
    – Ramhound
    Commented Jan 21, 2021 at 21:58
  • done. thanks Ramhound
    – user1264888
    Commented Jan 21, 2021 at 22:07
  • 1
    Your first screenshot shows the permissions of Authenticated User which isn't helpful, what are the permissions of Users and Administrators. Is the owner of the folder, a user that actually exists on the system?
    – Ramhound
    Commented Jan 21, 2021 at 22:11
  • users and administrators have full control before and after restarting and yea the owner is my account and im an administrator
    – user1264888
    Commented Jan 21, 2021 at 22:14
  • 1
    You really should edit your question instead of replying with commentary.
    – Ramhound
    Commented Jan 21, 2021 at 22:23

1 Answer 1

0

As long as it's a data disk and not a system disk (one where you install programs on, like C:), you can try running this command in an elevated command prompt (meaning you open command prompt with administrator privileges):

icacls "D:\*" /q /c /t /reset

This should reset permission for all files and folders under D:.

As @Ramhound noted, you would need default permissions on D:\ first, meaning you would probably have to re-format your drive before running the command.

You can find Microsoft documentation on icalcs utility here.

5
  • 1
    Would that not require the user to have permissions, based on the screenshots, after a reboot the user doesn’t have any permissions except maybe read (but unclear since the screenshots are showing the wrong user)
    – Ramhound
    Commented Jan 22, 2021 at 0:05
  • You are right, the user would probably have to have to re-format his drive to get default permissions for D: before running this command. I will include it in my answer. Not sure if it will work in this case, but it's worth trying. It solved weird permission issues for me some time ago.
    – pure.by
    Commented Jan 22, 2021 at 0:25
  • Tried this fix but still having same problem.
    – user1264888
    Commented Jan 22, 2021 at 0:37
  • @Ramhound Should I delete my answer now we know that it did not help?
    – pure.by
    Commented Jan 22, 2021 at 0:41
  • That’s entirely up to you.
    – Ramhound
    Commented Jan 22, 2021 at 0:45

You must log in to answer this question.