Date: Thu, 29 Jul 2004 02:20:43 +0100 From: David Kreil <kreil@ebi.ac.uk> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: freebsd-questions@freebsd.org Subject: Re: How to recover/reinitialize a trashed /var partition? Message-ID: <200407290120.i6T1Khd00595@puffin.ebi.ac.uk> In-Reply-To: Your message of "Wed, 28 Jul 2004 18:15:07 PDT." <20040729011507.GB20909@Odin.AC.HMC.Edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Dear Brooks,
Thank you very much for your fast and helpful reply.
# populate /var
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
# add sendmail bits
/usr/sbin/mtree -deU -f /etc/mtree/BSD.sendmail.dist -p /
# create new syslog files
/usr/sbin/newsyslog -CC
# add a lastlog file
/usr/bin/touch /var/log/lastlog
> I cribbed this from /etc/rc.d/var on current.
This is fantastic, thanks!
With best regards,
David.
------------------------------------------------------------------------
Dr David Philip Kreil                 ("`-''-/").___..--''"`-._
Research Fellow                        `6_ 6  )   `-.  (     ).`-.__.`)
University of Cambridge                (_Y_.)'  ._   )  `._ `. ``-..-'
++44 1223 764107, fax 333992         _..`--'_..-_/  /--'_.' ,'
www.inference.phy.cam.ac.uk/dpk20   (il),-''  (li),'  ((!.-'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407290120.i6T1Khd00595>
