Why your SDA1 partition is read-only and how to fix it

When your Raspberry Pi's SDA1 partition shows as read-only, you cannot write files to it, delete anything, or make changes — even though you own the device. This usually happens after a file system error, an unexpected shutdown, or when the system detects a problem and locks the partition to prevent damage. The fix involves running a disk check tool called fsck (file system consistency check) to repair the partition, then remounting it as writable.

The steps below will walk you through checking the partition for errors and restoring write access. You will need to use the command line, but each command is straightforward and the process takes about 10 to 15 minutes.

Key Takeaways

  • A read-only SDA1 partition usually means the file system detected an error and locked itself to prevent further damage.
  • You must run fsck from a live system or recovery mode, not while the partition is mounted and in use.
  • After fsck repairs the partition, you remount it as read-write using the mount command with the -o remount,rw flag.
  • If fsck finds serious corruption, you may need to back up data and rebuild the partition, but most errors are fixable in minutes.

Check which partition is actually read-only

Before you run any repair tools, confirm that SDA1 is the partition causing the problem and see what the current error is. Open a terminal and type this command:

mount | grep sda1

This shows you how SDA1 is currently mounted. Look for the word ro in the output — that means read-only. You might see something like /dev/sda1 on /mnt/data type ext4 (ro,relatime). The ro tells you the partition is locked. If you see rw instead, the partition is already writable and the problem is elsewhere.

Also run this command to see if the system has flagged any errors:

sudo dmesg | tail -20

This shows the last 20 system messages. Look for lines mentioning sda1, EXT4-fs error, or filesystem error. These messages tell you why the partition locked itself.

Remount the partition as writable if there are no errors

If the dmesg output shows no file system errors and SDA1 is simply mounted read-only, you can often remount it as writable without running fsck. This is the fastest fix when the partition itself is healthy but was locked as a precaution.

Type this command:

sudo mount -o remount,rw /dev/sda1

If SDA1 is mounted at a specific location like /mnt/data, use this instead:

sudo mount -o remount,rw /mnt/data

The command tells the system to remount the partition with read-write permissions. If it succeeds, you will see no output — that is normal. Run the first mount command again to confirm SDA1 now shows rw instead of ro.

If the remount fails and you see an error like device is busy, the partition is in use and you need to stop whatever is accessing it. Close any open files or programs using that partition, or reboot the Raspberry Pi and try again.

Run fsck to repair file system errors

If dmesg showed file system errors, or if remounting failed, you need to run fsck to check and repair the partition. The critical rule: you cannot run fsck on a mounted partition. You must either unmount it first or boot into a recovery mode where it is not in use.

The safest approach is to unmount SDA1 before running fsck:

sudo umount /dev/sda1

Or if it is mounted at a location like /mnt/data:

sudo umount /mnt/data

If the unmount fails because the partition is busy, close all programs using it and try again. Once unmounted, run fsck with the -y flag to automatically fix errors without asking for confirmation:

sudo fsck -y /dev/sda1

The tool will scan the partition and repair any errors it finds. This can take several minutes depending on the partition size. You will see output like Inodes that were part of a corrupted orphan linked list found and cleared — these are normal repair messages. When fsck finishes, it will print a summary showing how many errors were fixed.

Remount the partition after fsck completes

Once fsck finishes, the partition is still unmounted. Remount it as read-write so you can use it again:

sudo mount -o rw /dev/sda1 /mnt/data

Replace /mnt/data with the actual mount point where you want SDA1 to appear. If you are not sure where to mount it, use /mnt/sda1 or another empty directory.

Verify the remount worked by running:

mount | grep sda1

You should now see rw in the output instead of ro. The partition is now writable and you can read and write files normally.

What to do if fsck finds serious corruption

In rare cases, fsck will report that the partition is too damaged to repair automatically. You will see messages like UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY or Cannot continue, aborting. This means the file system has structural damage that requires manual intervention.

Your options are: back up any recoverable data to another drive, then rebuild the partition from scratch using mkfs.ext4 /dev/sda1 (this erases all data), or consult the fsck manual page for advanced repair options. For most users, rebuilding is the simplest path forward.

Before you rebuild, try to recover important files. Boot a live Linux system from a USB drive, mount the damaged partition read-only, and copy any files you need to an external drive. Then you can safely rebuild the partition without losing data you did not know was there.

Prevent read-only lockups in the future

Read-only partitions usually happen because of unexpected shutdowns, power loss, or hardware problems. You can reduce the risk by shutting down your Raspberry Pi properly instead of unplugging it, using a stable power supply rated for your model, and checking the dmesg output regularly for early signs of disk problems.

If you see file system errors appearing frequently, the storage device itself may be failing. Run sudo smartctl -a /dev/sda (you may need to install smartmontools first) to check the health of the drive. Repeated errors are a sign to back up your data and replace the storage device.

Frequently Asked Questions

Can I remount as read-write without running fsck?

Yes, if there are no file system errors. The remount command works immediately on a healthy partition. However, if fsck has not run and the partition was locked due to an error, remounting may cause data corruption. Check dmesg first to see whether errors were detected.

What does the -y flag do in fsck?

The -y flag tells fsck to automatically answer yes to all repair questions. Without it, fsck stops and asks you to confirm each fix. The -y flag is safe for most errors and saves time, but if you want to review each repair before it happens, omit the flag and answer each prompt manually.

Will fsck delete my files?

fsck repairs the file system structure, not your files. It may move orphaned data to a lost+found directory if it cannot reconnect files to the directory tree, but it does not intentionally delete anything. Serious corruption might make some files unrecoverable, but fsck tries to preserve as much as possible.

Do I need to reboot after remounting?

No. Once you remount the partition as read-write, it is immediately usable. A reboot is not necessary unless you want to verify that the partition stays writable after a restart, which is a good test that the repair was successful.

What if the partition is my root filesystem?

If SDA1 is your root filesystem (where the operating system itself lives), you cannot unmount it while the system is running. Boot into recovery mode or from a live USB, then run fsck on the unmounted partition. Most Raspberry Pi systems use the SD card as root, not an external SDA1 drive, so this is uncommon.