Renamed lib directory by mistake


 
Thread Tools Search this Thread
Operating Systems Solaris Renamed lib directory by mistake
# 8  
Old 10-15-2010
No need for another disk. Just boot a Solaris installation CD, select to run a shell from it, mount your / filesystem and fix the directory name.
This User Gave Thanks to jlliagre For This Post:
# 9  
Old 10-15-2010
Running programs have their libs already open and so by inode and mmap(), not path.

If any user has a mounted home dir, you can go elsewhere and add the mistake to LD_LIBRARY_PATH in their .kshrc, .profile, and then maybe their account might log in from the console or something.

If you have a running terminal anywhere, you can export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:mistake_dir. I keep a bunch per server, xterms under VNC Xvnc local desktop. I have used them like sacrificial troops when swap is full, one exec per screen to rm -rf /tmp (not as root).
# 10  
Old 10-15-2010
Quote:
Originally Posted by jetjaguar
You've got my head spinning Neo, thank you so much.

What OS would you recommend I use to put on this disk for my ancient machine?

I have a Sun Enterprise 250 (1998 vintage).
As jlliagre also suggests, do you have your install CDROM?

Most people I know can't find them in emergencies, and with a 1998 model, I would be surprised if you can find yours.

Do you have an install disk or a bootable version of Solaris 8 anywhere?

If not, do you have another machine handy? If so, what is it?

---------- Post updated at 18:08 ---------- Previous update was at 18:04 ----------

Quote:
Originally Posted by DGPickett
Running programs have their libs already open and so by inode and mmap(), not path.
In theory... but when you ssh into a box I believe the exec process will go to disk again to look for libs.

I could be wrong... but I have never got anything to work ever when I did this, and I have done it. I have removed the /lib directory before and I can't even get most commands to work.

And, as the poster confirms, he can't get in that way so the point is moot.
# 11  
Old 10-15-2010
I have three hand-burned discs:

Solaris 8 10/01 Installation Disk
Solaris 8 10/01 Disk 1 of 2
Solaris 8 10/01 Disk 2 of 2

I don't know what 10/01 means...

---------- Post updated at 01:11 PM ---------- Previous update was at 01:11 PM ----------

I've tried getting to the terminal from different machines, no dice.
# 12  
Old 10-15-2010
Quote:
Originally Posted by jetjaguar
I have three hand-burned discs:

Solaris 8 10/01 Installation Disk
Solaris 8 10/01 Disk 1 of 2
Solaris 8 10/01 Disk 2 of 2

....
Great!! You are halfway to geek heaven!

One of the Solaris gurus like jlliagre can "bring you home" from here.

Thanks for stopping by and glad to get you on the road to recovery Smilie
# 13  
Old 10-15-2010
Thank you so much everyone, this is all brand new to me, I was just trying to instal PHP on the machine and couldn't because I had to update libxml. I thought I read that when I update the libxml, it would create a lib directory, but I allready have a lib directory, and I knew it was important, so I renamed it to "lib_old" and before going any further after unpacking libxml2... and that's how I got where I am.

I did make a copy of lib on my windows machine, but I should have made the copy on the linux machine and called THAT "lib_backup"...

---------- Post updated at 01:18 PM ---------- Previous update was at 01:17 PM ----------

Once I insert the instal CD, and reboot, will it be self-explanatory from there, and give me the option to repair?

It isn't going to simply start installing Solaris 8, is it?
# 14  
Old 10-15-2010
Quote:
Originally Posted by jetjaguar
Thank you so much everyone, this is all brand new to me, I was just trying to install PHP on the machine and couldn't because I had to update libxml. I thought I read that when I update the libxml, it would create a lib directory, but I already have a lib directory, and I knew it was important, so I renamed it to "lib_old" and before going any further after unpacking libxml2... and that's how I got where I am.

I did make a copy of lib on my windows machine, but I should have made the copy on the linux machine and called THAT "lib_backup"...
No worries!

We all have done the same thing or even worse at one time or another!

We have a lot of Solaris experts here to help you.

---------- Post updated at 18:21 ---------- Previous update was at 18:19 ----------

Quote:
Originally Posted by jetjaguar
Once I insert the instal CD, and reboot, will it be self-explanatory from there, and give me the option to repair?

