Re: Deleting contents of /tmp on shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



 

> -----Original Message-----
> From: centos-bounces@xxxxxxxxxx 
> [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Eero Volotinen
> Sent: Monday, December 14, 2009 3:27 AM
> To: CentOS mailing list; Sorin Srbu
> Cc: 'CentOS mailing list'
> Subject: Re:  Deleting contents of /tmp on shutdown
> 
> Quoting Sorin Srbu <sorin.srbu@xxxxxxxxxxxxx>:
> 
> >> -----Original Message-----
> >> From: centos-bounces@xxxxxxxxxx 
> [mailto:centos-bounces@xxxxxxxxxx] On
> > Behalf
> >> Of Geerd-Dietger Hoffmann
> >> Sent: Saturday, December 12, 2009 11:22 PM
> >> To: CentOS mailing list
> >> Subject: Re:  Deleting contents of /tmp on shutdown
> >>
> >> On Sat, Dec 12, 2009 at 10:05 PM, Thomas Dukes 
> <tdukes@xxxxxxxxx> wrote:
> >>
> >> I have the /tmp in memory, which effectively deletes everything on 
> >> reboot. Maybe another solution?
> >
> > How do you achieve that?
> > --
> > /Sorin
> >
> 
> using tmpfs?
> 
> http://kevin.vanzonneveld.net/techblog/article/create_turbocha
> rged_storage_using_tmpfs/
> 

One thing that's not clear in the two links that have been posted about
doing this is, do you add the line or replace the the line already present
in /etc/fstab?

/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
<----------
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0


Thanks

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux