- To: Jeff Waugh <jdub@xxxxxxxxxxxxxx>
- Subject: Re: [SLUG] Ubuntu "varrun" and /var on separate partition problem
- From: Ian Su <iansu@xxxxxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 13:53:13 +1000
- Cc: slug@xxxxxxxxxxx
- User-agent: Mutt/1.5.13 (2006-08-11)
It works! Brilliant! Thanks a lot!
(I chmodded them 1777 anyway, just in case)
Ian
Jeff Waugh said:
> <quote who="Ian Su">
>
> > And only *afterwards* does it mount /dev/mapper/vg0-var on to /var, and
> > the effect is some stuff is missing in /var/run, like
>
> You need to create directories for /var/run and /var/lock in the filesystem
> underneath /var (ie. your / filesystem). You could manually unmount /var and
> create them, or you could do this:
>
> mount --bind / /mnt && mkdir /mnt/var/run /mnt/var/lock && umount /mnt
>
> (That will mount / again under /mnt and let you create those directories in
> the bound mount instead of having to go through all the unmounting of /var
> mess.)
>
> - Jeff