Solved

Accidentally removed SUNWcsr

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

679 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