How do I format a read only USB?

What is a read only USB drive?

A read only USB drive is a USB flash drive that has been configured to prevent files from being modified, added, or deleted. This is done by setting the drive to “read only” mode, which restricts write access. The key benefit of a read only USB drive is enhanced security – it protects against viruses or malware infecting the drive, and prevents unauthorized changes to the data.

Read only USB drives have a physical switch or setting that toggles between read/write and read only mode. When in read only mode, files on the drive can be viewed or copied, but no data can be altered or new files saved. This makes read only USB drives ideal for distributing content that should not be changed, like software install files, presentations, or legal documents.

Some common reasons to use a read only USB drive are:

  • To prevent virus infection or malicious software from damaging files
  • To secure sensitive data from tampering or theft
  • To safely share files that should not be edited
  • To avoid accidental deletion or modification of important documents

Overall, read only USB drives provide an extra layer of data security and integrity through restricted write access. The read only state protects the contents from alteration, while still allowing the files to be readily accessed or copied as needed.

Why format a USB as read only?

There are several key reasons why you may want to format a USB drive as read only:

Prevent accidental deletion or changes

Formatting a USB as read only can prevent files from being accidentally deleted or modified. This is especially useful if the drive contains important files that should not be changed.[1]

Added security against viruses/malware

A read only USB drive adds a layer of protection against viruses or malware. Since files cannot be written to the drive, any malicious software would be unable to modify or infect files on the read only USB.[2]

Discourage others from modifying files

Formatting a USB as read only can also discourage others from tampering with or altering files on the drive. This is helpful if you need to share the USB drive but want to restrict changes to it.

Overall, read only USB drives provide data security and integrity for situations where files should remain untouched.

[1] https://www.minitool.com/backup-tips/usb-drive-read-only.html
[2] https://superuser.com/questions/543067/why-is-my-usb-flash-drive-now-read-only

How to format a USB as read only on Windows

There are a few different ways to format a USB drive as read only on Windows, including using File Explorer properties, the diskpart command line utility, and third party software.

To make a USB read only using File Explorer properties:

  1. Open File Explorer and locate the USB drive.
  2. Right click on the drive and select “Properties”.
  3. Go to the General tab and check the “Read-only” box.
  4. Click “Apply” and then “OK”.

You can also use the diskpart command line utility:

  1. Open the Command Prompt as Administrator.
  2. Type “diskpart” and press Enter.
  3. Type “list disk” to identify the disk number for your USB drive.
  4. Type “select disk X” where X is your disk number.
  5. Type “attributes disk set readonly” to set the disk to read-only.

Finally, you can use third party software like AOMEI Partition Assistant to easily set a USB drive to read only with a graphical interface.

How to format a USB as read only on Mac

There are a couple different ways to format a USB drive as read only on Mac:

Using Finder Get Info

You can set a USB drive to be read only through the Finder Get Info window. Here are the steps:

  1. Connect the USB drive to your Mac.
  2. Open Finder and locate the USB drive.
  3. Right click on the drive and choose “Get Info.”
  4. In the Get Info window, check the box next to “Locked” under Sharing & Permissions.
  5. Click the lock icon in bottom right corner and enter admin credentials to make changes.
  6. Close the Get Info window. The USB drive is now read only.

This will prevent files from being modified, deleted, or added to the USB drive. However, this method does not work on FAT32 formatted USB drives.[1]

Using diskutil command line

You can also use the diskutil command in Terminal to set a drive to read only. Here is the process:

  1. Open Terminal
  2. Type diskutil list and identify the disk name for your USB drive (for example disk2)
  3. Type diskutil info disk2 | grep Read replacing disk2 with your disk name to check current status.
  4. If it doesn’t say Read Only, type diskutil readonly enable disk2 replacing disk2 with your disk name.
  5. Type diskutil info disk2 | grep Read again to verify it now says Read Only.

This will set the entire USB drive as read only. Be sure to replace disk2 with the actual disk name for your drive.

How to format a USB as read only on Linux

There are a couple different ways to format a USB drive as read only on Linux systems.

One method is to use the chmod command to change the permissions of the drive to be read only. Here is an example command:

sudo chmod -R 400 /media/usbdriveroot

This will recursively change the permissions of the /media/usbdriveroot directory and contents to be read only (source).

Another option is to mount the USB drive with read only permissions. This can be done by editing your /etc/fstab file to mount the drive with the ro flag. For example:

/dev/sdb1 /media/usbdrive vfat ro,user,noauto 0 0

The ro flag mounts the drive read only. This will persist across reboots (source).

There are also GUI utilities like GNOME Disks that provide options to mount drives as read only.

Tips for using a read only USB

