How to Fix a USB Flash Drive or SD Card Stuck in Read-Only Mode on Ubuntu

Plugging a USB memory stick, external hard disk, or camera SD card into Ubuntu only to discover the Paste, Rename, and Move to Bin options are greyed out means Ubuntu mounted the storage in read-only mode. Instead of letting you alter files safely, Linux blocks writes when it spots an unclean shutdown or physical write lock.

Working through these checks from simplest to deepest fixes read-only drives safely without risking your stored photos or documents.

Check Physical Write-Protect Switches on SD Adapters

Before changing any software settings, inspect full-size SD cards and microSD-to-SD adapters closely.

  • Look along the left edge of the SD card or adapter for a tiny sliding plastic switch labelled LOCK.
  • Slide the tab toward the top (gold pins end) so it unlocks, reinsert the card into your laptop slot or USB card reader, and check whether copying works again.

Repair Minor Filesystem Errors With Ubuntu Disks

If you unplugged a USB stick without clicking Eject first, Linux detects an error flag and mounts the drive read-only to prevent corruption. Ubuntu’s built-in Disks app repairs this safely without erasing files.

  1. Open the Applications menu in Ubuntu, search for Disks, and launch it.
  2. Click your USB flash drive or SD card in the left-hand list, then select its main partition in the Volumes bar.
  3. Click the small square Stop button below the volume bar to unmount it cleanly.
  4. Click the gear icon (Additional partition options) and select Repair Filesystem (or run Check Filesystem first if you want a scan).
  5. Confirm the prompt, wait for the repair check to finish, then click the triangular Play button to mount the drive back with full read-and-write access.

Fix Windows Fast Startup Locks on Dual-Boot or Shared Drives

One of the most frequent hidden causes happens when an external NTFS hard drive or Windows-formatted flash drive was recently unplugged from a Windows 10 or 11 computer. Windows Fast Startup saves a partial hibernation state onto drives during normal Shut Down, leaving NTFS partitions locked so Ubuntu refuses to modify them.

  • If you dual-boot on the same PC, reboot into Windows, open Restart (not Shut Down) from the Windows Start menu — Restart clears the fast-startup lock cleanly — and boot straight back into Ubuntu.
  • Even better, inside Windows Control Panel -> Power Options -> Choose what the power buttons do, untick Turn on fast startup so shared drives stay clean across both systems.
  • Remember also to always click Safely Remove or Eject in Ubuntu Files before pulling any USB stick out.

Watch Out for Failing USB Drives Entering Permanent Read-Only Mode

When a budget USB flash drive or aging microSD card nears the end of its flash memory lifespan, its internal controller permanently switches the chip to hardware read-only mode so you can still rescue existing data.

If Disks reports that the device stays read-only even after repairing the filesystem — or if Ubuntu rejects reformatting attempts as write-protected even with zero lock switches engaged — back up every important file from the drive onto your Ubuntu Home folder immediately and replace the USB stick.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.