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 Member

    Messages:
    610
    Thanks Received:
    4
    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,550
    Thanks Received:
    2,223
    For what? For /tmp, yes.
     
    ccc thanks for this.
  3. ccc

    ccc Member

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

    ccc Member

    Messages:
    610
    Thanks Received:
    4
    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,550
    Thanks Received:
    2,223
    /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,550
    Thanks Received:
    2,223
    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
    
     
    ccc thanks for this.
  7. fluca1978

    fluca1978 New Member

    Messages:
    733
    Thanks Received:
    68
    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,550
    Thanks Received:
    2,223
    Depends on the stage of development. :)
     
  9. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,530
    Thanks Received:
    2,352
    Simply log to an external syslog host?
     
    wblock@ thanks for this.