[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multiple /var mounts
> > mount /var >/dev/null 2>&1
>
> that's why you're mounting it twice. if you add it to fstab and add
> another mount line, that's what happens.
>
> > Does somebody have an idea on how I can prevent /var from being mounted
> > twice? Why can file systems even be mounted twice, that
> > doesn't seem to make much sense (to me anyway)?
>
> only tell the system to mount it once. it's not actually mounted twice.
> you have two file systems that happen to be mounted at the same point.
> that's perfectly legal, if not normal.
Hmm, that solution was easier than I thought & worked, thanks. I suppose I
should spend more time with OpenBSD.
I'm not sure if I understand it though. I have another OpenBSD system that
has /var in the fstab file and ALSO has the "mount /var >/dev/null" command
in the "/etc/rc" file. Yet it does not mount it twice. Why is that?
... and if it's not in fstab, what would this "mount" command do anyway? How
would it know how to mount it?
Anyway, thanks!
Ingmar.