When to use this procedure: Rebooting a hung Sun from the keyboard:
  1. Bring the Sun down to an OK prompt. See the section below on this topic for full specifics.
  2. Type "sync" at the "OK" prompt
  3. The machine should count for a while, as it dumps data to your swap device. If this doesn't happen, and the machine just sits there for longer than a few minutes, the machine is probably so hung that you'll have to power cycle it instead.
  4. Eventually, the screen should go black (whether your "sync" worked, or you had to power cycle the machine).
  5. After the screen becomes lit up again, you have two main choices:
    1. If you want to come up multiuser, which is the machine's normal mode of operation:
      • Don't do anything. The machine should attempt to come up multiuser by default.
    2. If you want to come up singleuser, which is good for system maintenance sometimes:
      • Go to the OK prompt again using the procedure described below again. IMO, the best time for this is while the machine says "Initializing memory", but about any time before the machine starts checking filesystems should be fine.
      • This time, instead of "sync", type "boot" to come up in multiuser mode, or "boot -sw" to come up in singleuser mode.
      • Enter the root password when it's requested
  • Bring the Sun down to an "OK" prompt. This is generally done in one of four ways:
    1. If your keyboard has a "stop" key at the upper left (modern Sun keyboards have this), hold down that key as though it were a shift key, and then type an "A". That is, first depress the stop key, then depress the A key, then let go of both the stop and A keys.
    2. If your keyboard has an "L1" key at the upper left (really old Sun keyboards have this), hold down that key as though it were a shift key, and then type an "A". That is, first depress the L1 key, then depress the A key, then let go of both the L1 and A keys.
    3. If you are on a serial console, you need to generate a break sequence. How you do this will be specific to what terminal emulation software you are using, or many physical serial terminals will have a key labeled "break".
    4. If your Sun has had the "alternate break sequence" enabled, instead of a stop key or an L1 key, you'll use one of the following:
      1. enter, tidle, control-b
      2. return, tidle, control-b
    5. If none of these work, odds are either the keyboard isn't working, or the machine is so hung that you'll have to turn the machine off and back on. That's unfortunate, but them's the breaks.



    Hits: 4983
    Timestamp: 2024-04-16 14:57:52 PDT

    Back to Dan's tech tidbits

    You can e-mail the author with questions or comments: