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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netra X1 Boot Problem, How to change run level ?

Status
Not open for further replies.

abovebrd

IS-IT--Management
May 9, 2000
690
US
I have a SUN Netra X1server. The server runs headless and is managed thru a serial port. I made a change to the ssh conf file. Now when the server boots it simply hangs when that rc2 script executes. I would just assume I could boot into single user mode and fix the rc2 script. Which leads into problem. Since the server is headless and does not have a cdrom or floppy I have no way to boot a boot disk and repair the script. My other thought would be to change the run level at boot time. I know on other flavors you can change the run level at some point in the boot. My problem is I can't figure out how to do that on this box, very perplexing.

Any advice would be appreciated

-Danny
techie@snoboarder.net






 
Just in case anyone one runs into this problem here is the answer. After much research and poor documentation.

Booting into single user mode on a Sun Netra X1 server

1. Break into the lomlite shell "lom>" during boot
#.

2. from the lomlite shell use the "break" command. This will put you at the ROM prompt (OK)
lom> break

Note: I had to run through steps 1 and 2 twice before I was able to break out into the "ROM" prompt (OK)

3. boot -s

4. Now re-mount "/" filesystem with read-write permissions
mount -o remount /

5. Now you can edit the faulty startup script (/etc/rc2.d)
-Danny
techie@snoboarder.net






 
Well, depending on your current condition (if you can get to a login prompt or not) here are a few options to get to single-user mode:

# reboot -- -s This will reboot the system and bring it up in single-user.

ok boot -s This will boot to the single user mode from the ok prompt.

If you cant break the boot cycle (STOP+a keys on a Sun keyboard) then remove the boot device from the system and power on. It will fail when looking for a boot device and drop to the ok prompt.

Good luck!
 
Thanks for the tip.


My particular situation was with a Sun Netra X1 server. These run headless (No keyboard)

-Danny

-Danny
techie@snoboarder.net






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top