using tmpfs files system

Julian Field MailScanner at ecs.soton.ac.uk
Thu Jun 28 17:26:08 IST 2007


-----BEGIN PGP SIGNED MESSAGE-----
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 lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] 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
>
>   

Jules

- -- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

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 www.transtec.co.uk


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

wj8DBQFGg+EiEfZZRxQVtlQRArLSAKDJq9pfJYr86LLYK9B0jkrBzjmqvACgrjyc
Dm9xT58kZzC0IWK6hCYLots=
=X/NO
-----END PGP SIGNATURE-----

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



More information about the MailScanner mailing list