[Sunhelp] I can't boot to single-user mode(use boot -s)!

Dave Garten dgarten at nova.org
Sat Jul 8 09:55:44 CDT 2000


Jackey,
    Sounds like your machine is not set to boot from its disk.  This ought
to fix anything short of a bad disk.  Read to the end before you start.
Parentheses (" ") are not to be typed in.  Might save you some
time...pain...

----------------------------
Get to the "ok" prompt (Forth monitor) in openboot.

type     "Stop a" duirng POST (power on self test).
If you get the > prompt (Restricted Monitor),

type     "n" and enter to get an "ok" prompt

type     "printenv" and enter to see what environmental variables are set in
your machine

Scroll down (space bar I think? Machine asks for it at the bottom of the
list) to see all lines and get back to an ok prompt.
----------------------------
**
If "diag-switch?" is set to "false" go to ##
If "diag-switch?" is set to "true" (which tries to beet in diagnostic mode -
i.e. from the network);

type      "setenv diag-switch? false" and then enter (don't miss the hyphen
or question mark)

machine will reply "diag-switch? false" (or something like diag-switch? set
to false or diag-switch? = false  Its obvious you get it to work)

type     "printenv" and enter and scroll back down.  Check "diag-switch?" is
now set to "false"

type     "reset" or "boot" at the ok prompt.  Machine will now attempt to
boot from the "boot-device" entry back in the list you see when you typed
"printenv."  The default is "disk net" (which means it will try to boot from
the default disk (usually SCSI device c0t3d0s0) and then if that fails (bad
disk) from the network).
----------------------------
##
If "use-nvramrc?" is set to "false"  go to @@
If "use-nvramrc?" is set to "true" (which executes the contents of the
NVRAMRC on startup - i.e. potential redirection of boot to another device
like a storage array?)

type     "setenv use-nvramrc? false" and then enter

machine will reply...

type     "printenv" and enter and scroll back down.  Check "use-nvramrc?" is
now set to "false"

type    "reset" or "boot" and enter at the "ok" prompt.  Machine will now
attempt to boot from the "boot-device" entry back in the list you see when
you type "printenv."

If that worked, type "reset" or "boot" at the "ok" prompt.
----------------------------
@@
If you want to boot from any SCSI Disk ID *other than 3* go to %%
If you want to boot from SCSI Disk ID 3 and "boot-device" is empty or has
something other than "disk"  or "disk0" in it

type     "setenv boot-device disk" and then enter

machine will reply...

type     "printenv" and enter and scroll back down.  Check "diag-switch?" is
now set to "false"

type     "reset" or "boot" and enter at the "ok" prompt.  Machine will now
attempt to boot from the "boot-device" you just set.
----------------------------
%%
In the event you want to boot from the SCSI disk 0, 1, or 2

type     "setenv boot-device disk'X'" and then enter (where 'X' is the Alias
for your boot disk--If you want to use SCSI ID 0 (c0t0d0s0) you use disk3
(counterintuitive?).  For SCSI ID 3 (c0t3d0s0) you use disk0 or leave it
blank (disk).  For SCSI ID 1 or 2 (c0t1d0s0 or c0t2d0s0)  you use disk1 or
disk2.
See
(http://docs.sun.com/ab2/coll.216.1/OPENBOOTCMDREF/@Ab2PageView/1096?DwebQue
ry=open+OR+boot&Ab2Lang=C&Ab2Enc=iso-8859-1) to get the gory tails.

type     "reset" or "boot" and enter at the "ok" prompt.  Machine will now
attempt to boot from the "boot-device" you just set.
----------------------------

Now that you have read all this, you could just reset the box to factory
defaults from the "ok" prompt:

type    "set-defaults" and enter.

type     "reset" or "boot" and enter at the "ok" prompt.  Sparcstations then
boot from SCSI Disk ID 3 (c0t3d0s0).


If you want to become an Open Boot Wizard, the documents are available at
docs.sun.com
(http://docs.sun.com/ab2/coll.216.1/@Ab2CollView?Ab2Lang=C&Ab2Enc=iso-8859-1
&DwebQuery=open+OR+boot).

Good hacking!

DG

> To: sunhelp at sunhelp.org
> Subject: [Sunhelp] I can't boot to single-user mode(use boot -s)!
>
>
> Hi!
>   I can't boot to single-user mode by use command 'boot -s' in ok prompt,
> the system will boot from network when i press <Enter> key,why?
>   Thank you.
>             Jackey Cheung
>             jackeych at netease.com
>             7/7/00
>
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>






More information about the SunHELP mailing list