Home > Articles

  • Print
  • + Share This

Getting Around the 1024-Cylinder Limit

By 1994, hard drives exceeding 504MB, or even 1GB, were becoming not only desirable, but common. Drives of higher capacity typically reported themselves as having the maximum number of heads and sectors and more than 1024 cylinders. Thus, this problem came to be referred to as the 1024-cylinder limit, and it's still with us today.

The question in 1994 was one of circumventing this limit. Some of the methods I describe later in this chapter were useful in raising the limit, but by 1997 drives exceeding even these raised limits started to become common. Although many modern OSs aren't bothered by the 1024-cylinder limit, and can in fact handle much larger hard disks, portions of the modern BIOS boot code are still plagued by this limit, and this fact has important consequences for OS installation, as discussed in this and the next few chapters.

Ignorance Is Bliss One method of getting around the 1024-cylinder limit is to ignore it. This is a perfectly workable solution for OSs that don't rely on the BIOS for disk access. OS/2 and Linux, for example, even in 1994, could access all of a 1GB or larger disk; these OSs simply use more than 10 bits to represent the number of cylinders on a disk, thus allowing direct access to the disk's full capacity. There are several problems with this solution, however:

  • To boot an OS, the BIOS must be able to read certain OS files, so those files must fall below the 1024-cylinder limit. Ensuring that this will be the case can be a nuisance.

  • If you're running a dual-boot system, some OSs might be able to ignore the 1024-cylinder limit and some might not. Those that can't ignore it might become confused by a disk partitioned by the more capable OS or might become confused by the contents of a partition that spans the limits. For this reason, OS/2 won't format a partition that falls even partly past the 1024-cylinder limit for the file allocation table (FAT) filesystem used by DOS, although OS/2 will use its own high-performance filesystem (HPFS) on such partitions.

  • Even two OSs that can each handle over–1024-cylinder drives might have subtle incompatibilities in how they encode partitioning or other data, so they might have problems coexisting on such a system.

Using CHS Geometry Translation One method of handling over–1024-cylinder drives was what came to be known as CHS geometry translation or various truncations of that term. Recall that the reason for using only four bits for the head number was that this was a limitation of IDE drives themselves. Internal to the BIOS, an eight-bit field could be used for the head number. CHS geometry translation typically works by taking excess cylinders and turning them into heads. For example, if a drive reports that it has 2000 cylinders and 16 heads, the BIOS can translate this to 1000 cylinders and 32 heads. The total drive capacity remains the same, the BIOS and most software can handle this system, and the total capacity limit is raised to 7.875GB, depending on how vigorously the software translates geometries.

CHS geometry translation was first done using special software BIOS extensions that were stored in the hard disks' boot sectors. Such software programs were frequently designed for DOS and didn't work well with OS/2, Linux, or other OSs. These OSs eventually learned to spot these programs and adjust their own handling of the drive to fit in. Therefore, if you have an old system that uses such software, you can probably continue to use it, even if you're planning to install a new OS. You might want to check the documentation for your new OS to be sure it's safe, though.

Eventually, CHS geometry translation came to be a standard feature in PC BIOSs, so no additional software was required. Similarly, many EIDE add-on controller cards include BIOS extensions that replace or augment the motherboard BIOS's hard disk routines to provide such support. As with software BIOS extensions, though, each OS must be able to play along with this solution. If an OS queries the hard disk directly about its capacity and uses the values returned by the disk itself rather than by the BIOS, the OS will use incorrect values as far as other OSs are concerned.

CAUTION

It's vitally important that all OSs agree on a single CHS geometry for each drive. If two OSs don't agree, they'll write conflicting data in the partition table and can corrupt data structures all over the disk. The end result can be absolutely disastrous. Fortunately, problems like this are rare and are mostly related to old OSs, such as OS/2 2.1, that don't understand modern CHS translation schemes.

Note that CHS geometry translation is a solution applied to IDE and EIDE drives only. Because SCSI drives don't communicate to their host adapters using CHS values, there's little sense in applying such schemes to them. Instead, SCSI host adapters modified their methods of creating CHS values for attached hard drives, as described in the next section.

Using LBA Mode in EIDE and SCSI Drives LBA stands for linear block addressing or logical block addressing, depending on whom you ask. By either name, it refers to a system of hard disk access whereby a single sector number is used instead of a triplet of numbers. The sector number used in EIDE LBA mode is a 28-bit number (from IDE's 16-bit cylinder, 4-bit head number, and 8-bit sector number added together). Therefore, LBA mode supports hard drives of up to 128GB (228 sectors x 512 bytes) in capacity.

SCSI hard drives have always used LBA mode internally and in talking to their host adapters; the SCSI host adapters have been the ones to translate LBA mode into CHS mode. Eventually, EIDE drives began to emulate SCSI drives in this respect. This method of addressing requires that the drive electronics support the change (as is true of most EIDE drives but not the older IDE drives), and it requires support in the BIOS. As with CHS geometry translation, LBA mode results in the capacity to handle hard disks of up to approximately 8GB in size when using old CHS addressing methods (which are still constrained by the BIOS's cylinder, head, and sector number limits), but software that can directly handle LBA mode can use disks of up to 128GB.

In general, LBA mode uses disk space a little more efficiently than does CHS geometry translation because less disk space is lost to rounding errors. Depending on the hardware in use, LBA mode can be slightly faster than CHS geometry translation, as well. Most modern OSs can use LBA mode directly (bypassing the BIOS), but some software, particularly low-level disk utilities, still uses CHS mode.

CAUTION

The plethora of CHS mapping schemes makes it dangerous to move a hard disk from one computer to another. If the original computer used CHS geometry translation and the destination uses LBA mode, the destination computer could easily misinterpret the drive's layout and damage its data. Even if both computers claim to use the same translation scheme, differences in the algorithms used to implement these methods could wreak havoc. For similar reasons, you should never change the translation scheme used on a disk unless you've first deleted all the partitions (thus wiping out all the disk's data). When you've wiped the disk clean and changed the geometry mapping scheme, boot a DOS floppy that contains the DOS FDISK utility and type FDISK /MBR. This undocumented command rewrites low-level disk information to conform to the new disk geometry settings. (DR-DOS's FDISK includes equivalent functionality as a menu item from inside the FDISK utility.) These comments apply to both EIDE and SCSI hard disks.

In recent years, there have been some efforts to get around the 1024-cylinder limit more completely by using LBA mode directly, even in programs that work through the BIOS. That is, instead of using CHS addressing from within programs, use the LBA addressing. This system is known as extended INT13 addressing (INT13 is the name of the BIOS call that's used for CHS disk addressing). The older non-extended INT13 addressing is still used in booting OSs, however, as well as by many older utilities.

The 1024-Cylinder Limit Is Alive and Well Today's hard disks are commonly in excess of 1024 cylinders again, even when CHS geometry translation or LBA mode translations are used, so we must deal with the 1024-cylinder limits all over again. You must ensure that all your bootable partitions fall below the 1024-cylinder limit. To determine what this limit is, start your BIOS setup utility and locate the information on your hard disk. (You must use your SCSI adapter's setup utility if you're booting from a SCSI disk.) Multiply the number of sectors by the number of heads and then divide by 2. That's the location of the 1024-cylinder limit in megabytes.

Fortunately, most OSs today can cope with hard drives with more than 1024 cylinders, or can use extended INT13 addressing. The list of such OSs includes Windows 98. If you have DOS on your system, you should ensure that its partitions fall entirely below the 1024-cylinder limit, just as do your bootable partitions. Microsoft has introduced new partition types for partitions that fall partly or wholly above the 1024th cylinder, but not all OSs understand these partition types, so if you use them, you might not be able to access these partitions from all your OSs.

 

  • + Share This
  • 🔖 Save To Your Account

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020