"LBA" means "logical block address". A file with a lower LBA is closer to the center of the disc. This means my goal is to sort files by the order they are physically written to disc.
A workaround I found so far:
Code:
find name_of_CDROM_mountpoint |sudo xargs -d '\n' filefrag -e |grep -P "(0:|1 extent found)" |sed -z -r "s/eof\n/eof /g" |sort
This will create a list with the LBA at the beginning.
Code:
114914: 9367: merged,eof example-1.jpg: 1 extent found
124626: 9712: merged,eof example-2.jpg: 1 extent found
133650: 9024: merged,eof example-3.jpg: 1 extent found
142677: 9027: merged,eof example-4.jpg: 1 extent found
But there must be some kind of dedicated tool for this purpose, or?