Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5197

Advanced users • Re: Headless Setup - without rpi-imager or DHCP

$
0
0
The mounting procedure does not have to involve the whole complicated offset stuff.

You can simply:

Code:

sudo losetup -P /path/to/file.img
With that the loop created in /dev/ will also contain both boot and root partitions.
You can then just mount them wherever you want with f.ex:

Code:

sudo mount /dev/loop0p2 /mntsudo mount /dev/loop0p1 /mnt/boot
This (`sudo losetup -P /path/to/file.img`) didn't work for me unfortunately, maybe because I'm on arch (manjaro to be precise)?

Statistics: Posted by bassamanator — Fri Jul 12, 2024 2:23 pm



Viewing all articles
Browse latest Browse all 5197

Trending Articles