• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 432
  • Last Modified:

Protecting Disk from writing (On Windows)

Hi!

I would like to protect a disk/partition from being written (for sudden loss of electricity).
In "Windows Embedded"  there is such a feature.

Is there any other way to achive this goal  (without "Windows Embedded") ?
1) In Windows XP ?
2) In Windows 7 ?


thanks
zmau
0
zmau
Asked:
zmau
  • 6
  • 4
1 Solution
 
pritamduttCommented:
I am not aware of this features on Windows Embedded but in Window XP , 7 it is possible through command line tool
DISKPART

Open in new window


Since it is interactive command I would suggest you to read further @ http://technet.microsoft.com/en-us/library/cc766465(WS.10).aspx

Steps to be followed (as system administrator):

- Run DISKPART

DISKPART> LIST DISK
DISKPART> SELECT DISK <chosen disk number from previous output>
DISKPART> ATTRIBUTES DISK  <Command to view current attributes>
DISKPART> ATTRIBUTES DISK SET READONLY -- Set DISK READONLY 
DISKPART> ATTRIBUTES DISK CLEAR READONLY -- Set DISK WRITABLE

Open in new window


Hope this helps
0
 
zmauAuthor Commented:
Looks greate.
Does it work on the OS partition ?
0
 
zmauAuthor Commented:
In "Windows Embedded"   SW can "write" to the disk. It just does not do any thing......


Thanks
zmau
0
What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

 
pritamduttCommented:
Yes you can use for individual partition as well..
Partition is referred as VOLUME in this tool


Commands would look like...
- Run DISKPART

DISKPART> LIST VOLUME
DISKPART> SELECT VOLUME <chosen disk number from previous output>
DISKPART> ATTRIBUTES VOLUME  <Command to view current attributes>
DISKPART> ATTRIBUTES VOLUME  SET READONLY -- Set DISK READONLY 
DISKPART> ATTRIBUTES VOLUME  CLEAR READONLY -- Set DISK WRITABLE

Open in new window


Hope this helps..
0
 
pritamduttCommented:
Which version of Windows Embedded are you referring here?
0
 
zmauAuthor Commented:
pritamdutt,

1) I think that All versions of Windows Embedded have these features.
    I am sure about XP embedded and later versions.
2) DISKPART of Windows XP does not seem to have the "ATTRIBUTES" command.
3) Somehow I feel that Windows will not let you protect the "OS partition". I Will check.


Thanks
zmau
0
 
pritamduttCommented:
zmau, it would not be logical to set OS partition read only considering, there is frequent need for temporary files and paging files..


As regards to  XP Embedded, it does offer DISKPART command, but not the functionality of Attributes is not available
0
 
pritamduttCommented:
Any updates? Is your query resolved?
0
 
zmauAuthor Commented:
pritamdutt,

I had a long vacation....
I just came back.

it would not be logical to set OS partition read only considering, there is frequent need for temporary files and paging files..
-->> this is what I was afraid of.... But this feature is a MUST.

One more question : I wondel what is the level in which the attributes are set ?
In other words : what will be the outcome of the following scenario :
1) You set a disk to readOnly using "ATTRIBUTES VOLUME  SET READONLY" command.
2) you take the disk to another computer.
Is it stil write protected ?


Thanks
zmau
0
 
pritamduttCommented:
Closing Remarks:

Requirement of the user appears to be to make SYSTEM OS partition/drive read only in Windows XP /7, though that was not referred in the original question.

As regards to the original question...


I would like to protect a disk/partition from being written (for sudden loss of electricity).
In "Windows Embedded"  there is such a feature.

Is there any other way to achive this goal  (without "Windows Embedded") ?
1) In Windows XP ?
: No there is no such option available as part of operating system. However there is a free tool to achieve the same. This tool can be downloaded from : http://joeware.net/freetools/tools/writeprot/index.htm 
2) In Windows 7 ? : Yes it is possible in Windows 7 using the DISKPART Command specified earlier



Hope this helps!

Regards,
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now