[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Doing Stupid things?!



Hi,

Yesterday I've tried to 'kill' my Linux box -- and guess ... I did it :-) 
It died gracefully -- I couldn't boot it :-) (It took me some time to
bring it back) 

Everything has started from the moment I've tried the 'yard' -- rescue
disk utility. It was supposed to build a customised rescue disk. But
because of size restrictions it was supposed to strip the libs and
binaries on the fly while preparing the rescue stuff on the ramdisk.

So, the objstrip and strip didn't worked as they expected to, so I thought
of stripping the real binaries and libs. But without knowledge what damage
it can make I did it : strip --all /bin/* /lib/* and other...
(I knew that strip should remove some debugging and listing info from the
binaries)

After doing that I've dicovered that some programs stopped to work, and
other oddities started to happends...

So I decided to make to restore the /lib dir 
First I tried to upgrade ld.so from 1.714 to 2.04 . I've used rpm to make
it but it actually never used the new version but the old one. Even after
rebooting. The moment I rpm -e ld.so-1.714 (removed the old ld.so) most of
the utilities stopped to work. and reloading with new ld.so by running
ldconfig was impossible since it was dependant on the ld.so
So I've returned to force the install of the ld.so-1.714...
(BTW, rpm installed silently the new ld.so but didn't say a word about it
no working or some dependencies falling)

So, I'm coming to the worse part of my doing . I restore backup of /lib
with mounted disk! Ofcourse my system is stucked and the only way to
reboot was the Red Button 'Reset'. Then it took me some time to fix the
broken fs 

Now, As I have never went down to these bricks of Linux (Unices in
general) where I can learn about these lib stuff. I remember I read a lot
about Linux structure, and kernel -- but I can't remember a place where
lib specific things are being mentioned. And I guess it's not the best way
to learn the system by trying to break it down :-)

Any docs I've missed in my Linux educationary?
Or someone can enlight me with the lib managment and strip things (I guess
that strip wasn't as inocent as I thought, Am I wrong?)

Thank you!
BTW, with all help from you I have installed my home network, YEEEEE!
Linux 386/80M HD /2M RAM <-> Linux 586 MMX 200/1G HD/64M SDRAM

(Seems that my stupidity is too big , I was stucked with kernel trying to
find a ne card at address 0x12c when I asked it to look at 300!!! Guess
what -- I wrote 300 instead of 0x300 , and only today I have realized that
300==0x12c that's why it tried to poke at 0x12c :-)

______________________________________________________________________
Stas Bekman     mailto:sbekman@iil.intel.com [just another webmaster]
Linux Installation Party [Technion] http://instaparty.israel.eu.org/
Home Page:      http://www.eprotect.com/stas
A must visit: 	http://www.eprotect.com/stas/TULARC (Java,CGI,PC,Linux)
Linux-il Home:  http://www.linux.org.il/