FAT and Physical Disk Information

This is a discussion on FAT and Physical Disk Information within the Tech Board forums, part of the Community Boards category; Its not what I mean. I mean does it read MBR or obtains info from another source....

  1. #31
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Its not what I mean. I mean does it read MBR or obtains info from another source.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  2. #32
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,404
    I'm assuming it reads the GPT. If the first logical block (LBA 0, the Protected MBR) does not contain a partition type of 0xEE (obtained from reading the 1-byte offset at 0x04), it knows it is reading a legacy device and uses the MBR instead.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #33
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    Its not what I mean. I mean does it read MBR or obtains info from another source.
    The source for the FAT filesystem driver comes with the WDK. Download it and be enlightened.

  4. #34
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Consider this:
    The difference between IOCTL_DISK_GET_DRIVE_GEOMETRY_EX and the older IOCTL_DISK_GET_DRIVE_GEOMETRY request is that IOCTL_DISK_GET_DRIVE_GEOMETRY_EX can retrieve information from both Master Boot Record (MBR) and GUID Partition Table (GPT)-type partitioned media, whereas IOCTL_DISK_GET_DRIVE_GEOMETRY can only read MBR-style media.
    It still does not clear if it reads from MBR(GUID) or somewhere else. If we persume it reads info from MBR, we should look for a more reliable source of disk info.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Where is my file on disk
    By Salem in forum Windows Programming
    Replies: 7
    Last Post: 10-28-2007, 04:41 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21