<- Back

partitions

df
Free disk space
df -h
du
Folder size
du -sh --apparent-size .
lsblk
Determine filesystem
lsblk --fs --perms --paths
Flash img
xz
xzcat 2024-03-15-raspios-bookworm-armhf-lite.img.xz | sudo dd of=/dev/mmcbzz0 bs=1M oflag=sync status=progress
Backup
Backup SD card
sudo dd if=/dev/sdb of=./raspberrypi.dd.img bs=1M status=progress
Backup and zip
Backup and gzip
sudo dd if=/dev/X bs=1M | gzip > ./raspberrypi.dd.img.gz
Restore
sudo gzip --decompress --to-stdout ./raspberrypi.dd.img.gz | sudo dd of=/dev/X bs=1M