User Tools

Site Tools


pi

This is an old revision of the document!


Raspberry Pi

My local notes on how to use and abuse the Raspberry Pi.

Reference

Checking Raspberry Pi hardware revision from CLI

grep Revision /proc/cpuinfo

You can look up Raspberry Pi revision codes here.

Mounting and modifying a Raspberry Pi image file

This will result in mounting a partition contained within a Pi image file at /tmp/image-part

file ubuntu-20.04.1-preinstalled-server-arm64+raspi.img
# find the startsector of the partition you wish to mount (in this example 526336)
sudo mount -o offset=$[512*526336] ubuntu-20.04.1-preinstalled-server-arm64+raspi.img /tmp/image-part

Pages

Other categories

pi.1611501087.txt.gz · Last modified: 2021-01-24 10:11 by gabriel