Out of curiosity, I would like to know is there a way to find out the source of mounted partition?
For example, output of df -h
is:
/dev/loop1 3M 3M 0 100% /media/loop
From this output, I know a loop device of 3M is mounted at /media/loop
, but I have no clue to determine the exact location of the /dev/loop1
device.
root@SHW:~# mount -o loop /home/SHW/Downloads/TinyCore-current.iso
/mnt/loop mount: block device /home/SHW/Downloads/TinyCore-current.iso is write-protected, mounting read-only
root@SHW:~# tail -n1 /proc/mounts
/dev/loop1 /mnt/loop iso9660 ro,relatime 0 0
How do I find out the absolute path of /dev/loop1
f I don't know who mounted those partitions? (In this case the path is /home/SHW/Downloads/TinyCore-current.iso
.)