Partitioning

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Unspoken_Magi

Partitioning

Post 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)?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Partitioning

Post by Pype.Clicker »

err ... afaik, you cannot partition a floppy ...
Unspoken_Magi

Re:Partitioning

Post 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.
Peter_Vigren

Re:Partitioning

Post by Peter_Vigren »

The Master Boot Sector uses CHS.
Slasher

Re:Partitioning

Post by Slasher »

but also contains fields for LBA numbers.
Peter_Vigren

Re:Partitioning

Post by Peter_Vigren »

Code Slasher wrote: but also contains fields for LBA numbers.
Where does it do that?
Slasher

Re:Partitioning

Post by Slasher »

near the end, i think its the start/no of sector
do not have doc here right now
K.J.

Re:Partitioning

Post by K.J. »

This should help you:
http://ata-atapi.com/hiwtab.htm

K.J.
richie

Re:Partitioning

Post by richie »

Hello!
As far as I know also Minix partitions floppy disks. Perhaps this helps you.
Post Reply