LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-03-2006, 01:55 AM   #1
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Rep: Reputation: 15
Solaris 10 Recovery


hi !
Yesterday i made a mistake by using command
crle -l /usr/local/lib which changed my all settings and no command was working even ls was not working. Between this process i execute some command n system hang up n i had no option but to restart it n after that i got msg which continusly moving from up to down
Warning:init(1m) existed on fatal signal 9: restarting automatically
Then i tried to boot it from cdrom and use following commands

boot cdrom -s
mount /dev/dsk/c0t0d0s0 /a
crle -l /usr/lib
rm /var/ld/ld.config
rm /var/ld/64/ld/config

n reboot it but problem was there then i tried
boot cdrom -s

crle -l /lib:/usr/lib:/usr/local/lib
n also tried command after boot cdrom -s
export LD_LIBRARY_PATH=/lib:/usr/lib

but problme is still there.
How can i recover my system with original settings.
 
Old 11-03-2006, 02:05 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You made a second mistake by running other commands and rebooting.

Now, the third mistake is you are setting the linker path on the miniroot instead of your main disk.

Try copying /var/ld/ld.config to /a/var/ld/ld.config
 
Old 11-03-2006, 03:54 AM   #3
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
I did
boot cdrom -s
cp /var/ld/ld.config to /a/var/ld/ld.config

error
cp: cannot access /var/ld/ld.config
 
Old 11-03-2006, 01:30 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You need to create a /var/ld/ld.config file first.
 
Old 11-09-2006, 10:52 PM   #5
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
wat should i do next ?
 
Old 11-09-2006, 11:55 PM   #6
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
i created file in /var/ld/ld.config and then tried to cp it to /a/var/ld/ld.config
i gave me error
cp: cannot create /a/var/ld/ld.config No such file or directory.
n i tried to the following
touch /a/var/ld/ld.config
error: cannot create
 
Old 11-10-2006, 12:44 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You need to remount your partition in read-write mode.
 
Old 11-10-2006, 01:15 AM   #8
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
wat command will be used ?
mount -o rw not working .
 
Old 11-10-2006, 02:35 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
try: mount -o remount,rw
 
Old 11-12-2006, 11:25 PM   #10
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
hi !
i tried
mount -o remount,rw

it gave me some different usage options like mount [-v][-p]
 
Old 11-12-2006, 11:58 PM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
try:
Code:
mount -F ufs -o remount /dev/dsk/c0d0p0s0 /a
 
Old 11-13-2006, 01:26 AM   #12
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
mount -F ufs -o remount /dev/dsk/c0d0p0s0 /a
mount: /dev/dsk/c0d0p0s0 or /a, no such file or dirctory.
 
Old 11-13-2006, 08:12 AM   #13
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Sure, there was a typo, it's c0t0p0s0.
 
Old 11-14-2006, 01:35 AM   #14
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
same error .
can u define me wat this command do ?
 
Old 11-14-2006, 02:12 PM   #15
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Hmmm, another typo, but you should have found this by yourself, as in fact it is a command you already entered in your first post.

What it does is mounting the device given as first argument to a directory given as second argument.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
great solaris website for newbies http://solaris-x86.org/ feetyouwell Solaris / OpenSolaris 2 12-06-2006 12:14 AM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM
Regarding Data Recovery On Solaris rajaniyer123 Solaris / OpenSolaris 1 03-22-2006 12:19 PM
Windows and FC3 and Solaris---and only Solaris boot error message zillah Linux - Laptop and Netbook 1 07-07-2005 10:17 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration