Re: lug-bg: RE: rm -rf /usr (***** **)
- Subject: Re: lug-bg: RE: rm -rf /usr (***** **)
- From: George Danchev <danchev@xxxxxxxxx>
- Date: Mon, 16 Aug 2004 06:02:59 +0300
On Sunday 15 August 2004 17:34, George Danchev wrote:
--cut--
> > predlagam ti da izpolzvash dfsbuild paketa da druga debian machina za da
> > si syzdadesh rescue live cd image za tvoqta arch ili napravo da to4nesh
> > gotov image ot http://people.debian.org/~jgoerzen/dfs/
> >
> > boot-vash ot nego i
> > dpkg-repack dpkg apt
> > koeto ste t create-ne tezi paketi v cwd.
> > mount broken-hda-partition /mnt/nesto
Ooops, predi chroot, gledash dali apt versiqta v dfsbuild i tazi na harda ti
sa ednakvi i cp /usr/bin/apt-* /mnt/neto/usr/bin/
cp /usr/bin/dpkg* /mnt/nesto/usr/bin/
Ako ne sa ednakvi teglish tvoqta versiq debs ot sid ili snapshot.debian.net:
ftp://ftp.bg.debian.org/debian/pool/main/a/apt/apt-utils_0.5.27_i386.deb
ftp://ftp.bg.debian.org/debian/pool/main/a/apt/apt_0.5.27_i386.deb
ftp://ftp.bg.debian.org/debian/pool/main/d/dpkg/dpkg_1.10.23_i386.deb
ar -x file.deb
tar -xfvz data.tar.gz
cp usr/bin/apt-* /mnt/nesto/usr/bin
taka procedirash i za perl, debsums i tam vij oste kakvo ste ti trqbva da za
mojesh da rabotish samostoqtelno sys system-a ot hda, a ne v chroot-a.
> > chroot /mnt/nesto
> > mount -t proc none /proc
> > dpkg -i oniq dpkg i apt deto gi repack-na
> > moje i tuka da vdignesh mreja i apt-get --reinstall spisyk ot paketi kato
> > base-files base-config i t.n.
> > Ot tova polojenie moje i da debootstrap-nesh woody/sarge/sid (tam s kakvo
> > si) w nqkoq nezavisima dir na hda-to da go imash pod ryka.
> > umount /proc ; exit
> >
> > boot ot hda, dano ne reve mnogo za nenamereni files ot /usr ;-) ako mnogo
> > reve se vrystash na dfsbuild environment-a i slagash tam za kakvoto reve
> > ;-)
> >
> > ot hdd-to ve4e
> > dpkg -l | awk '{print $1 $2}'
> > i triesh revodete zapo4vashti s "rc", da ostanat samo tezi zapo4vashti s
> > "ii", no pak gledash vsi4ki da si imash edno na um.
> > apt-get --reinstall install `cat spisyka paketi`
> >
> > razbirash ideqta kakva e
> >
> > > livecd Knoppix or Debian based 4rez , koeto da si instaliram dpkg/apt
> > > ediniq wariatn e
> > >
> > > ./configure --prefix=/mnt/Debianonhda ...
> > > make
> > > make install
> > > na dpkg i posle
> > > dpkg -i apt...
> > > apt-get --reinstal *
> > >
> > > kato neznam dali * -ta 6te podejstwa kato wsi4ko :(
> >
> > ami ste stane da go build ot src ot cvs-a ili ot debian source package,
> > ako imash syotvetnite build-depends, ama stom kazvash 4e e stignalo do
> > "s", zna4i nqmash make, za autoconf nqma da govorim ;-) moje da gi
> > repack-nesh i tqh de.
>
> zabravih da obadq 4e kogato ve4e imash rabotesti apt, dpkg, perl i t.n.
> base utils na systema ot hard da instalirash debsums (depends on
> perl,libdigest-md5-perl) za da se uverish dali imash oste instalirani
> paketi 4iijto filove si bil del-nal s rm. Sega debsums bez argumenti ste
> 4ekva dosta, pyk ako iskash mu podaj spisyka ot instaliranite paketi na
> tvoqta sistema (man debsums)
> Eto kakvo kazva ako sym si del-nal /bin/ed:
> <some files skipped>
> usr/share/man/man1/ed.1.gz OK
> usr/share/info/ed.info.gz OK
> debsums: can't open ed file bin/ed (No such file or directory)
za da razberesh /bin/ed v koj paket e: dpkg -S /bin/ed
> sledva apt-get --reinstall install ed i t.n. stava qsno.
> Ako imash installed packages bez sumi (debsums -l) naj-dobre gi reinstall.
> Tova e za sobstveno ubejdenie 4e zada4ata po vyzstanovqvaneto e zavyrshila.
Vsystnost vednaga sled kato si dostavish rabotesti apt-get, dpkg, debsums,
perl v /usr/bin/ zapo4vash inspekciq s debsums i re-instalirash samo tezi
paketi 4ijto files pokazva 4e lipsvat ot /usr/bin/... za da ne reinstall
vsi4ko. Back-ni si i staroto /etc da ima, ako nesto promenish i tam.
--
pub 4096R/0E4BD0AB 2003-03-18 <keyserver.bu.edu ; pgp.mit.edu>
fingerprint 1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|