When using a read only USB drive, it’s important to follow certain best practices to avoid errors and ensure proper functioning. Here are some key tips:

Properly eject the USB drive before removing it. On Windows, use the “Safely Remove Hardware” icon in the system tray. On Mac, drag the drive icon to the Trash. On Linux, use the “eject” command. Improperly disconnecting a read only drive can lead to corruption.

Expect write errors when attempting to modify files on a read only USB. The OS will prevent any changes from being written. Don’t forcefully try to override the read only status.

To restore full write access, you’ll need to reformat the drive. On Windows, use Diskpart or Disk Management. On Mac, use Disk Utility. On Linux, use GParted or the command line. Reformatting will erase all data on the drive.1

When lending a read only USB to others, educate them on proper ejection and not attempting writes. Set clear expectations that the drive cannot be modified.

Use the read only USB for transporting or viewing files, not active work. Have a separate writable drive for any work requiring saving changes.

Back up the contents of the read only drive in case the files need to be restored after a reformat.

Handle read only USB drives carefully to avoid physical damage to the lock switch or connections.

Risks of Making USB Read Only

Although making a USB drive read only has security benefits, there are some downsides to be aware of:

Unable to save new files: One of the biggest risks of a read only USB is that users can’t save any new files to the drive. The drive will be restricted to only reading the data already stored on it. This can make it frustrating if users need to add or edit files on that drive.

Possible confusion for other users: If someone else tries to use the read only USB drive without realizing it’s been set to read only, they may become confused when they aren’t able to modify or add files. This could lead to lost time troubleshooting why they can’t save files. (Source)

Restoring full access can be tricky: Depending on the method used to make the USB read only, it may require some technical expertise to restore full read/write access again. Simply flipping the physical switch back may not work. Users unfamiliar with the steps needed could find it difficult to revert the USB back to normal.

Alternatives to read only USB

While making a USB drive read-only is one way to prevent files from being modified, there are some other alternatives worth considering:

Encrypted USB drives – There are encrypted USB drives available that allow you to protect files with a password. Popular options like the Kingston DataTraveler Locker prevent unauthorized access to the drive contents. The downside is needing to enter a password every time you use the drive.

Software access restrictions – Some software like BitLocker on Windows allow you to password protect and encrypt an entire USB drive. This achieves a similar result to a read-only drive while still allowing you to add or edit files if you input the password.

Cloud storage backups – Storing important files in the cloud rather than locally on a USB drive means you always have access to the latest version. Services like Google Drive, Dropbox, and iCloud provide redundancy and prevent local file tampering. The drawback is needing an internet connection to access files.

Overall, while read-only USB drives have their uses, for many situations encrypted drives, access-restricted software, or cloud storage may be easier and more flexible secure options.

Other ways to prevent USB file tampering

In addition to formatting the USB drive as read only, there are some other steps you can take to help prevent files on the drive from being tampered with or changed:

Disable autorun – Autorun allows external drives like USB drives to automatically open folders or run programs when connected. Disabling this feature prevents potentially malicious software from running without your consent. You can disable autorun in Windows by going to Start > Run and entering “gpedit.msc”. Then go to Computer Configuration > Administrative Templates > System and disable “Turn off Autoplay”.

Password protection – Adding password protection to individual files or the entire USB drive can prevent unauthorized access. Products like USB Secure, Rohos Mini Drive, and Folder Lock allow you to password protect files.

File permissions – Setting file permissions to read only for certain users or groups is another way to restrict write access on a USB drive when using Windows, Mac or Linux operating systems.

Digital rights management (DRM) – Some USB drive manufacturers offer drives with built-in DRM to control usage rights. This may include restricting copying files off the drive or limiting the number of times a file can be accessed.

While formatting as read only provides a baseline protection, utilizing some of these other techniques as part of a multi-layered approach can further restrict tampering and unauthorized changes to sensitive files stored on a USB flash drive. (Source)

Summary

Formatting a USB drive as read only is a straightforward process on Windows, Mac, and Linux operating systems. The key steps involve using the command prompt, disk utility, or file manager to change the drive permissions to read only access. This prevents files from being modified, deleted, or added to the drive.

Setting a USB as read only has benefits like protecting against viruses or malware, avoiding accidental file changes, and securing sensitive data. However, it also carries risks of being unable to save files or install software to the drive. You may encounter errors if attempting to modify read only files.

For casual everyday use, read only formatting can be overly restrictive. But it’s ideal for sharing files or booting into a live OS securely. The best method depends on your specific needs – Windows command prompt provides the most control for full drive protection, while Finder/file manager is quickest for limiting access to certain folders.

With the proper precautions, a read only USB drive can be a useful way to share files while reducing the risks of data tampering or corruption.