Operating System - HP-UX
1828370 Members
2935 Online
109976 Solutions
New Discussion

Mode Sigle User - Problem to Edit a file

 
SOLVED
Go to solution
Alan Vargas
Regular Advisor

Mode Sigle User - Problem to Edit a file

hello everyone

i have a big problem, i need to edit the /etc/rc.config.d/netconf in mode single user but in this mode the command vi is not found, the server in not booting in normal mode becouse i changed the IP address in the lan0 after that the server not booting unless that i boot in single mode.

I need to knok how to edit this file in single user in orden to change IP address.

Any advice
4 REPLIES 4
Geoff Wild
Honored Contributor
Solution

Re: Mode Sigle User - Problem to Edit a file

fsck your /usr volume,

then mount it

mount /usr

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Patrick Wallek
Honored Contributor

Re: Mode Sigle User - Problem to Edit a file

While in single user mode:
2 things to try:

1) Try '/sbin/vi'. I can't recall if there is a statically linked 'vi' in /sbin or not.

2)

# vgchange -a y vg00
# mount /usr

Now execute /usr/bin/vi to edit your file.
Alan Vargas
Regular Advisor

Re: Mode Sigle User - Problem to Edit a file

Thanks to all ... It works very well
BuleSea111
New Member

Re: Mode Sigle User - Problem to Edit a file

Good!