NSLU2-Linux
view · edit · print · history

For Unslung see Ext3flash instead

The mount noatime option is important for flash file systems because it reduces the amount of updating and therefore reduces the number of erases on the device (over time.)

Normally, for a non-root USB device, simply add the noatime option to the entry in /etc/fstab for the device.

For the root file system the device is actually remounted in /etc/init.d/checkroot.sh. This is a bug in checkroot.sh that it does not honour the options specified in /etc/fstab so the root file system ends up mounted without noatime.

If this (overfrequent writes to the memory stick) concerns you:

  1. Edit /etc/fstab (on the memory stick) to include noatime in the options for rootfs - i.e. change defaults to defaults,noatime.
  2. Edit /etc/init.d/checkroot.sh so that the mount -o remount at the end uses $rootopts not $rootmode.

This will be fixed in future releases. (fixed for 2.7)

There is also a serious bug in the mount command handling of the atime and diratime options. These are not normally specified, so the bug is not normally encountered, however if used they set all the mount flags except noatime or nodiratime. For the root file system this means the noexec flag is set and the system will then become unuseable until it is rebooted.

view · edit · print · history · Last edited by iwo.
Based on work by iwo and deleted.
Originally by jbowler.
Page last modified on March 04, 2007, at 11:41 AM