I need to generate a string for another application to locate my file. I need to know how to access this file dynamically.
customfile=/dev/sda1:/images/myfs.squashfs
Let's say I can stat some/file/here.txt
. What command do I use to determine it's block device, and it's absolute path from that device?
Also, how do I then determine the absolute path to here.txt
from the device?