About creating /var subdirectories

Carsten Aulbert carsten at welcomes-you.com
Mon Dec 29 20:48:35 CET 2008


Hi Adrian,

Adrian Gibanel Lopez wrote:
> About creating /var subdirectories
> 
> In my quest for building an Ubuntu 8.10 fai server that serves Ubuntu 8.10
> client I have learnt this:
> 
> In the / partition you need to create two folders: /var/lock and /var/run.
> This way /var/lock and /var/run are mounted ok before the actual /var
> partition is mounted.
> 
> Is there any special hook or place where I should put the:
> mkdir /var/lock
> mkdir /var/run
> commands so that I can avoid this problem automatically.

If I recall correctly, Ubuntu uses tmpfs (or something alike) for these
two directories since they only make sense while the system is running
and nothing in it needs to be preserved upon reboot. Since you don't
need them during installation time (at least that's what I believe) I
think it should be safe to add those to the /etc/fstab with according
lines - but that is untested.

HTH

Carsten


More information about the linux-fai mailing list