Renamed lib directory by mistake


 
Thread Tools Search this Thread
Operating Systems Solaris Renamed lib directory by mistake
# 29  
Old 10-15-2010
I did exactly that DGPickett.

---------- Post updated at 03:02 PM ---------- Previous update was at 03:01 PM ----------

And it worked.I knew it worked immediately because the CPU has been near 100% this whole time and it dropped down to 1%.I've test it and it all seems good.
# 30  
Old 10-15-2010
Sure glad you had that file manager, it was getting ugly!

---------- Post updated at 04:04 PM ---------- Previous update was at 04:03 PM ----------

Not the people, the idea of building a system from scratch.
# 31  
Old 10-15-2010
I tried to go in and now rename "lib_old" back to just "lib", but it won't let me because the symlink I just created is called "lib."Should I just leave it alone now?

Let me ask the Solaris 8 experts if I should continue the installation of libxml2 because I need it for PHP. If I do that, will it fix the mess I've made?Also, I don't understand the implications of libxml2 messing with my lib directory, can it mess anything up? Will I loose an configurations that are important for the server and the websites it hosts?

And, if it's safe, what options should I turn on when I do the configuration? There are lots. Ultimately, I'm just trying to get to a point where I can install phpMYADMIN so that I can edit the existing mysql databases in a manner I'm comfortable with... But I'll only be able to use that if I can somehow do it remotely on the network, because the Sun only has Netscape on it...

Last edited by jetjaguar; 10-15-2010 at 06:41 PM..
# 32  
Old 10-15-2010
This fails?

Code:
mv -f /usr/lib_old /usr/lib

# 33  
Old 10-15-2010
Quote:
Originally Posted by DGPickett
..... the idea of building a system from scratch.
He never had the idea to build or reinstall from scratch. His other plan was to boot from an install disk, mount the partition and fix the problem; something that most of us could have already accomplished hours ago, LOL.
# 34  
Old 10-15-2010
Quote:
Originally Posted by DGPickett
This fails?

Code:
mv -f /usr/lib_old /usr/lib

It does fail: "insufficient arguments..."
# 35  
Old 10-15-2010
Normally "short cuts" take longer than just doing the work properly.

Instead of shooting blindly and getting advice based on "best guesses" why not shorten your time to success and mount your disk using your boot disk and fix the problem from the console?

You could have fixed this problem a number of hours ago if you had of mounted the filesystem and fixed the problem, IMHO.

We cannot be 100% sure, based on your posts, that /lib was a symlink to /usr/lib ... this is just a "best guess". Instead of guessing, why not just fix it properly?

---------- Post updated at 22:34 ---------- Previous update was at 22:26 ----------

Note:

Solaris allows you to boot from the CD-ROM into single user mode which, in turn, will allow you to mount your filesystems and repair the problem. To boot into single user mode from CD-ROM, from the ok (bootprom) prompt do this:

Code:
boot cdrom -s

This will give you a root prompt (#) with a functional but limited Solaris filesystem from the CDROM. To access your filesystems, you need to mount them. For example, if your root filesystem is c0t0d0s0, use:

Code:
mount /dev/dsk/c0t0d0s0 /mnt

Then you can work in the /mnt filesystem and make changes to your real root filesystem. You can mount other filesystems on their usual mount points within the root (/mnt) filesystem. Once you have fixed whatever you need, just reboot.
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