What does the noload option do in fstab?

I put UUID=fb2b6c2e-a8d7-4855-b109-c9717264da8a / ext4 auto,noatime,noload,data=ordered,commit=10,defaults 1 1 in fstab

And now server fails to reboot. It can reboot but reject all kind of connections.

This is what my provider said:

Yeah, the noload option might be problematic... I can't edit /etc/fstab from
single user mode, but I might be able to edit it using one of my pxe boot tools
to enter the filesystem manually. With regards to your request about
/var/log/messages and /var/log/secure, I'm afraid I can't do that for you
(technically, I'm already bordering on managed services by editing your fstab
for you, but I am justifying it as necessary to restore connectivity)...

I search for the purpose of noload option in google


and have no issue. Someone in linux forum says that it disable journaling.

I’m unable to paste the actual error messages without manually typing
them out, but I assure you they’re not really very descriptive
(basically, system indicates that it is unable to remount root in
read/write mode, and then errors composed of read/write problems,
particularly in /var are printed to the screen)…

It does end in a happy ending:

Your server is back online, and I was able to successfully disable
your iptables (which for reference, I did confirm were causing
connectivity issues), and I am now able to ssh into your server with
the credentials provided earlier in this ticket:

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

As man mount describes it:

Don’t load the journal on mounting. Note that if the filesystem was not unmounted cleanly, skipping the journal replay will lead to the filesystem containing inconsistencies that can lead to any number of problems.

You should really be only using this option to mount a filesystem so that you can attempt a repair with fsck. It should not be part of a standard /etc/fstab entry for a journalling filesystem like ext4.

Solution 2

noload doesn’t turn off journaling. It suppresses the loading of the journal, without turning off journaling. As you can imagine, that’s usually not a good thing.

noload is mostly useful to mount a disk as read-only without changing it in the slightest way, not even replaying the journal. You can read most data this way, and you can even read all data if the journal was flushed (by calling sync). For example, this is a way of reading from a filesystem that is currently mounted by a hibernated system.

noload may or may not be the cause of your problem, but in any case it’s a very bad idea, and definitely not something to use in /etc/fstab.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply