LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-09-2025, 01:05 PM   #1
exerceo
Member
 
Registered: Oct 2022
Posts: 154

Rep: Reputation: 31
Question How to sort files on an ISO9660 file system by their LBA?


[Log in to get rid of this advertisement]
"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?
 
Old 01-10-2025, 06:21 AM   #2
mjolnir
Member
 
Registered: Apr 2003
Posts: 959

Rep: Reputation: 140Reputation: 140
I have not tried it but something like'isoinfo' or 'pycdlib' in Python might work.
 
Old 01-10-2025, 07:24 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,471
Blog Entries: 4

Rep: Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218
Most folks I know these days have switched to solid-state drives, which do not have "seek time" nor "rotational latency." And are much more reliable.
 
  


Reply

Tags
forensics



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debian 8 change my 32gb usb drive's file system to iso9660 and now it is WRITE PROTECTED. masoodshy Linux - Newbie 18 11-25-2020 10:08 AM
Booting custom LFS directly from CDROM. Iso9660 useless as root file system? Jamie Ramone Linux From Scratch 11 10-31-2018 09:08 AM
No file system could mount root, tried: ext2 iso9660 ramachandra_ankireddy Red Hat 1 11-20-2008 07:19 AM
Change "Hidden W95 FAT32 (LBA)" to ""W95 FAT32 (LBA)" TroelsSmit Linux - Newbie 6 03-27-2004 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration