shell - arrange images by inode numbers


overview:
how can edit inode number (ls -i /path/to/file) of files after file creation on fat-32 filesystem?

why i'd this:
during holiday season encountered problem jpg images on usb flash drives showing in weird order on philips tv. after all, turned out, tv recognises file serial number sequence play. if camera or sd card attached ensures chronological order, makes sense me, (re)arranging exported images mac hassle, if trying insert images in between saved files. first couldn't believe, neither file name nor file modification, access, creation date nor exif info selectable sorting images on philips tv.

ways go:
first thought writing bash script (re)formatting usb flash drive demanded fat-32 filesystem (to wipe file catalog) , copying 1 file after order desire, editing inode number and/or file catalog seems faster , smarter solution.

questions:
- inode number commonly used criteria on (modern) tvs sorting image files display or special philips thing?
- read debugfs e.g. ext4 filesystems, wonder if there equivalent fat-32 filesystem?
- i've been using setfile file modifications far, doesn't capable manipulating inode number. there (built-in) tool on macos edit inode numbers?
- if there no existing tool macos, functions in c, objective c or swift should take at?

suggestion includes use of separate jpg files , pointing right direction control of allocation of inode numbers welcome!
 

editing inode numbers require raw filesystem-level access, don't recommend pursuing. way lies madness, trying edit filesystem itself, , things inode numbers aren't meant user-exposed in first place, , haven't long time. thing should cause new number generated if new file created.

if ask me, philips isn't trying sort @ all, it's asking files on disk , displaying them in order found. in other words: "unsorted". happens "order" internal filesystem using when listing files in directory: inode numbers. inode numbers shouldn't used sort of sorting key, imo.

finding way edit inode number recipe eventual filesystem corruption. these numbers unique identifiers/keys files, aren't meant changed once file created, why aren't having luck finding ways change them. other parts of filesystem refer them, , if out of sync, wind form of corruption. it's easier recopy files in order want them appear in case.

, yes, fact tv doesn't sorting pretty dumb.

edit: worse, fat apparently doesn't use file ids on disk, inode numbers see aren't present anywhere memory. there literally isn't edit in case, if could.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Other Unknown error

Trump supporter?

com.apple.DiskManagement.disenter error -119930878