Computing.Net > Forums > Solaris > /etc overwritten

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

/etc overwritten

Reply to Message Icon

Name: Jas
Date: July 16, 2002 at 10:23:58 Pacific
Comment:

Hi,
How do I overcome an issue with solaris box 2.6 not booting and complaining cant edit utmpx file. I tried to touch this file and edited vfstab. my /var is within the / filesystem. Even though I have veritas installed boot disk is not under its control. All happened when I accidently tried to copy another box's /etc to this box as a back up... Alass.. Pls help me with your valuable inputs....



Sponsored Link
Ads by Google

Response Number 1
Name: umang
Date: July 16, 2002 at 18:23:02 Pacific
Reply:

what does the machine do when u power-on??
do u get the ok prompt?does it try booting to the diff run levels?
can't u boot into single user mode?
power on the machine, bring it to the ok prompt(stop-A or SHIFT~. if on a remote console or whatever way u cn halt the sstem) and type in boot -s at the ok prompt..
does that work??
then try rectifying the damage...


0

Response Number 2
Name: Jas
Date: July 17, 2002 at 10:16:37 Pacific
Reply:

Oh!! I tried booting in different levels from ok prompt,, but whatever I do it comes to a stage while booting and says can't edit utmpx. At this stage I cant do anything but reseting and try the same. I can see all the files when I boot thru the O/S cd and mount the boot disk onto /a. This way I have a chance to edit the /etc files. But can I copy all the /etc files after booting from cd to my actual /etc?? I know I may have to edit lots of files is not it?? What about rc files?? Are they same in both places?

Thank You,


0

Response Number 3
Name: labtech
Date: July 17, 2002 at 11:45:51 Pacific
Reply:

try booting to single user mode via the cdrom, and doing
fsck -F ufs -y /dev/rdsk/cXd0tXsX where the cXtXd0sX is the partition on the disk where / (and /var) is. then reboot


0

Response Number 4
Name: Jas
Date: July 17, 2002 at 13:36:10 Pacific
Reply:

Did try..but no luck :-(


0

Response Number 5
Name: umang
Date: July 17, 2002 at 14:31:06 Pacific
Reply:


do u have yr /var/adm/utmpx|wtmpx files?

these error messages are pretty harmless during a reboot..but I have not had a machine not come up because of these..

try posting on Sun managers list[posting guidelines in the faq]:
http://www.latech.edu/sunmanfaq.html

or

comp.unix.solaris

best of luck!


0

Related Posts

See More



Response Number 6
Name: Steve
Date: July 17, 2002 at 15:54:42 Pacific
Reply:

Sounds like a hosed /etc/vfstab file.

The reason its complaining about not being able to write to the utmpx file is somehow the /root directory didn't mount correctly and your stuck in single-user mode with no write privs.

A df -k will show you what I mean at the single-user mode prompt.

The way around this is to boot off the CD end edit the /etc/vfstab file from there.



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: /etc overwritten

wrong entry in /etc/passwd www.computing.net/answers/solaris/wrong-entry-in-etcpasswd/3175.html

Question about /etc/services www.computing.net/answers/solaris/question-about-etcservices/1282.html

Script to dectect vi /etc/host file www.computing.net/answers/solaris/script-to-dectect-vi-etchost-file/2853.html