haphazard.io
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Replacing a failing hard drive in FreeNAS

Just a matter of time Recently I started to receive notifications from FreeNAS indicating smart errors on one my hard drives. A quick check of the system log confirms a number of smart errors on /dev/da4. root@freenas:/var/log # grep smart /var/log/messages Feb 1 03:39:51 freenas smartd[2739]: Device: /dev/da4 [SAT], previous self-test completed with error (read test element) Feb 1 03:39:51 freenas smartd[2739]: Device: /dev/da4 [SAT], Self-Test Log error count increased from 0 to 1 Feb 4 21:46:05 freenas smartd[48304]: Device: /dev/da4 [SAT], previous self-test completed with error (read test element) Feb 4 21:46:05 freenas smartd[48304]: Device: /dev/da4 [SAT], previous self-test completed with error (read test element) Feb 4 21:47:00 freenas smartd[48927]: Device: /dev/da4 [SAT], previous self-test completed with error (read test element) Feb 4 21:47:00 freenas smartd[48927]: Device: /dev/da4 [SAT], previous self-test completed with error (read test element) Feb 5 06:17:00 freenas smartd[48927]: Device: /dev/da4 [SAT], previous self-test completed with error (read test element) Feb 5 06:17:00 freenas smartd[48927]: Device: /dev/da4 [SAT], Self-Test Log error count increased from 1 to 2 Feb 5 06:17:00 freenas smartd[48927]: Device: /dev/da4 [SAT], previous self-test completed with error (read test element) Feb 5 06:17:00 freenas smartd[48927]: Device: /dev/da4 [SAT], Self-Test Log error count increased from 1 to 2 Pulling up the smart information available for /dev/da4 confirms the recent read errors.
Read full post gdoc_arrow_right_alt

Raspberry Pi framebuffer FBTFT ILI9341

2.2" SPI TFT Display Wiring Display Raspberry Pi GPIO VCC 3.3V GND GND CS CEO RESET 25 D/C 24 SDI (MOSI) MOSI SCK SCLK LED 18 SDO (MISO) n/a Note: The above wiring scheme is the default GPIO values used by the fb_ili9341 TFT driver. These can be customized if required using the gpios parameter in /etc/modprobe.d/fbtft.conf. Raspberry Pi Configuration Reference: https://github.com/notro/fbtft/wiki Create /etc/modules-load.d/fbtft.conf with the following: spi-bcm2835 fbtft_device Create /etc/modprobe.
Read full post gdoc_arrow_right_alt

Raspberry Pi GPIO power button

Wiring Button Pin RPi GPIO 1 GPIO 3 (SCL) 2 GND Power On On my Raspberry Pi 2 Model B Rev 1.1, the system will power on from a halted state when shorting the SCL (GPIO 3) to Ground. Shutdown When the system is on, the below script will monitor SCL (GPIO 3) for a button press. When a button press is detected, the script will shutdown the Raspberry Pi safely.
Read full post gdoc_arrow_right_alt