Subject: Re: Trick to putting /var & /tmp on 2nd Drive?
To: Beaker (aka Jeff W) <beaker@myrealbox.com>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-help
Date: 02/20/2003 15:19:47
On Thu, 20 Feb 2003, Beaker (aka Jeff W) wrote:

> It there a trick to mounting /var &/or /tmp on a second drive? I've got
> a sparc running 1.6 with the following in /etc/fstab:
>
> /dev/sd0a  /  ffs  rw  1 1
> /dev/sd0b  none  swap  sw  0 0
> /dev/sd1a  /tmp ffs  rw  1 2
> /dev/sd1b  none  swap  sw  0 0
> /dev/sd1g  /home ffs  rw  1 2
>
> All boots well but if I try to startx I get an error stating "can't
> mkdir /tmp/.X11-unix" (or something to that effect). Eliminating the
> /tmp entry in /etc/fstab fixes the problem. Maybe some sort of FS
> integrity thing?

When "/tmp" is unmounted, all references to "/tmp" will refer to the
permissions of the directory name "tmp", in "/". Once "sd1a" is
mounted on "/tmp", the permissions of the root node of "sd1a" rule.
So just "chmod 1777 /tmp" *after* mounting "/tmp", and all will be as
it should.

Frederick