TechExhibeo

tmp mount

Apr 21st, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1.  
  2. dd if=/dev/zero of=/home/images/tmp-dir bs=4096M count=2
  3.  
  4.  
  5. mke2fs -j /home/images/tmp-dir
  6.  
  7.  
  8. mount -t ext3 -o loop /home/images/tmp-dir /tmp
  9.  
  10. add this is /etc/fstab
  11. /home/images/tmp-dir /tmp ext3 defaults,loop 0 0
  12.  
  13.  
  14. chmod 1777 /tmp
  15. chown root.root /tmp
Add Comment
Please, Sign In to add comment