Results 1 to 5 of 5

Thread: Disable TMPFS

  1. #1
    Join Date
    Feb 2015
    Beans
    43

    Disable TMPFS

    Hi, I would like to know how can I totally and completely disable TMPFS from my system. I want my /tmp to be mounted on a physical hard disk.

    Thanks in advance.

    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.2 LTS
    Release: 14.04
    Codename: trusty

  2. #2
    Join Date
    Mar 2011
    Beans
    1,994

    Re: Disable TMPFS

    /tmp is normally just a directory under the root (/), so it's probably on the hard disk. TMPFS is not even used for /tmp. Some things like /run are kept in ram and use TMPFS (show this with the command df -a in a terminal), but that does not seem to be what you are asking.

  3. #3
    Join Date
    Feb 2015
    Beans
    43

    Re: Disable TMPFS

    Quote Originally Posted by ubfan1 View Post
    /tmp is normally just a directory under the root (/), so it's probably on the hard disk. TMPFS is not even used for /tmp. Some things like /run are kept in ram and use TMPFS (show this with the command df -a in a terminal), but that does not seem to be what you are asking.
    True, /tmp is mounted in the harddrive, sorry about that. This is output of cat /etc/mtab | grep tmpfs
    none /sys/fs/cgroup tmpfs rw 0 0
    udev /dev devtmpfs rw,mode=0755 0 0
    tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=0755 0 0
    none /run/lock tmpfs rw,noexec,nosuid,nodev,size=5242880 0 0
    none /run/shm tmpfs rw,nosuid,nodev 0 0
    none /run/user tmpfs rw,noexec,nosuid,nodev,size=104857600,mode=0755 0 0

    and this is df -h
    /dev/sda6 103G 21G 78G 21% /
    none 4,0K 0 4,0K 0% /sys/fs/cgroup
    udev 1,9G 4,0K 1,9G 1% /dev
    tmpfs 384M 1,3M 382M 1% /run
    none 5,0M 0 5,0M 0% /run/lock
    none 1,9G 884K 1,9G 1% /run/shm
    none 100M 14M 87M 14% /run/user
    AFS 2,0T 0 2,0T 0% /afs

    so if I understand it correctly, whatever is inside /run is allowed to take up to 1,9G of my memory (please, correct me if I am wrong) if needed be. I would like to be able to control and/or completely disable that.

  4. #4
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: Disable TMPFS

    Quote Originally Posted by holysword View Post
    I would like to be able to control and/or completely disable that.
    You probably can, but it won't be easy. /run uses tmpfs for a reason.

    A good place to start is https://wiki.debian.org/ReleaseGoals/RunDirectory
    and http://unix.stackexchange.com/questi...run-filesystem
    Last edited by ian-weisser; December 18th, 2015 at 02:16 PM.

  5. #5
    Join Date
    Mar 2011
    Beans
    1,994

    Re: Disable TMPFS

    You looked at the wrong line, /run is only 1.3M not 1.9G.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •