Section: Maintenance Commands (8)Updated: September 17, 2010Local indexUp
fs2ram - manage post-mount/pre-mount scripts
fs2ramaction-a [-f] [-q]
fs2ramaction <mountpoint> [-f] [-q]
fs2ram manages temporary filesystems across reboots. It is
possible to associate a pre-unmount script to a given <mountpoint>. At
each shutdown/reboot, fs2ram executes the pre-unmount script and then
unmount the corresponding filesystem. Every pre-unmount script must
print a post-mount script on the standard output. The post-mount script
is saved and run at boot time after the corresponding filesystem is
mounted by fs2ram.
This option specifies the action to execute. It could be :
This action first execute-unmount-script and then unmount.
This action first mount-only and then execute-mount-script.
This action mounts the filesystem given in parameters.
This action unmounts the filesystem given in parameters.
This action executes the unmount script corresponding to the mountpoint given in parameters.
This action executes the mount script corresponding to the mountpoint given in parameters.
This option tells to do action for each <mountpoint> specified in /etc/fs2ram/fs2ram.conf
This option tells to be quiet (only warning/error).
This option tells to display the command usage.
For the action unmount and mount, this option tells
to proceed execute-mount-script/unmount respectively even if
mount/execute-unmount-script failed. This option has no effect for the other options.