How to recover/reinitialize a trashed /var partition?
David Kreil
kreil at ebi.ac.uk
Wed Jul 28 18:20:53 PDT 2004
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),' ((!.-'
More information about the freebsd-questions
mailing list