Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2019 21:22:17 +0200 (CEST)
From:      =?UTF-8?Q?Trond_Endrest=C3=B8l?= <trond.endrestol@ximalas.info>
To:        freebsd-current@freebsd.org
Subject:   Re: filesystem mount problem
Message-ID:  <alpine.BSF.2.21.99999.352.1907212114260.35009@enterprise.ximalas.info>
In-Reply-To: <alpine.BSF.2.21.9999.1907211459520.89843@mail.neu.net>
References:  <alpine.BSF.2.21.9999.1907211459520.89843@mail.neu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Jul 2019 15:07-0400, AN wrote:

> I don't understand why the /tmp is being mounted.  It is causing problems
> because when I try to run portupgrade it fails for lack of space.  If I
> forcibly unmount it everything breaks.

tmpmfs is set to "AUTO" in /etc/defaults/rc.conf.

Try setting tmpmfs="NO" in /etc/rc.conf, reboot, and see if this 
prohibits the creation of /tmp as a tmpfs.

You can also set PKG_TMPDIR or TMPDIR to point to, say, /var/tmp. 

E.g.:

export PKG_TMPDIR=/var/tmp

or

setenv PKG_TMPDIR /var/tmp

> # umount -v /tmp
> umount: unmount of /tmp failed: Device busy
> [root@FreeBSD_13 ~]# umount -vf /tmp
> tmpfs: unmount from /tmp
> [root@FreeBSD_13 ~]# df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/ada0p3    428G    245G    149G    62%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> linprocfs      4.0K    4.0K      0B   100%    /compat/linux/proc
> tmpfs           47G    4.0K     47G     0%    /compat/linux/dev/shm

> [root@FreeBSD_13 ~]# vinagre
> Unable to init server: Could not connect to 127.0.0.1: Connection refused
> 
> (vinagre:27111): Gtk-WARNING **: 15:04:21.599: cannot open display: :0

This is expected when /tmp/.X11-unix/X0 ceases to exist, among other 
files within /tmp.

-- 
Trond.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.99999.352.1907212114260.35009>