Poster of Linux kernelThe best gift for a Linux geek
FS2RAM

FS2RAM

Section: Maintenance Commands (8) Updated: September 17, 2010
Local index Up
 

NAME

fs2ram - manage post-mount/pre-mount scripts  

SYNOPSIS

fs2ram action -a [-f] [-q]

fs2ram action <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.
 

FILES

/etc/fs2ram/fs2ram.conf
Mountpoints configuration file,
/usr/share/fs2ram/unmount-scripts/*
Default unmount scripts used by fs2ram,
/etc/fs2ram/unmount-scripts/*
User-defined unmount scripts used by fs2ram,
/etc/init.d/fs2ram
Script executed at runlevels S/0/6,
/var/lib/fs2ram/mount-scripts/*
Mount scripts created by fs2ram.
 

SEE ALSO

mount(8).  

AUTHOR

fs2ram was written by Philippe Le Brouster <plb@nebkha.net> for the Debian project (and may be used by others).


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
FILES
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 08:00:51 GMT, June 15, 2011