OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 2:58 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: FAT related questions
PostPosted: Fri Mar 31, 2023 3:38 pm 
Offline
Member
Member

Joined: Mon Jul 30, 2018 2:58 am
Posts: 45
How do I find the size of the root directory? Should I use the root directory entries data field in the BIOS Parameter Block or should I use something else?


Top
 Profile  
 
 Post subject: Re: FAT related questions
PostPosted: Fri Mar 31, 2023 4:20 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
Have you checked Microsoft's FAT32 specification?

The root directory is an ordinary directory on FAT32 volumes, so you find its size the same way you find the size of any directory: walk the FAT chain to see how many clusters it uses.


Top
 Profile  
 
 Post subject: Re: FAT related questions
PostPosted: Sun Apr 02, 2023 3:47 am 
Offline
Member
Member

Joined: Wed Oct 01, 2008 1:55 pm
Posts: 3192
Depends on FAT type. On FAT32, it has it's own cluster link, but for other versions, the size is fixed.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot], mrjbom and 50 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