cp -a /etc/fstab /etc/fstab.bak
dd if=/dev/zero of=/var/tempFS bs=1024 count=3072000
/sbin/mkfs.ext3 /var/tempFS
rsync -av /tmp/ /tmpbackup/
mount -o loop,noexec,nosuid,rw /var/tempFS /tmp
chmod 1777 /tmp
rsync -av /tmpbackup/ /tmp/
vi /etc/fstab
* And add this line or replace existing /tmp line:
/var/tempFS /tmp ext3 loop,nosuid,noexec,rw 0 0
mount -o remount /tmp
df -h
Should look something like this:
/var/tempFS 962M 18M 896M 2% /tmp
mv /var/tmp /var/vartmp
ln -s /tmp /var/tmp
rsync -av /var/vartmp/ /tmp/
rm -rf /var/vartmp
vi /etc/fstab
Locate:
none /dev/shm tmpfs defaults,rw 0 0
Change it to:
none /dev/shm tmpfs defaults,nosuid,noexec,rw 0 0
mount -o remount /dev/shm