Recovery with a USB stick
Open a time-limited emergency login on the boat's network when the computer cannot be reached any other way.
Support usually reaches a Bosun computer over a private, encrypted network whenever the boat has a connection. When that is not possible, recovery mode lets a technician on board log in over the boat's own network.
Recovery mode is closed during normal use. It opens only when someone with the computer in hand plugs in a recovery stick.
Before you rely on it
Try recovery mode on the boat during commissioning, not for the first time on the day you need it. You need:
- a USB stick with an ordinary filesystem, such as the FAT32 most sticks come with
- a laptop with an SSH client, on the same network as the computer
- the recovery password, from support. Keep it in the boat's manual, not on the stick.
Open recovery mode
- Put an empty file named exactly
BOSUN_RECOVERYat the top level of the stick. - Plug the stick into the computer. The computer checks every USB drive as it is plugged in, and again at each start, so you do not need to switch it off.
- From a laptop on Bosun's own Wi-Fi network, connect with
ssh emergency@bosun.local. On any other network, use the computer's address from the router's list of connected devices. - Enter the recovery password.
- Remove the stick once you are logged in, so a later start does not open recovery mode again.
Recovery mode closes 60 minutes after it opened, or at the next start without the stick. A login already open stays open after that.
What to check
| Command | What it does |
|---|---|
bosun-status | Shows whether Bosun is running |
bosun-health | Shows Bosun's health report |
bosun-logs | Shows Bosun's log as it is written. Press Ctrl-C to stop |
df -h /bosun-data | Shows free space on the data partition. Bosun needs 8 GB free to start |
bosun-restart | Restarts Bosun |
sudo systemctl reboot | Restarts the computer |
sudo asks for the recovery password again.
Send the output to support with a short note of what you saw. See Contacting support.
Close recovery mode
To close it before the 60 minutes are up, type sudo rm /run/recovery-mode, then exit.
If it does not open
| What you see | What to do |
|---|---|
| ERROR: Recovery mode is not active. | The file was not found, or 60 minutes have passed, or another USB drive was plugged in after the stick came out. Check the file name, then unplug the stick and plug it in again. |
| Permission denied | Check the recovery password with support. |
bosun.local does not resolve | Join Bosun's own Wi-Fi network, or use the address from the router. |
Other ways back in
- Remote support: see Remote support access.
- After an update: if Bosun stops answering after an update, switch the computer off and on first. If Bosun is not up within about three minutes of the start, the computer goes back to the previous version by itself. See Software updates, rollback and backups.