3. Mount storage on /tmp/storage:
$ sudo mount /dev/sdb1 /tmp/storage
$ sudo umount /tmp/storage
Figure 81. Mount USB storage
Configure watchdog
Steps
1. Install watchdog service:
$ sudo apt update
$ sudo apt install watchdog
2. Edit /etc/default/watchdog:
$ sudo vim /etc/default/watchdog
Edit watchdog_module parameter as below:
#load module before starting watchdog
watchdog_module="w83627hf_wdt"
3. Edit /etc/watchdog.conf:
$ sudo vim /etc/watchdog.conf
Ensure that the following parameters exist in the configuration and are not disabled as comment code.
retry-timeout = 60
repair-maximum = 1
watchdog-device = /dev/watchdog
interval = 1
logtick = 1
log-dir = /var/log/watchdog
realtime = yes
priority = 1
Add a new parameter:
# To set the watchdog device timeout, default is 60 seconds
watchdog-timeout = 20
4. Reboot the device once, then use the following commands to confirm that the driver and service are working:
$ dmesg | grep -i w83627hf_wdt
Figure 82. View watchdog
$ modinfo w83627hf_wdt
80
Setting Up the Ubuntu Operating System