Can I make my HDD "Read Only"?


lbeck

Active member
Member
Local time
9:16 AM
Posts
41
OS
Windows 11
Call me paranoid (and I guess I am). But I seem to have lost many random files over the past few months. So I've purchased a 5 TB HDD and placed my most important files on it. My intention is to disconnect the new "archive" from the Internet. The new HDD is disconnected now.

Problem is that I forgot to disconnect it for an hour or so and noticed the attached message. Even though I've transferred hundreds (maybe thousands) of files this afternoon I don't believe that I initiated the D->D transfers indicated. And I KNOW my transfers were faster than the 1.12 MB/s indicated.

So my question is in the title. Is there some way to render my archive HDD inaccessible to the ouutside and remove the read-only attribute only when I want to write to it (with the Internet disconnected!)

Thanks for your advice.
 

Attachments

  • Maybe problem.webp
    Maybe problem.webp
    32.3 KB · Views: 1

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Device name CyberPowerPC
    CPU
    13th Gen Intel(R) Core(TM) i5-13400F 2.50 GHz
    Memory
    32.0 GB
    Graphics Card(s)
    NVIDIA Gforce RTX 4060
    Hard Drives
    2 TB ADATA Legend 800 Gold SSD and several HDDs
    PSU
    650W
    Browser
    Chrome
    Other Info
    Windows 11 23H2 Build 22631.3737
  • Operating System
    Windows 10 Home 22H2 19045.4123
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acer_Desktop
    CPU
    Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz 3.60 GHz
    Memory
    32.0 GB
    Graphics card(s)
    Gforce GTX 745
    Sound Card
    ONN24
    Hard Drives
    Many
    Mouse
    Acer wired USB
    Keyboard
    JLAB supports 2 computers/monitors
    Browser
    Chrome
    Antivirus
    Only what W10 installed
    Other Info
    64-bit operating system, x64-based processor
I don't think there's an off-the-shelf app for this... but you can run a PowerShell command as Admin.
Code:
C:>powershell "Set-Partition -DriveLetter E -IsReadOnly $true"

E:\>copy con: new.txt
^Z
The media is write protected.
        0 file(s) copied.

Code:
C:\>powershell "Set-Partition -DriveLetter E -IsReadOnly $false"

E:\>copy con: new.txt
^Z
        1 file(s) copied.
 

My Computer

System One

  • OS
    Windows 7
Please see option two #6:




Others that may be useful:


 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
    Motherboard
    Product : 190A Version : KBC Version 94.56
    Memory
    16 GB Total: Manufacturer : Samsung MemoryType : DDR3 FormFactor : SODIMM Capacity : 8GB Speed : 1600
    Graphics Card(s)
    NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
    Sound Card
    IDT High Definition Audio CODEC; PNP Device ID HDAUDIO\FUNC_01&VEN_111D&DEV_76E0
    Hard Drives
    Model Hitachi HTS727575A9E364
    Antivirus
    Microsoft Defender
    Other Info
    Mobile Workstation
When your single disk has a single volume (drive letter), use this command:
Code:
powershell "Set-Partition -DriveLetter E -IsReadOnly $true"
powershell "Set-Partition -DriveLetter E -IsReadOnly $false"

When your single disk has multiple volumes (drive letters), use this command.
Provide any one of the disk's drive letters, and it will update all of the volumes at the same time.
Code:
powershell "(Get-Disk (Get-Partition -DriveLetter E).DiskNumber | Get-Partition).DriveLetter |% { Set-Partition -DriveLetter $_ -IsReadOnly $true }"
powershell "(Get-Disk (Get-Partition -DriveLetter E).DiskNumber | Get-Partition).DriveLetter |% { Set-Partition -DriveLetter $_ -IsReadOnly $false }"

Replace -DriveLetter E with whatever letter you have it currently mounted on.
 

My Computer

System One

  • OS
    Windows 7
Open Disk Management as Admin, right click where is says 'online' and select offline. Nor the HDD won't even appear in File Explorer until you reverse the action.

offline.webp
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.2894
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD
    Cooling
    fanless
    Internet Speed
    150 Mbps
    Browser
    Brave
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
    Browser
    Brave
    Antivirus
    Webroot

Latest Support Threads

Back
Top Bottom