It isn't going to simply start installing Solaris 8, is it?
Hold your jets, jetjaguar... wait for one of the Solaris gurus to intercept your post and reply.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Renamed Volume Group name on Webmin while running samba server (oops)

Hi...I'm new to Linux and was working on a home server. I have it operational with Samba Share as my NAS system. Unfortunately, while I was on Webmin I changed the Logical Volume Group Name and now I can't find the data I had saved on my Samba Server. Can anyone help me recover those files? ... (0 Replies)
Discussion started by: pangil
0 Replies

2. Shell Programming and Scripting

who renamed my executable

Hi All, I connected via rlogin in testing environment (ksh ) and placed an executable with -rwxr-xr-x permission. eg: from my own unix box used : rlogin host -l user But the exe was renamed by somebody. since it's only renaming none of the access time , modification time etc is altered.... (2 Replies)
Discussion started by: blackcat
2 Replies

3. UNIX for Dummies Questions & Answers

Can anyone help me to spot my mistake?

Hi there can anyone help me to spot my mistake and please explain why it appears My code : #!/usr/bin/gawk -f BEGIN { bytes =0} { temp=$(grep "datafeed\.php" | cut -d" " -f8) bytes += temp} END { printf "Number of bytes: %d\n", bytes } when I am running ./q411 an411 an411: ... (6 Replies)
Discussion started by: FUTURE_EINSTEIN
6 Replies

4. UNIX for Advanced & Expert Users

Solved: Missing whatis file from my /usr/shar/lib directory...

My whatis file is missing from my /usr/share/lib directory. I know I can recreate it by using catman -w command. My question is, why do all of my other servers have it and this one doesn't. Maybe due to a recent move of old to new servers and it just wasn't copied over. Unlikely, 'cause all... (0 Replies)
Discussion started by: zixzix01
0 Replies

5. UNIX for Dummies Questions & Answers

Probably some stupid mistake...

Hi everyone ! I have a file wich look like this : >Sis01 > Sis02 ... >Sis44 I want to separe each paragraphe in a different file, so I decide to use the "FOR" loop + sed. for f in {01..44} do (5 Replies)
Discussion started by: sluvah
5 Replies

6. UNIX for Advanced & Expert Users

Mistakenly renamed libdl.so: system got corrupted

Hi, I am using Ubuntu 8.04 64-bit (Hardy Heron LTS Desktop edition) OS on a 64-bit intel hardware (x86_64). I have wrongly renamed the /lib64/libdl-2.7.so shared library file and now hardly few commands are working. My Gnome UI display has gone and I could not establish any new connection via... (12 Replies)
Discussion started by: royalibrahim
12 Replies

7. UNIX for Advanced & Expert Users

Critical lib renamed

Hello I have moved a critical lib from its location, so all programms linked to libc dont work . I still have two shells on the machine, bash and ksh The only thing I see is copying back the lib, but of course : dd, cp , mv etc are dead . So i tryed a loop with read ... {^Jwhile read... (24 Replies)
Discussion started by: remi75
24 Replies

8. Red Hat

ls: /lib/libattr.so.1: no version information available (required by /lib/libacl.so.1)

Hello, I'm experimenting a problem on my rh server. Red Hat Enterprise Linux AS release 3 (Taroon Update 8) 2.4.21-47.ELsmp #1 SMP i686 i686 i386 GNU/Linux It started with a segmentation fault on #id root To resolve it, I've installed coreutils-4.5.3-28.4.i386.rpm But, I... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

9. Shell Programming and Scripting

duplicate index names renamed

Hello everyone ! Please have a minute and see if you know how to script this I have a file like this: "create table .... ... create index n112 on ... ... create table ... .... create index n113 on... ... create table ... create index n112 on ...! duplicate ... (1 Reply)
Discussion started by: sotoc79
1 Replies

10. UNIX for Dummies Questions & Answers

Crontab Mistake!!!

Hi. I hope someone can help me with this problem. Being a novice to Unix, I editted my crontab directly by typing " crontab -e ". Well, I needed to make some changes so, I typed " crontab -r ". Now I have no crontab, and I can't seem to get crontab to write a new file. I' ve tried: vi... (4 Replies)
Discussion started by: cstovall
4 Replies
Login or Register to Ask a Question