I was trying to figure this out but found myself clueless: How can I figure out the name of the device (e.g. /dev/sdb2) for a given file/inode? e.g.
[root@serv07 /]# ls -i /etc/passwd
38357228 /etc/passwd
Now, I know that inode 38357228 (or passwd) resides on /dev/sda2 but how can I figure that out for any given/random file(s)? Any help would be useful. Cheers!!