OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 11:48 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Partitioning
PostPosted: Thu Feb 20, 2003 12:18 pm 
This may be nuts... I partitioned my floppy...

Code:
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)?


Top
  
 
 Post subject: Re:Partitioning
PostPosted: Thu Feb 20, 2003 1:37 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
err ... afaik, you cannot partition a floppy ...

_________________
Image May the source be with you.


Top
 Profile  
 
 Post subject: Re:Partitioning
PostPosted: Thu Feb 20, 2003 2:14 pm 
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.


Top
  
 
 Post subject: Re:Partitioning
PostPosted: Thu Feb 20, 2003 2:36 pm 
The Master Boot Sector uses CHS.


Top
  
 
 Post subject: Re:Partitioning
PostPosted: Thu Feb 20, 2003 2:39 pm 
but also contains fields for LBA numbers.


Top
  
 
 Post subject: Re:Partitioning
PostPosted: Thu Feb 20, 2003 2:51 pm 
Code Slasher wrote:
but also contains fields for LBA numbers.


Where does it do that?


Top
  
 
 Post subject: Re:Partitioning
PostPosted: Thu Feb 20, 2003 2:53 pm 
near the end, i think its the start/no of sector
do not have doc here right now


Top
  
 
 Post subject: Re:Partitioning
PostPosted: Thu Feb 20, 2003 7:06 pm 
This should help you:
http://ata-atapi.com/hiwtab.htm

K.J.


Top
  
 
 Post subject: Re:Partitioning
PostPosted: Fri Feb 21, 2003 7:28 am 
Hello!
As far as I know also Minix partitions floppy disks. Perhaps this helps you.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Kamal123 and 83 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group