there are several way to attempt this.
I would try starting windows explorer to bring up the list of files, then find the drive you want to change, then right mouse click to bring up the properties dialog, select the security tab and give all users full rights to the root of the drive and all of the subdirectories. I think the files system has some generic groups for "Everyone" and it should carry over to a new install of windows.
I think you might also be able to use the Icacls.exe command and reset the access control lists but it has been years since I used the command so you would have to check the command format.
most people would just run the takeown command on the root of the drive and have it recurse through all of the files and give the ownership to the new user SID.
FAT and FAT32 file system would not have the access control lists and protections that NTFS has.
maybe google "how to remove ACL from NTFS files"
to get a powershell script to remove the Access control lists
asdgw :
So how to eliminate this problem? So next time I format it doesn't ask me?