Hi all, vor 2 hours i made a very stupid mistake: i have deleted (as root naturally) a part of /usr-directory. I have definitely deleted .snap and presumably 100-150 files in /usr/bin. If my attempt with backup-restore failed, can i get the binaries, that was deleted, with sysinstall/distributions/base ? uname -a -> FreeBSD (XXXXXX).uni-tuebingen.de 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 thanks, -- Zara Kanaeva.
On 09/15/10 15:36, Zara Kanaeva wrote:> Hi all, > > vor 2 hours i made a very stupid mistake: i have deleted (as root > naturally) a part of /usr-directory. I have definitely deleted .snap and > presumably 100-150 files in /usr/bin.> uname -a -> > FreeBSD (XXXXXX).uni-tuebingen.de 8.0-RELEASE FreeBSD 8.0-RELEASE #0: > Sat Nov 21 15:02:08 UTC 2009 > root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64That 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.
Zara Kanaeva wrote:> Hi all, > > vor 2 hours i made a very stupid mistake: i have deleted (as root > naturally) a part of /usr-directory. I have definitely deleted .snap > and presumably 100-150 files in /usr/bin. If my attempt with > backup-restore failed, can i get the binaries, that was deleted, with > sysinstall/distributions/base ? > > uname -a -> > FreeBSD (XXXXXX).uni-tuebingen.de 8.0-RELEASE FreeBSD 8.0-RELEASE #0: > Sat Nov 21 15:02:08 UTC 2009 > root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > thanks,Yep, the contents of /usr/bin are covered by the base distribution. -Boris
2010/9/15 Zara Kanaeva <zara.kanaeva@ggi.uni-tuebingen.de>> Hi all, > > vor 2 hours i made a very stupid mistake: i have deleted (as root > naturally) a part of /usr-directory. I have definitely deleted .snap and > presumably 100-150 files in /usr/bin. If my attempt with backup-restore > failed, can i get the binaries, that was deleted, with > sysinstall/distributions/base ? > > uname -a -> > FreeBSD (XXXXXX).uni-tuebingen.de 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat > Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC > amd64 > > You can install 8.0-RELEASE into other computer or virtual machine and thenjust copy over missing files.
Am Wednesday 15 September 2010 15:36:38 schrieb Zara Kanaeva:> can i get the binaries, that was deleted, with > sysinstall/distributions/base ?This will restall the missing binaries, but I think there will be installed some original files of the /etc directory, too. I think you changed at least your credentials and /etc/shells. These might get lost. - Michael