The whole mounting procedure does not have to involve the whole complicated offset stuff.
You can simply:
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:
You can simply:
Code:
sudo losetup -P /path/to/file.img
You can then just mount them wherever you want with f.ex:
Code:
sudo mount /dev/loop0p2 /mntsudo mount /dev/loop0p1 /mnt/boot
Statistics: Posted by bedna — Sun Feb 04, 2024 4:18 am