How can I create a loop device of an existing block device or regular file of size z
so that a certain byte x
(with x > 0
) appears as first byte, x+1
as second, etc. and a certain byte y
as last byte (with x < y z
). It'd be great if there was a solution which could provide subsets of a 1TB device image.
This is not about operations on file level (e.g. mount -o bind
).
losetup
with-o
and--sizelimit
options. If you remove the "on hold" status, I'll post an answer.