Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7645907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:04:08+00:00 2026-05-31T10:04:08+00:00

I just got done reading this article on reading files on an ISO 9660

  • 0

I just got done reading this article on reading files on an ISO 9660 file system, and I am confused on how I would go about reading a file into memory. I understand that the root directory resides at offset 156, of the PVD, how would I use that to find a file that resides in the root directory, and once I find the file name, how would I find the address that file resides on, so that I could load it into memory (using int 0x13 AH=42)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T10:04:09+00:00Added an answer on May 31, 2026 at 10:04 am

    The BIOS may not make CD drives directly accessible via int 13h, only floppies and HDDs can be always accessed directly with int 13h. If you boot from a CD (if your BIOS supports that), you can use int 13h for accessing the CD, but then the only option that is guaranteed to work is the emulation mode, in which you’ll be accessing not the entire CD, but the boot image as if it were FDD or HDD (in this case the BIOS typically assigns drive number 0 or 80h to the emulated disk AKA A: and C:). There’s a discussion of this problem here.

    You may need to write a CD driver to read data from it directly using I/O ports.

    As for ISO9660, you need to read Directory entry for the root directory from Primary Volume Descriptor (which is at offset 156). Then you’re interested in Location of extent (LBA) (offset 2) and Data length (size of extent) (offset 10) from Directory entry for the root directory. These tell you where the directory data (list of files/dirs) resides and how big it is.

    This list is basically a list of the same directory entries that are variable in length (due to variable file/dir name lengths and padding). When you read it you need to look at File flags of every entry to determine if it’s a file or a directory. If it’s a directory and you want to access it, you repeat the whole procedure recursively. If it’s a file, Location of extent (LBA) (offset 2) and Data length (size of extent) (offset 10) tell you where it is and how large it is.

    Hopefully, I haven’t messed this up as I don’t have my old CD code handy.

    Oh, and be warned, the above is a very simplified description of how you should read CDs, most CDs, but not all. The FS is unnecessarily general and complex and there many features and options that make it hard to read it correctly in all situations.

    I suggest that you get a few .iso files, a hex editor and a calculator and double check the logic and better familiarize yourself with the file system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just got done following the steps in this MSDN article on creating a
I just got done reading Rick Anderson's article on Securing your ASP.NET MVC application
I just got done integrating django-registration==0.8 into my project (Django==1.3, Python==2.7) and would now
Just got a question about generics, why doesn't this compile when using a generic
I've done a bit of reading online as to how to go about this
I just got done setting up my app to work with authlogic following this
Ok so this is super basic. I just got done implementing the collapsible panel
I just got done walking through the install instructions on this page: http://grails.org/plugin/spring-security-facebook I
I just got done working through the Django tutorials for the second time, and
I just got Delphi 2009 and have previously read some articles about modifications that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.