Alex_B
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору На сайте http://superuser.com/ Oct 23 '12 at 18:09 задан вопрос, который я сформулировал выше и которые (мой и его) остались без ответа. I am wondering exactly what the meaning is of the "Read-only" disk and volume attributes that you can twiddle in diskpart on Windows 7. I am trying to set up an external USB drive as an installation medium for my own software, so I'd like to protect it against casual or inadvertent changes by users who it is given to, so they don't screw up the installation files they might need in the future. From what I can tell by experimentation with diskpart, the volume read-only attribute is actually stored on the physical disk somewhere, because I can set it and it shows up when I take the drive to another machine. This is great because my users can't (easily) change any of the files on the volume, or format it from Windows explorer. However, the disk read-only attribute seems to be just an aspect of how the current machine is accessing the drive. When I set it I can no longer delete the volume in the disk via Disk Management, but when I take the drive to another machine, the attribute is no longer set and in Disk Management I can delete the volume on the disk. I guess I'm not that worried about my users doing that, but I am annoyed that I don't understand what these attributes are really doing. Another thing that I don't understand is that the "volume" read-only attribute actually seems to be global to the disk - if I have two volumes on the disk, and I set the readonly flag on one of them, then it gets set on the other one too. ?!? I have the feeling I'm not searching for the right docs - all I'm finding is diskpart docs that give the syntax for twiddling these attributes, not what they really mean. Any pointers would be very welcome! Странная ситуация. Почему нет документации по этому вопросу? Может ли кто-нибудь пролить свет на проблему? Добавлено: В качестве гипотезы могу предложить следующее. По крайней мере в Windows 7 SP1 64 по умолчанию исполняется скрипт для каждого нового подключаемого диска, который снимает у него атрибут "только для чтения". Или проще. Просто атрибут "только для чтения" на диске система игнорирует, если не она сама его поставила. | Всего записей: 1098 | Зарегистр. 10-01-2002 | Отправлено: 23:21 04-04-2013 | Исправлено: Alex_B, 05:05 05-04-2013 |
|