- ReadOnly диск в Windows 7
- Read Only (Folders)
- Replies (2)
- You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, in Windows Vista or in Windows 7
- SUMMARY
- Symptoms of the problem
- Cause
- Steps to work around this problem
- To view or to remove the Read-only or the System attributes of folders
- Status
- More Information
- References
- Проблема с атрибутом «Read only»
ReadOnly диск в Windows 7
На днях столкнулся со следующей проблемой: после установки нового диска в компьютер под управлением ОС Windows 7 и последующей перезагрузки системы, при попытке записи новых файлов на этот диск появляется ошибка о том, что диск защищен от записи – «Media is write-protected».
Естественно, первым делом я проверил, есть ли у меня соответвующие NTFS разрешения на диске, однако с ними было все в порядке. Поэтому было бы логично предположить, что атрибут read-only задан для всего раздела на жестком диске.
Убедиться в этом можно с помощью команды diskpart:
- Откроем командную строку с правами администратора
- В командной строке наберем
- Выведем список всех дисков в системе командой
Командой
выберем интересующий нас диск, на котором появляется ошибка записи (где # — идентификатор диска, который мы определили предыдущей командой)
Команда
отобразит текущие свойства интересующего нас диска. Нас интересует параметр Read-only, действительно его значение — Yes!
Снять этот атрибут можно командой
. Убедиться в том, что атрибут read-only снят, можно набрав предыдущую команду detail disk.
После выполнения указаной процедуры, проблема с записью на жесткий диск исчезает, хотя не совсем понятна причина появления проблемы с записью на новый жесткий диск и ошибки «Media is write-protected».
Read Only (Folders)
Please help me understand. Viewing the folders with windows explorer, checking the properties.
Why is the «Read Only» shaded? This is with every folder on my drive, and network drives. If I change it to a «Check Mark» and reopen the properties it will show as shaded again. Why is that?
I am wanting the folder and existing and future files to be «Read Only». If I open a existing file in the folder make a modification to the file, the program will prompt me with this is a «Read Only» file do you want to continue to edit. YES/NO, I say yes, and go to save it. Then it prompts me with the «Save As» option only. This is a good thing! So I give the file a new name and save it under the «Read Only» folder. Here is the problem, the new file is not «Read Only», but it should be as it is under the «Read Only» folder. So I have to check the «Read Only» box again for the new file to be «Read Only». And when I go to do this the box shows as shaded? Shouldn’t the box show a «Check Mark».
I did check to see if I have full rights on this computer and the network drive.
Replies (2)
Windows ignores the read-only flag for folders.
Also — read-only file and folder flags are completely separate from NTFS permissions (shown in your second picture).
Was this reply helpful?
Sorry this didn’t help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
The «read only» box on a folder’s properties sheet has caused much confusion over the years. The default state of this box is «filled in.» This does not mean that the «read only» attribute is set for a folder.
Some folders do have the read only attribute set, which you can see by using the «attrib» command in a Command Prompt:
This does not mean that the folder is read only. If the read only attribute of a folder is set, Windows Explorer examines the folder to determine if it contains a desktop.ini file and if so, what customizations have been made to the folder’s display. This is explained in «You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, in Windows Vista or in Windows 7» —
Note Unlike the Read-only attribute for a file, the Read-only attribute
for a folder is typically ignored by Windows, Windows components and accessories, and other programs. For example, you can delete, rename, and change a folder with the Read-only attribute by using Windows Explorer.
The Read-only and System attributes is only used by Windows Explorer
to determine whether the folder is a special folder, such as a system
folder that has its view customized by Windows (for example,
My Documents, Favorites, Fonts, Downloaded Program Files), or a folder
that you customized by using the Customize tab of the folder’s
Properties dialog box. As a result, Windows Explorer does not allow you
to view or change the Read-only or System attributes of folders. When a
folder has the Read-Only attribute set it causes Explorer to request the Desktop.ini of that folder to see if any special folder settings need to be set.
It has been seen where if a network share that has a large amount of
folders set to Read-only, it can cause Explorer to take longer then what is expected to render the contents of that share while it waits on the
retrieval of the Desktop.ini files. The slower the network connectivity to
the share the longer this process can take to the point where Explorer may timeout waiting for the data and render nothing or appear to hang.
If you check (or clear) the read only box on a folder’s Properties sheet and click «Apply» or «OK» you get the following confirmation message:
Depending on whether you cleared or checked the box, the read only attribute of all of the files in the folder — or all of the files in the folder and in all of its subfolders — will have their read only attributes cleared or set. Nothing happens to the read only attribute of the folder or of any of its subfolders.
Moving a file into a folder (or saving a file into a folder) will NOT automatically set its read only attribute just because all of the other files in the folder have been set that way.
You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, in Windows Vista or in Windows 7
For a Microsoft Windows 2000, Microsoft Windows NT 4.0, Microsoft Windows Millennium Edition, Microsoft Windows 98, and Microsoft Windows 95 version of this article, see 256614.
SUMMARY
This article contains step-by-step instructions on how to use the Attrib command to work around the inability to view or to remove the Read-only or the System attributes of folders in Windows Server 2003, in WindowsXP, Windows Vista and in Windows 7.
This article is intended for advanced computer users.
Symptoms of the problem
You may experience any of the following symptoms:
You cannot view or change the Read-only or System attributes of a folder by using the Properties dialog box for the folder. For example, you may experience the following symptoms:
When you view the General tab of a folder’s Properties dialog box, the Read-only check box is not available, and there is no check box to change the System attribute.
You click to clear or click to select the Read-only check box on the General tab of a folder’s Properties dialog box. When you click OK or Apply, you receive the following message:
Confirm Attribute Changes
You have chosen to make the following attribute changes:
unset read-only
Do you want to apply this change to this folder only, or do you want to apply it to all subfolders and files as well?
If you click Apply changes to this folder only, the Read-only attribute is changed for all the files in the folder. However, the Read-only attribute is not changed for the folder, its subfolders, or any files in its subfolders. If you click Apply changes to this folder, subfolders, and files, the Read-only attribute is changed for all files in the folder and all files in the subfolders. However, the Read-only attribute is not changed for the folder or its subfolders.
Some programs may display error messages when you try to save files to a folder that uses the Read-only or System attribute. As a result, these programs may not be able to save files to the folder.
Cause
Note Unlike the Read-only attribute for a file, the Read-only attribute for a folder is typically ignored by Windows, Windows components and accessories, and other programs. For example, you can delete, rename, and change a folder with the Read-only attribute by using Windows Explorer.
The Read-only and System attributes is only used by Windows Explorer to determine whether the folder is a special folder, such as a system folder that has its view customized by Windows (for example, My Documents, Favorites, Fonts, Downloaded Program Files), or a folder that you customized by using the Customize tab of the folder’s Properties dialog box. As a result, Windows Explorer does not allow you to view or change the Read-only or System attributes of folders. When a folder has the Read-Only attribute set it causes Explorer to request the Desktop.ini of that folder to see if any special folder settings need to be set. It has been seen where if a network share that has a large amount of folders set to Read-only, it can cause Explorer to take longer then what is expected to render the contents of that share while it waits on the retrieval of the Desktop.ini files. The slower the network connectivity to the share the longer this process can take to the point where Explorer may timeout waiting for the data and render nothing or appear to hang.
Note In some previous versions of Windows, you can change the Read-only attribute for folders by using the Properties dialog box for the folder, but no versions of Windows permit you to change the System attribute by using Windows Explorer.
Steps to work around this problem
To work around this problem, use the Attrib command at a command prompt (Cmd.exe) to view or to remove the Read-only or the System attributes of folders.
To view or to remove the Read-only or the System attributes of folders
Warning If you remove the Read-only or System attribute from a folder, it may appear as a ordinary folder and some customizations may be lost. For example, Windows customizes the Fonts folder and provides a special folder view that permits you to hide variations, such as bold and italic. It also permits you to change the folder’s view settings in ways that are specific to fonts. If you remove the Read-only and System attributes of the Fonts folder, these customized view settings are not available. For folders that you have customized by using the Customize tab of the folder’s
Properties dialog box, the folder icon and other other customizations may be lost when you remove the Read-only attribute.
If a program cannot save files to a folder with the Read-only attribute, such as My Documents, change the Read-only attribute to System by using the Attrib command at a command prompt.
Note If the Run command is not listed on the Start menu, do the following: Click Start, click All Programs, click Accessories, and then click Run.
To remove the Read-only attribute and to set the System attribute, use the following command:
attrib -r +s drive:\
\ For example, to remove the Read-only attribute and to set the System attribute for the C:\Test folder, use the following command:
attrib -r +s c:\testBe aware that some programs may not operate correctly with folders for which the System attribute and the Read-only attribute are set. Therefore, use the following command to remove these attributes:
attrib -r -s c:\test
Status
This behavior is by design.
More Information
Windows stores file and folder attributes in the file system with the file and folder name, extension, date and time stamps, and other information. The Read-only check box for folders is not available because it does not apply to the folder. You can use this check box to set the Read-only attribute for files in the folder. However, you cannot use Windows Explorer to determine whether a folder has the Read-only and System attributes set. To determine the attributes that are set on a folder, or to change these attributes, you must use the Attrib command at a command prompt.
References
For more information about system attributes, click the following article numbers to view the articles in the Microsoft Knowledge Base:
308419 How to set, view, change, or remove special permissions for files and folders in Windows XP
277867 Windows NTFS permissions are required when you run Word on any NTFS partition that has Windows 2000, Windows XP Professional, Windows Server 2003, or Windows Vista installed
If the previous articles do not help you resolve the problem or if you experience symptoms that differ from those that are described in this article, search the Microsoft Knowledge Base for more information. To search the Microsoft Knowledge Base, visit the following Microsoft Web site:
Проблема с атрибутом «Read only»
Подскажите, пожалуйста, — как снять атрибут Read only с диска и/или отдельных папок?
У меня Win 8 pro. Учетная запись с правами администратора.
Из-за этого атрибута невозможна нормальная работа ни на одном из дисков, т.к. не сохраняются изменения.
В Win 7 таких проблем у меня не было.
Вызываю, например, Total Commander , естественно забываю выбрать права администратора.
Хочу изменить параметр настройки и получаю сообщение: «Снимите защиту от записи».
Даю общий доступ к диску и вижу свой диск в сети.
Пароль, конечно, у меня стоит, но я пугаюсь и убираю общий доступ.
Общий доступ к диску никак не связан с правами Администратора, и открывать его бессмысленно. Так что правильно что пугаетесь — но с проблемой это не связано.
«невозможна нормальная работа ни на одном из дисков, т.к. не сохраняются изменения«
относится только к Total Commander?
По крайней мере что касается него, то, судя по вашему описанию, вы при установке или указали для хранения ini-файлов папку программы, или скорее — папка хранения была оставлена по умолчанию, т.е. используется каталог Windows. И, соответственно, доступ на запись к этим файлам настройки при запуске программы без повышения прав невозможен.
Я бы порекомендовал деинсталлировать TotalCmd и инсталлировать по-новой (для 32-битной версии — установщик tcm801x32.exe, для 64-битной — лучше не tcm801x64.exe, а tcm801x32_64.exe), нажав по дороге кнопку «Задать путь к INI-файлам» и поставив там точку выбора в положение «Application Data» (в принципе, для TotalCmd перенос ini-файлов можно произвести без переустановки — но запутаться в этом случае проще простого даже при опыте).
Кроме того, если вы хотите сделать TotalCmd безусловным окном в зону работы с правами администратора — поставьте после установки в Свойствах значка (или даже в Свойствах самого файла — но это хуже: иногда приходится прнципиально запускать его без этих прав) на закладке «Совместимость» галку «Выполнять эту программу от имени Администратора»