Visit Our UNIX and Linux User Community


doh! please help.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers doh! please help.
# 1  
Old 05-03-2002
doh! please help.

I was creating some space in my /usr directory to install a new package. As root I had moved some of the big ones and replace them with links to the new locations. for some reason I then thought it a good idea to move /usr/lib to /export/home. After doing that absolutely nothing worked, not su, mv, cp, pkgadd, ls, etc. etc. etc.. about the only thing I could do was change up and down directories.

Please help, is there anything I can do to recover from this apart from reinstalling solaris. I can't even log in now.Smilie Smilie Smilie
# 2  
Old 05-03-2002
/usr/lib folder is where all the users library files reside. It contains many *.c files needed for execute application like su, cp, mv Etc. Include login's. Try to login as root and recover the folder back to its existing location. Are you able to do so ? since you cant login as su how abput login as root. ? If this methods doesnt help, then i guess you need to reinstall the OS again. Neway maybe some others have some logic explanation on this problem.
# 3  
Old 05-03-2002
sorry I can't login period, one of my other mistakes was to move openwin to a different location and I didn't link it. doh!
# 4  
Old 05-03-2002
Halt the system - boot -s cdrom (bootable Solaris cd )
You will be logged in as root. Mount your /usr device onto /a and
your /export/home device onto /mnt.
Example - your slice may be different:
# mount /dev/dsk/c0t0d0s3 /a
# mount /dev/dsk/c0t0d0s6 /mnt

Move the directory from /mnt to /a.
Unmount both /mnt and /a
fsck both partitions
halt the system
boot -s
Check to see if things are working now
Post back
thehoghunter
# 5  
Old 05-08-2002
Quote:
Originally posted by thehoghunter
Halt the system - boot -s cdrom (bootable Solaris cd )
You will be logged in as root. Mount your /usr device onto /a and
your /export/home device onto /mnt.
Example - your slice may be different:
# mount /dev/dsk/c0t0d0s3 /a
# mount /dev/dsk/c0t0d0s6 /mnt

Move the directory from /mnt to /a.
Unmount both /mnt and /a
fsck both partitions
halt the system
boot -s
Check to see if things are working now
Post back
I was thinking the same thing. perhapse you could boot from a floppy and use a primitive
kernel as a restoration method. if you can use this to move your files back, you should be
fine.
boris888
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #682
Difficulty: Easy
Steve Job's was the primary founder and majority shareholder of Pixar
True or False?

1 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

modify ls -l (long listing format output) strictly using SED only straightforward goalhard 4 me doh

Below is a sample out of ls -l which I would like to rearrange or modify by field numbers for example I successfully managed to disect using simple paragraph however for ls -l I can't divide the rows or fields by field number. Successful modification by fields using SED sample: $ sed -e... (1 Reply)
Discussion started by: wolf@=NK
1 Replies

Featured Tech Videos