4 ms·
FYI for those trying to experiment with this ... I tried using the command line to see what's under /.vol and nothing appeared. Which confused me, because I fo
by PhantomGremlin 9y ago
FYI for those trying to experiment with this ...
I tried using the command line to see what's under /.vol and nothing appeared. Which confused me, because I found some old stuff on the web that said I should see "a number" there. So apparently macOS no longer displays a volume number there.
StackExchange shows the simple technique: https://superuser.com/questions/163941/what-is-the-vol-directory-for https://superuser.com/questions/163941/what-is-the-vol-direc...
You just stat a file to learn both its volume and inode. You can then use that pair to access the file:
$ stat /etc/hosts
234881026 23347035 -rw-r--r-- 1 root wheel 0 1035 "Jul 15 10:11:35 2010" "May 30 20:55:10 2010" "May 30 20:55:11 2010" "May 30 20:47:32 2010" 4096 8 0 /etc/hosts
$ head -3 /.vol/234881026/23347035
##
# Host Database
#