How to access config.txt in Hassio?

Access config.txt on the HassOS FAT boot partition (Pi3b or Pi3B+)

HassOS uses a completely different partition layout and format than the normal Raspberry Pi (Raspbian / Pi-OS) schema, with eight partitions rather than two.

The first of these partitions (sd[x]1) is the equivalent of the Raspbian/Pi-OS boot partition, normally readable on Windows, Mac & Linux machines. But, when a HassOS format SD card/USB adaptor is inserted, partition one does not auto mount and it is therefore not easy to find and/or edit the config.txt file.

It is possible to manually mount the HassOS boot partition on a linux machine (e.g. another Raspberry Pi and/or the same Raspberry Pi running standard Raspbian/Pi-OS from a separate SD card). The HassOS SD card can then be placed in a USB SD Card Adaptor, the adaptor inserted into the Raspberry Pi and the HassOS boot partition (and more importantly the config.txt file) accessed using the following commands.

df -h
lsblk

sudo mkdir /mnt/boot
sudo mount -t vfat /dev/sda1 /mnt/boot

ls -l /mint/boot
sudo nano /mint/boot/config.txt

sudo umount /dev/sda1
sudo rmdir /mnt/boot

NOTE: where /dev/sda1 is the HassOS device partition 

The HassOS boot partition has many fewer files on it than a Raspian/Pi-OS boot partition, as it loads a different operating system (a minimalist linux appliance OS based on buildroot https://github.com/buildroot/buildroot/tree/master/board/raspberrypi with HassIO running in Docker on top). You will however find the familiar bootcode.bin,cmdline.txt, config.txt, fix up.dat and start.elf together with the usual overlays folder and a subset of the system files (bcm2710-rpi-3-b.dtb, bcm2710-rpi-3-b-plus.dtb, bcm2710-rpi-cm3.dtb)

There are also some ‘new’ files (boot.scr & u-boot.bin), relating to the different operating system (HassOS) to be loaded and run.

This approach allowed me to add the following lines to the config.txt file on my old Raspberry Pi3b . . .

[all]
boot_delay=1
arm_freq=1400
core_freq=500
over_voltage=4
sdram_freq=500

. . . to Over Clock it, and get a significant improvement in horse power & responsiveness [of course, I had also added a substantial heat sink and active cooling with a 5v fan which keeps its CPU temperature down at around 40ºC].

4 Likes