Solved

Accidentally removed SUNWcsr

Posted on 2010-09-22
5
622 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

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…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.
Suggested Courses

734 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