Section: Maintenance Commands (8)Updated: September 17, 2010Local indexUp
NAME
fs2ram - manage post-mount/pre-mount scripts
SYNOPSIS
fs2ramaction-a [-f] [-q]
fs2ramaction <mountpoint> [-f] [-q]
fs2ram-h
DESCRIPTION
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.
OPTIONS
action
This option specifies the action to execute. It could be :
unmount:
This action first execute-unmount-script and then unmount.
mount:
This action first mount-only and then execute-mount-script.
mount-only:
This action mounts the filesystem given in parameters.
unmount-only:
This action unmounts the filesystem given in parameters.
execute-unmount-script:
This action executes the unmount script corresponding to the mountpoint given in parameters.
execute-mount-script:
This action executes the mount script corresponding to the mountpoint given in parameters.
-a
This option tells to do action for each <mountpoint> specified in /etc/fs2ram/fs2ram.conf
-q
This option tells to be quiet (only warning/error).
-h
This option tells to display the command usage.
-f
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.