From ea7426829a3e320dbb1f7ce472bacdbee36e5168 Mon Sep 17 00:00:00 2001 From: scbj Date: Wed, 22 Oct 2025 13:19:36 +0200 Subject: [PATCH] (image-files) --- image-files.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/image-files.md b/image-files.md index d1b97df..351d30a 100644 --- a/image-files.md +++ b/image-files.md @@ -40,6 +40,8 @@ mount -o loop If the image contains multiple partitions one needs to setup a loop device first: ```bash losetup --find --show -P +# can be shortened to: +losetup -f -P ``` Afterwards the partitions of the image should be shown as loopXpY and can be mounted like any other device. @@ -55,5 +57,5 @@ This is a quick step through the setup of a raspbian image: 1. mount boot partition (see [mount image files](#mount-image-files)) 1. add empty file `ssh` to boot partition 1. add userconf.txt to boot partition, to set up initial user & password -1. disable resize script in boot/cmdline.txt (something with `firstboot`) +1. disable resize script in boot/cmdline.txt (something with `firstboot` or `resize`) 1. unmount partition and detach loop device