For those who think that C/H/S translation is useful, attached is a simple program that gets whatever the BIOS used from user-space. If you have large media (most do), you will descover that C/H/S is useless because it is always set to "MAX" like this: Disk parameter table(s) at vector 0x41 Disk0 Cylinders = 1024 Sectors = 63 Heads = 255 Write precomp = 0 Landing zone = 65296 Reserved bit 0 set Reserved bit 1 set Reserved bit 2 set More than 8 heads Reserved bit 4 set Defect map present Disable retries Disable retries Disk1 Cylinders = 306 Sectors = 1 Heads = 4 Write precomp = 0 Landing zone = 12544 Disk parameter table(s) at vector 0x46 Disk0 Cylinders = 306 Sectors = 1 Heads = 4 Write precomp = 0 Landing zone = 12544 Disk1 Cylinders = 306 Sectors = 1 Heads = 4 Write precomp = 0 Landing zone = 12544 Cheers, Dick Johnson Penguin : Linux version 2.6.15.4 on an i686 machine (5589.55 BogoMips). Warning : 98.36% of all statistics are fiction. _ **************************************************************** The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to [email protected] - and destroy all copies of this information, including any attachments, without reading or disclosing them. Thank you.
Attachment:
CHS.tar.gz
Description: CHS.tar.gz
- Follow-Ups:
- Re: C/H/S from user space
- From: "Jeff V. Merkey" <[email protected]>
- Re: C/H/S from user space
- Prev by Date: Re: kernel oops: trying to mount a corrupted xfs partition (2.6.16-rc3)
- Next by Date: Re: [PATCH 4/7] ppc64 - Specify amount of kernel memory at boot time
- Previous by thread: Separate Initramfs dependency on initrd (and therefore ramdisks)
- Next by thread: Re: C/H/S from user space
- Index(es):