Solved

Accidentally removed SUNWcsr

Posted on 2010-09-22
5
630 Views
Last Modified: 2013-12-27
I have accidentally removed the SUNWcsr, SUNWhea as well as SUNWmdb and SUNWmdbx while the most unfortunate thing is the network connection breaks which makes me unable to login to the system again. How can I install  those package back?

I have then reboot the server and of coz it won't boot and keep on having core dump. I have then boot to single user mode using the installation cd and then fix the disk using fsck. After that, I then tried to mount the disk using "mount /dev/dsk/c1t0d0s0 /a" and it works.

I can then locate the SUNWcsr while when I issue the command "pkgadd -R /a -d . SUNWcsr" it compained with "error: unable to open admin file <default> "

What can I do now?
0
Comment
Question by:frankcheong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
nognew earned 500 total points
ID: 33735636
Hi there!
 create a file:
/var/sadm/install/admin/default
with the following content:


mail=<your email here>
instance=unique
partial=ask
runlevel=ask
idepend=ask
rdepend=ask
space=ask
setuid=ask
conflict=ask
action=ask
basedir=default

Cheers,
t.
0
 
LVL 4

Author Comment

by:frankcheong
ID: 33741666
Actually, I can only boot up to single user mode using cdrom and I suppose the whole file system is read only except the one I mount using /a?

Do you mean to create the default file under /a/var/sadm/install/admin/default instead?
0
 
LVL 8

Expert Comment

by:nognew
ID: 33741779
Yep. If its the current mount point.  
T.
0
 
LVL 13

Expert Comment

by:Rowley
ID: 33742001
When you run pkgadd from a cd boot and rw mount your root partition, ensure you specify the alternate root path using the -R option to pkgadd.
0
 
LVL 4

Author Closing Comment

by:frankcheong
ID: 33750476
yes, it did the tricks.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question