[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Easiest Way to Mount an Image File



"Martin McCormick" writes:
> sudo losetup /dev/loop0 /home/pgmaudio/2016-11-25-raspbian-jessie-lite.img
[...]
> sudo mount /dev/loop0 p2 /mnt
>
> The report is that it doesn't exist and ls /dev/loop0* only shows
> the original loop0 loopback device. I looked through all of /dev
> such as /dev/mapper and there seems to be nothing else pertaining
> to loop0 so what am I missing?

I'm not sure that `losetup` scans for partitions on the image by
default; maybe try `losetup --partscan` or `partx -a /dev/loop0`.

Ansgar


Reply to: