Can I make my HDD "Read Only"?


lbeck

Well-known member
Member
Local time
6:24 PM
Posts
61
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: 4

My Computers My Computers

  • At a glance

    Windows 1113th Gen Intel(R) Core(TM) i5-13400F 2.50 GHz32.0 GBNVIDIA Gforce RTX 4060
    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 10.0.26100 Build 26100
  • At a glance

    Windows 10 Home 22H2 19045.4123Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz 3.60 GHz32.0 GBGforce GTX 745
    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
    Keyboard
    JLAB supports 2 computers/monitors
    Mouse
    Acer wired USB
    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 My Computer

At a glance

Windows 7
OS
Windows 7
Please see option two #6:




Others that may be useful:


 

My Computer My Computer

At a glance

Windows 10Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz16 GB Total: Manufacturer : Samsung MemoryTyp...NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
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 My Computer

At a glance

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

offline.webp
 
Last edited:

My Computers My Computers

  • At a glance

    Windows 11 Pro 25H2 26200.8894AMD Ryzen 7 5825U with Radeon Graphics16GB
    OS
    Windows 11 Pro 25H2 26200.8894
    Computer type
    Laptop
    Manufacturer/Model
    Acemagic LX15PRO
    CPU
    AMD Ryzen 7 5825U with Radeon Graphics
    Motherboard
    BIOS CT_BI_AMI_LX15PRO_AB8139_A-004
    Memory
    16GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD 2TB
    Internet Speed
    30 Mbps
    Browser
    Brave
    Antivirus
    Webroot SecureAnywhere Complete beta
  • At a glance

    Windows 11 Pro 23H2 22631.2506Atom N450 1.66GHz2GB
    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
  • Acer Swift SF114-34 laptop
    OS Windows 11 Pro 26200.8894
    CPU Pentium Silver N6000
    RAM 4GB
    BIOS v1.17
    SSD Samsung 970 EVO Plus SSD 2TB (an upgrade)
1740306204128.webp

I got this exact error when copying a lot of files from a NAS to my laptop over wifi. The laptop switched networks and the connection was lost. Were you tranferring over a network or just didk to disk?
 

My Computers My Computers

  • At a glance

    Windows 11 Pro 25H2 26200.8894AMD Ryzen 7 5825U with Radeon Graphics16GB
    OS
    Windows 11 Pro 25H2 26200.8894
    Computer type
    Laptop
    Manufacturer/Model
    Acemagic LX15PRO
    CPU
    AMD Ryzen 7 5825U with Radeon Graphics
    Motherboard
    BIOS CT_BI_AMI_LX15PRO_AB8139_A-004
    Memory
    16GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD 2TB
    Internet Speed
    30 Mbps
    Browser
    Brave
    Antivirus
    Webroot SecureAnywhere Complete beta
  • At a glance

    Windows 11 Pro 23H2 22631.2506Atom N450 1.66GHz2GB
    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
  • Acer Swift SF114-34 laptop
    OS Windows 11 Pro 26200.8894
    CPU Pentium Silver N6000
    RAM 4GB
    BIOS v1.17
    SSD Samsung 970 EVO Plus SSD 2TB (an upgrade)
Back
Top Bottom