Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I NEED TO RESTORE /ETC

Status
Not open for further replies.

rankar

IS-IT--Management
Jul 30, 2001
60
0
0
US
I did a bonehead thing, I moved /etc to /etc_orig, I did this because I wanted to bring another etc directory from another server. Obviously this failed miserably, now I can't do anything, I can't mv the file back to it's original state and I can't use any utlities that require /etc. Is there anyone out there that can help me get out of the mess. I am running Solaris 7.

Thanks,
RG
 
Try this. Boot to the installation CD, mount the partition with /etc_orig, then rename it back to /etc.

1) Put the Solaris CDROM in the drive.

2) Assuming you're at the [tt]ok[/tt] prompt, type "[tt]boot cdrom[/tt]".

3) When the installer comes up, get to a command shell and do the following...
Code:
mount /dev/dsk/c0t0d0s0  /a
(your root device/partition)
Code:
mv /a/etc_orig /a/etc
init 6
Then cross your fingers and hope is comes back up.

Hope this helps.

 
Sounds like a plan, I will give it a shot.

Thanks,
RG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top