Debugging headless Raspberry Pi Zero W

So of course having posted about setting up a Raspberry Pi Zero W there now follows the inevitable debugging connection problems post ;-)

Without a monitor to use, or a working connection to the Pi debugging was going to be less than simple as I need to look at the logs.

So how do I mount an ext4 volume on a Mac to take a look at the logs?

$ brew cask install osxfuse
$ brew install ext4fuse

So now I can plug the SD card into a reader and mount up the volume which in my case was as simple as:

$ sudo ext4fuse /dev/disk2s2 /Volumes/pi -o allow_other

Then I could navigate into /Volumes/pi and start poking around at the log files to try and find what the issue was.

$ more /var/log/syslog

In my case it was down to user error and not checking the types of WiFi the Zero could support. 5Ghz isn’t supported it would appear, switching to my 2.4Ghz WiFi resolved the problem.