1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

tmpfs?

Discussion in 'Installing and Upgrading FreeBSD' started by ccc, Jun 3, 2012.

  1. ccc

    ccc New Member

    Messages:
    609
    Likes Received:
    0
    Hi

    I would like to install a minimal FreeBSD with LXDE on a thin client with just 2GB CompactFlash (CF) and 1GB RAM.
    Should I use tmpfs?
     
  2. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,209
    Likes Received:
    15
    For what? For /tmp, yes.
     
  3. ccc

    ccc New Member

    Messages:
    609
    Likes Received:
    0
    I'd like to use tmpfs for /tmp and /var/(log,run) etc.
     
  4. ccc

    ccc New Member

    Messages:
    609
    Likes Received:
    0
    BTW how to use the "size" mount option in /etc/fstab, for example for tmpfs mounted as /tmp?
     
  5. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,209
    Likes Received:
    15
    /var/tmp is supposed to be kept around through system reboots, see hier(7). It might be better to disable logging entirely rather than put /var/log in a tmpfs.
     
  6. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,209
    Likes Received:
    15
    The same as other options, see fstab(5):

    Code:
    # Device  Mountpoint  FStype  Options                     Dump    Pass#
    tmpfs     /tmp        tmpfs   rw,mode=01777,size=1048576  0       0
    
     
  7. fluca1978

    fluca1978 New Member

    Messages:
    733
    Likes Received:
    0
    But disabling logging at all will make it more difficult to "debug" the running system. My opinion is to reduce the size and the amount of logs, not to remove or make them volatile.
     
  8. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,209
    Likes Received:
    15
    Depends on the stage of development. :)
     
  9. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,392
    Likes Received:
    7
    Simply log to an external syslog host?