My filesystem is read-only

Linode Staff

I'm experiencing errors that state that my filesystem is read-only. For example, when I attempt to take a physical backup of my database, it tells me this:

mkdir /opt/backupfiles
mkdir: cannot create directory ?/opt/backupfiles?: Read-only file system

How can I fix this?

1 Reply

If you are running into this error, and you find you're running a read-only filesystem I would first recommend trying to remount your filesystem by running the following command:

> sudo mount -o remount, rw

If this doesn't resolve the situation, I recommend running a filesystem check. The first step in doing that is to boot your Linode into Rescue Mode, and we have written a guide on how to do that:

Rescue Mode

Once you're in Rescue Mode, you can run the filesystem check. Please follow the guide linked below to do so:

Filesystem Check

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct