#tyndur · 2010-01-14

56 Nachrichten · Seite 1 von 1 · Original-CSV herunterladen

  1. XanClicHm, Guest206355, are you really planning to use >2 GB media? *g*
  2. taljethThat's what FAT12 is made for, no?
  3. XanClicFAT16 must be supported, too ;-)
  4. XanClicHe said "up to 8 GB" in the forum, though FAT16 just supports 4 GB
  5. taljethThe disk might be partitioned
  6. XanClicBut my problem is, that the FAT of a 2 GB FAT16 medium fits exactly into 64 kB *g*
  7. XanClicNo, it's not planned to be an MBR
  8. taljethWhich doesn't mean that your file system can't be in the second partition, IIUC
  9. XanClicHm, got that right now, but I hope that's not required xD
  10. XanClicHum... How would that be accomplished by the way?
  11. XanClicParsing the partition table for the only bootable entry?
  12. XanClicCompile it in while partitioning?
  13. taljethLooking for the bootable flag is what MBRs usually do, afaik
  14. taljethSome MBRs at least. GRUB certainly doesn't.
  15. XanClicI know, but what about the booted boot sectors?
  16. taljethI guess they get their partition passed by the MBR.
  17. taljethNot sure though
  18. XanClicSo there would hardly be a possibility to implement that situation in that contest?
  19. taljethBut you should know if your bootloader is done
  20. taljethPartitioned disks are clearly a requirement
  21. XanClicBut there's no possibility to handle them - nice *g*
  22. taljethI'm not interested enough in bootloader to be able to tell
  23. quokXanClic: sorry, I wasn't identified here so didn't get pinged properly for whatever reason
  24. XanClicnp ;-)
  25. quokI certainly am planning on testing a 4GB FAT16 filesystem :)
  26. XanClicHm, OK *g*
  27. quokand on 8GB partitioned boot media as well
  28. taljethYou'll probably have a busy day on Jan 31 ;-)
  29. XanClicThough there doesn't seem to be any possibility to get the start sector of that partition?
  30. quoka typical ms-dos like MBR passes the partition table entry in ES:DI
  31. XanClicBut you don't know on which partition you are
  32. taljethWhat else do you need besides the partition table entry?
  33. quokou don't need to, you just parse what is in ES:DI, that will give you your parition startin and ending chs information
  34. XanClicAh, I didn't get the "entry" :-)
  35. quokI also seem to recall that something in the BPB or EBPB is supposed to contain the number of sectors before the filesystem starts
  36. quokhidden sectors perhaps?
  37. XanClicUh, you're right
  38. XanClicNow I know what that *** value is *g*
  39. quokyou'll be able to save space by relying on the hidden sectors value, but you could also parse the 16 bytes passed in ES:DI. the problem there is if you are being booted from an unpartitioned device then you may or may not have valid data in ES:DI :)
  40. XanClicThe problem is to use 32 bit registers for the sector ;-)
  41. XanClicOr dx:ax as I'm currently doing it
  42. quokthat's exactly how I do it
  43. XanClicbtw, may I rely on that the information in the "type" field of the BPB is correctly set to "FAT12 " or "FAT16 "? :D
  44. quokYou may
  45. XanClicthx :D
  46. quokbut you'd be wrong to do so :)
  47. quokmany tools do rely on the value in the 'type' field, but according to MS that is incorrect
  48. XanClicI know, hence I ask you
  49. quokIf I were you, I wouldn't rely on it
  50. quokI consider it making an assumption that shouldn't be made
  51. XanClicBut it's a lot smaller to do so ;-)
  52. XanClicRight now I have exactly 512 bytes
  53. XanClicWith supporting 4 GB FATs
  54. quokI HAVE seen media that doesn't match the type field
  55. XanClicLet's see if I claim more free space to calculate if it's 12 or 16 ;-)
  56. XanClicBut first of all I have that crappy partition thing...