A question about disk partition layouts..
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
A question about disk partition layouts..
I'm wondering, Why is their a 63 LBA gap between partitions?
Is there any historical significance to it? Why all the wasted space?
I haven't created many topics lately.. So I thought, "What the heck, I'll ask."
EDIT: 32256/512 = 63 - Apologies.
Is there any historical significance to it? Why all the wasted space?
I haven't created many topics lately.. So I thought, "What the heck, I'll ask."
EDIT: 32256/512 = 63 - Apologies.
Last edited by Brynet-Inc on Sun Mar 16, 2008 7:37 am, edited 1 time in total.
Re: A question about disk partition layouts..
It possibly just got aligned on a boundary of sorts. Or possibly the boot manager in use requires the space for booting, so it reserves it outside of a partition so that it won't be written to.Brynet-Inc wrote:I'm wondering, Why is their a 64 LBA(32k) gap between partitions?
Is there any historical significance to it? Why all the wasted space?
I haven't created many topics lately.. So I thought, "What the heck, I'll ask."
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Whoops, s/their/there - apologies for my illiteracy.
As for Ready4Dis, I wasn't asking about a specific instance, all disk partitioning utilities put a gap between partitions.
Layout of a DOS formatted disk is:
As you can see, there is a gap between partitions.. and it's entirely full of zeros - is it a legacy CHS limit of some sort?
EDIT: It seems I was wrong, it's only a 32256 byte gap.. 63 LBA - Whoops * 2.
As for Ready4Dis, I wasn't asking about a specific instance, all disk partitioning utilities put a gap between partitions.
Layout of a DOS formatted disk is:
Code: Select all
ID type 0x06
Start CHS = 0/1/1
End CHS = 406/15/63
LBA Start 63, size 410193
ID type 0x05
Start CHS = 406/0/1
End CHS = 1013/15/63
LBA Start 410256, size 611856
EDIT: It seems I was wrong, it's only a 32256 byte gap.. 63 LBA - Whoops * 2.
It all depends on your partitioning software. I have seen the gap you are talking about on m$ FDISK partitioned stuff. And yes, the software is trying to keep 1980's era disks partitioned on head/sector boundaries. The technique is utterly obsolete.
And I strongly suspect a typo in your CHS numbers. You are showing a 63 sector OVERLAP between the two partitions -- not a gap. I think you mean "End CHS = 405/15/63"
And I strongly suspect a typo in your CHS numbers. You are showing a 63 sector OVERLAP between the two partitions -- not a gap. I think you mean "End CHS = 405/15/63"
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Apologies:bewing wrote:And I strongly suspect a typo in your CHS numbers. You are showing a 63 sector OVERLAP between the two partitions -- not a gap. I think you mean "End CHS = 405/15/63"
The starting cylinder was 407, not 406 or 405.Brynet-Inc wrote:ID type 0x05
Start CHS = 407/0/1
End CHS = 1013/15/63
So I believe the gap remains, and there is no partition overlapping bewing.
No big deal I guess, was simply curious.
bewing is correct:
in the old days, it was common practice to start a partition on a cyl boundary (the first sector in the partition was always sector 1), some of the reasons, included easy calculating of disk offsets, and improved performance, partitions started simply aligning on a 63 sector boundary (the maximum sectors/cyl in the traditional CHS scheme)
however:
this space (at least the one at the beginning of the disk) should always be maintained for compatibility reasons, as a lot of disk managers and virus scanners use it (boot managers are often loaded from the 'in-between' space between the MBR and the first partition, some virus scanners also load themselves here, as do certain disk compression programs)
in the old days, it was common practice to start a partition on a cyl boundary (the first sector in the partition was always sector 1), some of the reasons, included easy calculating of disk offsets, and improved performance, partitions started simply aligning on a 63 sector boundary (the maximum sectors/cyl in the traditional CHS scheme)
however:
this space (at least the one at the beginning of the disk) should always be maintained for compatibility reasons, as a lot of disk managers and virus scanners use it (boot managers are often loaded from the 'in-between' space between the MBR and the first partition, some virus scanners also load themselves here, as do certain disk compression programs)
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Look, There is a gap between partitions..bewing wrote:If the first partition ends at:
End CHS = 406/15/63
And the next partition starts at:
Start CHS = 407/0/1
Then they are contiguous. There is no gap. Those are sequential CHS addresses. (Sectors go from 1 to 63, Heads go from 0 to 15.)
Heck - check your own drive if you don't believe me..
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact: