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 8540825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:41:23+00:00 2026-06-11T11:41:23+00:00

Since my original question was a bit too vague, let me clarify. My goals

  • 0

Since my original question was a bit too vague, let me clarify.

My goals are:

  1. to estimate blank disc size after selecting filesystem via IMAPI
  2. to estimate space which my file will consume on this disc if i burn it.

What i would like to know:

  1. Is it possible to get bytes per sector for selected file system programmatically
  2. If not, is there default value for bytes per sector which IMAPI uses for different file systems / media types, and is it documented somewhere.
  • 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-06-11T11:41:24+00:00Added an answer on June 11, 2026 at 11:41 am

    Ok, so the short answer to my question is: one can safely assume, that sector size for DVD/BD discs = 2048 bytes.

    The reason, why i was getting different sizes during my debug sessions, was because of an error in code, which retrieved sectors count 🙂

    Mentioned code block was copypasted from http://www.codeproject.com/Articles/24544/Burning-and-Erasing-CD-DVD-Blu-ray-Media-with-C-an , so just in case im posting a quick fix.

    original code:

    discFormatData = new MsftDiscFormat2Data();
    discFormatData.Recorder = discRecorder;
    IMAPI_MEDIA_PHYSICAL_TYPE mediaType = discFormatData.CurrentPhysicalMediaType;
    fileSystemImage = new MsftFileSystemImage();
    fileSystemImage.ChooseImageDefaultsForMediaType(mediaType);
    if (!discFormatData.MediaHeuristicallyBlank)
    {
         fileSystemImage.MultisessionInterfaces = discFormatData.MultisessionInterfaces;
         fileSystemImage.ImportFileSystem();
    }
    Int64 freeMediaBlocks = fileSystemImage.FreeMediaBlocks;
    

    fixed code:

    discFormatData = new MsftDiscFormat2Data { Recorder = discRecorder };
    fileSystemImage = new MsftFileSystemImage();
    fileSystemImage.ChooseImageDefaults(discRecorder);
    if (!discFormatData.MediaHeuristicallyBlank)
    {
        fileSystemImage.MultisessionInterfaces = discFormatData.MultisessionInterfaces;
        fileSystemImage.ImportFileSystem();
    }
    Int64 freeMediaBlocks = fileSystemImage.FreeMediaBlocks;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit: Since it appears nobody is reading the original question this links to, let
I have edited the original question since the same error is occurring the difference
oK, since my original question didn't make sense to the majority, I will explain
Ever since deleting the original settings.settings file I have had endless problems getting the
Original issue Since I changed the version from 1.6.3. to 1.6.4 I get serious
NOTE: I have updated this since originally asking the question to reflect some of
Here is my original question I've implemented the answer there but still the problem
I left my original question as is but wanted to point out the supposition
I've modified my original question (hope that's allowed)... I have used WCF to expose
The answere is here, and my original question is below..... Changing the document workspace

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.