using tmpfs files system

Julian Field MailScanner at
Thu Jun 28 17:26:08 IST 2007

Hash: SHA1

You should put mount instructions in /etc/fstab. Just follow the other 
mounts that are already there. You will probably find a line for 
/dev/shm. Just copy that line, and change /dev/shm to 
/var/spool/MailScanner/incoming. Don't comment out or delete the 
original line, you want both of them!

You can mount as many places as you like with tmpfs.

Then it will be automatically mounted every time you reboot.
If you want to mount it immediately, after you have put it in /etc/fstab 
then just issue the command
    mount /var/spool/MailScanner/incoming
with no other parameters. It will pull all the information it needs out 
of /etc/fstab.

Putting lines in rc.local is not the standard way of doing this! :-)

Mike Kercher wrote:
> I put this in /etc/rc.d/rc.local
> /bin/mount -t tmpfs tmpfs /var/spool/MailScanner/incoming
> Mike
> ________________________________
> From: mailscanner-bounces at
> [mailto:mailscanner-bounces at] On Behalf Of
> Marcello Anderlini
> Sent: Thursday, June 28, 2007 10:58 AM
> To: 'MailScanner discussion'
> Subject: using tmpfs files system
> Hi, I would like to use a tmpfs files sytste to try to speed up
> mailscanner process.
> I'm using a centos 4.5 distribution and I saw that tmpfs  it's already
> mounted for /dev/shm.
> How can I achieve this without dismount this partition that I suppose
> it's used for other programs ?
> Does anyone have some suggestion ?
> thanks and sorry for my worst English.
> Marcello


- -- 
Julian Field MEng CITP
Buy the MailScanner book at

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit

Version: PGP Desktop 9.6.2 (Build 2014)
Charset: ISO-8859-1


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit

More information about the MailScanner mailing list