Re: very stupid mistake: a part of /usr is deleted

看板FB_stable作者時間15年前 (2010/09/17 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/9 (看更多)
On Wed, 15 Sep 2010, Ivan Voras wrote: [..] > That is actually an easy situation to recover, you can do it in at least > these ways: > > 1) if you build/upgrade from source, you can either reinstall if you have > working /usr/obj or try and rebuild them if you have working /usr/src > > 2) if you have another machine with the same FreeBSD version and > architecture, simply copy the missing files (with tar, scp, ftp, fetch/wget, > etc...) > > 3) if you have networking and at least working fetch / ftp / wget, cat and > tar, you can fetch the files at > ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/8.0-RELEASE/base/ and use > install.sh to reinstall the base binaries > > Remember that those files are not magical, you can restore them any way you > are able. You can even boot the live CD (from > ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/ISO-IMAGES/8.0/), mount the > appropriate file system and copy the files from the CD. 1) and 3) look good, but 2) - except tar - or cp'ing files from the CD won't preserve hard links, of which there are quite a few in /usr/bin, that install.sh takes care of: tar --unlink -xpzf - -C ${DESTDIR:-/} Apart from the few megs of extra space used, I wonder if that matters, especially regarding later updates that may replace some of those files? cheers, Ian _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1CalrI05 (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1CalrI05 (FB_stable)