Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2001 11:07:19 -0700
From:      Drew Tomlinson <drewt@writeme.com>
To:        krepel@fokus.gmd.de, 'Mark Drayton' <mark.drayton@4thwave.co.uk>, freebsd-questions@freebsd.org, "'Ian P. Thomas'" <ipthomas_77@yahoo.com>
Subject:   RE: How to Restore /var Tree?
Message-ID:  <5CD46247635BD511B6B100A0CC3F0239259F89@ldcmsx01.lc.ca.gov>
In-Reply-To: <5CD46247635BD511B6B100A0CC3F023917DA8E@ldcmsx01.lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you to all that responded.  The following answer not only restored the
tree but also created the files in the tree.

Drew

> -----Original Message-----
> From: krepel@fokus.gmd.de [mailto:krepel@fokus.gmd.de]
> Sent: Tuesday, June 12, 2001 10:02 AM
> To: Drew Tomlinson
> Subject: Re: How to Restore /var Tree?
>
>
> This way is used in /etc/rc.diskless2
>
> good luck
>
> echo "+++ populate /var using /etc/mtree/BSD.var.dist"
> /usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
>
> echo "+++ create log files based on the contents of /etc/newsyslog.conf"
> LOGFILES=`/usr/bin/awk '$1 != "#" { printf "%s ", $1 }
'/etc/newsyslog.conf`
> if [ -n "$LOGFILES" ]; then
>         /usr/bin/touch $LOGFILES
> fi
>
>
> Drew Tomlinson wrote:
> >
> > I made a major "booboo".  In an attempt to move my /var
> file system (is this
> > the right term?) I deleted it.  This 4.3 machine was built
> recently and I
> > hadn't implemented a backup strategy yet.  So, is there a
> way to rebuild the
> > default /var file system from source without rebuilding the
> entire system or
> > doing it all by hand?  I might do it by hand but I don't
> know what the
> > layout is and I don't have another machine to look at.  Any
> advice or
> > suggestions other than not to delete /var in the first
> place and do backups?
> > :)
> >
> > Thanks,
> >
> > Drew
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
>
> --
> Falco Krepel			Phone:  +49-(0)30 - 34 63 - 7 276
> GMD-FOKUS			Fax:    +49-(0)30 - 34 63 - 8 276
> Kaiserin-Augusta-Allee 31	e-mail: krepel@fokus.gmd.de
> 10589 Berlin			WWW:
http://www.fokus.gmd.de/usr/krepel


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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