This might be an easy question, but I can't seem to find the answer anywhere: what does the st_ino field of struct stat contain for filesystems that do not use inodes? I'm interested in particular in what happens with FAT32.

  • 3
    The Linux fat/vfat driver invents the inode numbers as needed (and you could get different results, depending on how you access the files). For other systems, the answer can be different. – Thomas Dickey Nov 17 '17 at 10:01
  • @thomas dickey: I see, so the inode number is not linked in any way to the file starting cluster. Any idea how to find the latter? – SukkoPera Nov 17 '17 at 11:02
  • Maybe the mshowfat command, part of mtools, will show you the starting cluster. – Mark Plotnick Nov 17 '17 at 13:57
  • It seems, from this commentary, that you have not actually asked the question whose answer you actually want to know. – JdeBP Nov 18 '17 at 9:25
  • @JdeBP: Actually I did, without much success though: stackoverflow.com/questions/47212406/… – SukkoPera Nov 18 '17 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.