Page 1 of 1

Partitioning

Posted: Thu Feb 20, 2003 12:18 pm
by Unspoken_Magi
This may be nuts... I partitioned my floppy...

Code: Select all

partition_table:
            ; CHS 80/2/18
   db   0x80      ; Flag
   db   0x00      ; Starting Head
   db   0x02      ; Starting Sector
   db   0x00      ; Starting Cylinder
   db   0x07      ; Type
   db   0x01      ; Ending Head
   db   0x01      ; Ending Sector
   db   0x79      ; Ending Cylinder
   dd   0x00000001   ; Starting Sector
   dd   0x00000b2e   ; Length
1. Are these values correct?
2. Which numbers should be trusted, the LBA or the C/H/S (H/S/C)?

Also, which numbers should the MBR code trust to be correct, the LBA or the CHS?
Should the MBR code use INT13 AH=0x42 (LBA read), or AH=0x2 (CHS read)?

Re:Partitioning

Posted: Thu Feb 20, 2003 1:37 pm
by Pype.Clicker
err ... afaik, you cannot partition a floppy ...

Re:Partitioning

Posted: Thu Feb 20, 2003 2:14 pm
by Unspoken_Magi
Pype.Clicker wrote: err ... afaik, you cannot partition a floppy ...
Well... why not? It works fine...

Just treat it like a 1.44 Mb hard-drive.
In Bochs, I can test it as a 1.44 Mb HD or a floppy.

Re:Partitioning

Posted: Thu Feb 20, 2003 2:36 pm
by Peter_Vigren
The Master Boot Sector uses CHS.

Re:Partitioning

Posted: Thu Feb 20, 2003 2:39 pm
by Slasher
but also contains fields for LBA numbers.

Re:Partitioning

Posted: Thu Feb 20, 2003 2:51 pm
by Peter_Vigren
Code Slasher wrote: but also contains fields for LBA numbers.
Where does it do that?

Re:Partitioning

Posted: Thu Feb 20, 2003 2:53 pm
by Slasher
near the end, i think its the start/no of sector
do not have doc here right now

Re:Partitioning

Posted: Thu Feb 20, 2003 7:06 pm
by K.J.
This should help you:
http://ata-atapi.com/hiwtab.htm

K.J.

Re:Partitioning

Posted: Fri Feb 21, 2003 7:28 am
by richie
Hello!
As far as I know also Minix partitions floppy disks. Perhaps this helps you.