WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Calculate LBA sector from cluster

 
   Home -> Windows Other -> Fat32 RSS
Next:  Fat32: Undelete a file  
Author Message
Evan

External


Since: May 15, 2006
Posts: 1



(Msg. 1) Posted: Mon May 15, 2006 2:32 pm
Post subject: Calculate LBA sector from cluster Add to elertz
Archived from groups: microsoft>public>win98>fat32 (more info?)

Does anyone know how to calculate the LBA sector number given the cluster?
From the BIOS before DOS7 starts, I need to locate the start of the root
directory then load the file into memory. In my case, the boot record says
it starts at cluster 37. A physical check using diskedit shows that it is
located at sector 2228. However, my calculations put it at 2244 (16 sectors
past).

The formula I am using is RootDirectory=((ClusterNumber x
SectorsPerCluster)+(NumFats x BigSectors) + ReservedSectors) where

ClusterNumber = 37
SectorsPerCluster = 8
NumFats = 2
BigSectors = 958
ReservedSectors = 32

Thanks,
Evan
Back to top
Login to vote
available

External


Since: Nov 29, 2004
Posts: 22



(Msg. 2) Posted: Wed Dec 06, 2006 11:43 pm
Post subject: Re: Calculate LBA sector from cluster Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

First data cluster is actrually cluster 2. So substract 2 from actual
clusternumber. Cluster 0 and 1 do not exist.

--
Kind regards,
Joep

"Evan" <Evan.DeleteThis@discussions.microsoft.com> schreef in bericht
news:91B11131-AD11-4FDF-8788-411789FAF66D@microsoft.com...
> Does anyone know how to calculate the LBA sector number given the cluster?
> From the BIOS before DOS7 starts, I need to locate the start of the root
> directory then load the file into memory. In my case, the boot record
> says
> it starts at cluster 37. A physical check using diskedit shows that it is
> located at sector 2228. However, my calculations put it at 2244 (16
> sectors
> past).
>
> The formula I am using is RootDirectory=((ClusterNumber x
> SectorsPerCluster)+(NumFats x BigSectors) + ReservedSectors) where
>
> ClusterNumber = 37
> SectorsPerCluster = 8
> NumFats = 2
> BigSectors = 958
> ReservedSectors = 32
>
> Thanks,
> Evan
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows Other -> Fat32 All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
  Windows Other
 Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET