Is there possible to create file that is just a sub-sequence of bytes from another file, like a symlink, but referencing only part of the file?
Symlink to part of the file
filesystemssymlink
filesystemssymlink
Is there possible to create file that is just a sub-sequence of bytes from another file, like a symlink, but referencing only part of the file?
Best Answer
Yes, it is (somewhat) possible at least on Linux with some limitations.
The method is to create a read-write loop device that maps to a subset of the file.
eg:
output:
I believe both the offset and the size must be multiple of a block size (512 bytes).
You probably need to be root to create and access the loop device.
If you need a symlink, you can create one that points to the loop device.