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