#1 Burning Software

It is currently Fri Dec 20, 2024 10:12 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to get correct MDS MDF image size before save?
PostPosted: Mon Jan 05, 2009 2:05 pm 
Offline

Joined: Tue Sep 16, 2008 8:03 pm
Posts: 16
Before a user saves a disk to an image I would like to check to make sure they have enough room on their hard drive. The resulting MDF file is a good deal larger than the data on the disk that is visible to the OS. For example, the disk says it is 95.48 MB, but the MDF file is 117MB. Is there a way to predict the final size of the MDF file before it is saved?

This is using StarBurnX. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 10:02 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Quite simple. Parse TOC and multiply number of sectors each track has to 2448 (raw sector size). Then you'll have MDF size :))


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 1:10 pm 
Offline

Joined: Tue Sep 16, 2008 8:03 pm
Posts: 16
I searched help for TOC, table of contents and sectors and didn't find much. Can you give me a quick sample of this using StarBurnX?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 2:00 pm 
Offline

Joined: Thu Dec 13, 2007 8:44 am
Posts: 609
Hello,

The DiscInfo class keeps collection of Sessions. Each Session keeps collection of Tracks. The Track class has property Size. You should multiply the size of each track on 2448 (raw sector size).

Regards,

Dmitry Bortsov

Rocket Division Software


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 3:32 pm 
Offline

Joined: Tue Sep 16, 2008 8:03 pm
Posts: 16
Great. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 07, 2009 11:00 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Let us know if you'd need anything else. Thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group