Abstract:
The present invention is directed to a method for allocating resources in a disk drive having a user accessible area, a reserve area, and a boundary between the user accessible area and the reserve area. A capacity of the disk drive accessible to the user is read, the boundary between the user accessible area and the reserve area so as to increase the reserve area, and information is inputted to the increased reserve area.

Description:
CROSS REFERENCE TO RELATED APPLICATIONS  
       [0001]     The present application herein incorporates U.S. Pat. No. 5,966,732, entitled “Method and Apparatus for Adding to the Reserve Area of a Disk Drive”, issued Oct. 12, 1999, by reference in its entirety.  
       FIELD OF THE INVENTION  
       [0002]     The present application relates to storage devices. More specifically, the present invention relates to a method and apparatus for modifying the reserve area of a disk drive or memory.  
       BACKGROUND OF THE INVENTION  
       [0003]     A standard disk drive typically includes space for storing data available to the user and a fixed amount of space that is kept in reserve for storing data unavailable to the user. After the manufacturer writes a servo pattern on the disk or disks in a disk drive, the manufacturer fixes the amount of space that is available to the user and the amount of space that is unavailable to the user. Servo writing the disks in the disk drive provides positional information for finding a particular track or group of tracks. The manufacturer then designates that a certain number of tracks will be set aside for a reserve area. The manufacturer may then write certain critical information to the tracks in the reserve area. The critical information is typically required to operate the disk drive and is used by the operating system or hardware in the operation of the drive. In the past, no one beyond the original disk drive manufacturer could access the reserve area. The reserve area was simply protected. The reserve area was even off limits to a computer system manufacturer that integrated the disk drive into a computer system. Thus, a computer system manufacturer could not modify or change the size of the reserve area. No such command or set of commands were available to allow anyone beyond the manufacturer of the disk drive to change anything with respect to the reserve area as set up by the manufacturer.  
         [0004]     A disk drive is basically a nonvolatile source of memory. In other words, after the power is removed from the disk drive, the disk drive maintains the information stored thereon indefinitely. Recently, the storage capacity of disk drives has risen dramatically and the cost of that storage capacity, commonly priced as the cost per megabyte of disk drive storage has dropped dramatically. The result is that now disk drives have become an attractive alternative to nonvolatile storage utilizing ceramic chips or integrated circuits, since the cost of storage on a disk drive is much less expensive and since disk drives are already included in most computer systems.  
         [0005]     The only option at present for computer system manufacturers seeking to write information to a disk rather than to a ROM, is to write to an area of the disk to which the user has access. This option is simply unacceptable in certain instances, since critical information written to this area of the disk could be overwritten at anytime. Overwriting would be the same as erasing the critical data written to the disk. Thus, overwriting or erasure could have devastating effects. For example, basic instructions necessary to operate the computer system could be erased, thereby leaving the user with useless hardware. In addition, viruses downloaded from other sources such as the Internet, could attack critical information written to a user accessible area. Although writing critical information to a disk is currently an attractive alternative from a perspective of cost, computer system manufacturers are discouraged from writing such information to a disk due to the possibility of overwriting any critical information written on the disk.  
         [0006]     Therefore, there exists a need for a method and apparatus for modifying a reserve area of a disk drive or memory.  
       SUMMARY OF THE INVENTION  
       [0007]     The present invention teaches a method and apparatus for expanding the reserve area of a disk drive or memory to allow computer system manufacturers and the like to change the storage capacity of the reserve area. Typically, the reserve area is not capable of being accessed by users or of being overwritten. The method may include setting up a password with the disk drive manufacturer to enable two commands. One command reads the maximum address or largest track number that the user has access to. The second command allows for setting a new maximum address to which the user has access. Preferably, the new maximum address is lower than or equal to the maximum address the original disk drive manufacturer initially fixed for the maximum address for user accessible data. This assures that the reserve area set up by the disk drive manufacturer is never accessible by the user and that the data written to the original reserve area will not be inadvertently erased thereby preserving information critical to the operation of the disk drive. This prevents partial or complete incapacitation of the disk drive.  
         [0008]     Computer system manufacturers and the like now realize that they can reduce the cost of systems without appreciably reducing reliability or quality of the computer system by reducing the size of nonvolatile read only memories (ROMs) and storing a portion of the information formerly stored in a ROM on the less expensive disk drive. In addition, other information may be written to the additional non user accessible reserve area to enhance the reliability and performance of the computer system. Once the two commands have been used to expand the reserve area, the computer system manufacturer may add critical data, and critical program instructions to the expanded or new reserve area. For example, the computer manufacturer may decide to store a portion of a virus scan program in the new reserve area, or a portion of the basic input output system (BIOS) so that a smaller BIOS read only memory (ROM) may be used for the computer system. Additionally, information such as restoration information, firmware updates, feature, boot option, operating system image, multi-language drives, BIOS, assistive application software, system software, diagnostic software, and the like may be stored in the expanded reserve area.  
         [0009]     The present invention not only applies to a disk drive residing on a computer system such as a desktop computer, a notebook computer, a main frame computer, a server, and the like, but also applies to a memory residing on an electronic device such as a cell phone, a PDA (personal digital assistant), a digital camera, an MP3 player, a CD player, a DVD player, a PVR (personal video recorder), a handheld or computer-based gaming device or console, and the like. It is understood that the term “player,” as used herein, may include a player alone, a recorder alone, and a player/recorder.  
         [0010]     It is to be understood that both the foregoing general description and the following derailed description are exemplary and explanatory only and are not restrictive of the invention as claimed. The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and together with the general description, serve to explain the principles of the invention. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0011]     The numerous advantages of the present invention may be better understood by those skilled in the art by reference to the accompanying figures in which:  
         [0012]      FIG. 1  is a schematic diagram of a computer system including a disk drive;  
         [0013]      FIGS. 2A and 2B  are flow charts of the operation of the disk drive as the disk drive executes commands to expand the reserve area on the disk drive;  
         [0014]      FIG. 3  is a block diagram illustrating the fields of a read native max command;  
         [0015]      FIG. 4  is a block diagram illustrating the fields of a response to the read native max command;  
         [0016]      FIG. 5  is a block diagram illustrating the fields for an error register in the response to the read native max command;  
         [0017]      FIG. 6  is a block diagram illustrating the fields for a status register in the response to the read native max command;  
         [0018]      FIG. 7  is a block diagram illustrating the fields of a set max LBA/CYL command;  
         [0019]      FIG. 8  is a block diagram illustrating the fields of a response to the set max LBA/CYL command;  
         [0020]      FIG. 9  is a block diagram illustrating the fields for the error register in the response to the set max LBA/CYL command; and  
         [0021]      FIG. 10  is a block diagram illustrating the fields for the status register in the response to the set max LBA/CYL command. 
     
    
     DETAILED DESCRIPTION OF THE INVENTION  
       [0022]     In the following detailed description of the invention, reference is made to the accompanying drawings which form a part hereof, and in which are shown by way of illustration specific embodiments in which the invention may be practiced. It is to be understood that other embodiments may be utilized and structural changes may be made without departing from the scope of the present invention.  
         [0023]     Referring now to  FIG. 1 , an exemplary embodiment of the present invention is shown wherein a computer system  20  includes a disk drive  30 . The computer system  20  also comprises a microprocessor  22  having a data and instruction bus  23  for passing commands and data. A memory  24  and an input/output controller  25  are attached to the data and instruction bus  23 . Attached to the input/output controller  25  is a floppy drive  26 , a communications port  28  and a disk drive  30 . The disk drive  30  shown is a hard or rigid disk drive. The rigid disk drive includes a housing  32  which typically includes a base plate and a cover which form a controlled environment called a disk enclosure. A spindle  34  is attached to the housing. Attached to the spindle  34  is a rigid disk  36 . The spindle  34  is capable of rotation and rotates the disk  36  during operation. Also attached to the housing  32  is an actuator arm  38 . In  FIG. 1 , the actuator arm is shown as rotatably attached to the housing  32 , however, an actuator arm can also be attached to the housing  32  so that linear motion is achieved. Attached at the end of the actuator arm  38  is a slider  40  which carries a transducer  42 . The slider  40  passes over the disk  36  and places the transducer in transducing relationship to the disk  36 . The disk  36  includes a multiplicity of tracks which are typically invisible to the naked eye. The actuator arm  38  is moved and controlled to place the transducer  42  over a particular desired track and then maintain the transducer  42  over the desired track until desired information is read from or written to the desired track. In the case of reading information from the track on the disk  36 , the transducer is electrically connected to circuitry  44  for amplifying the signal, decoding the signal and transferring the signal to a connector  90 . The electrical circuitry  44  typically includes a circuit board which contains processing circuitry, firmware and other hardware.  
         [0024]     An inner track  50  and an outer track  52  are shown as dotted concentric circles on the disk in  FIG. 1 , however tracks are typically invisible to the naked eye. The inner track  50  and the outer track  52  are just two of a multiplicity of tracks. The tracks located between the inner track  50  and the outer track  52  represent an area of the disk to which a user has access. The outer track is numbered track zero (track 0), the tracks are then numbered consecutively so that the higher numbered tracks are located closer to the center of the disk  36 . It should be noted that when a disk drive contains more than one disk, the tracks that share the same number are at about the same distance from the center of the spindle. The tracks having the same number are then said to form a cylinder. The various tracks would be circles on the cylinder.  
         [0025]     A reserve area  54 , which the user can not access, may be located anywhere on the disk  36 . The most common location for a reserve area is toward the center diameter of the disk inside of the inner track of the area to which the user has access. Accordingly, the reserve area  54  is shown inside the inner track  50  on the disk  36 . The reason that this is the most common portion of the disk on which to have a reserve area is that these tracks hold the least amount of information per track. Since the inner tracks hold less data or information per track they are also in smaller increments. When adding information to the reserve area, the computer manufacturer will determine the size of the information they wish to add. Preferably, the capacity of all the added tracks for the reserve area will have to be equal to or greater than the size of information to be added to the reserve area. Typically, the computer system manufacturer will add tracks until the amount of storage capacity exceeds the size of the information to add. It should be noted that the tracks capable of holding more information are more valuable in terms of storage available to the user. The tracks capable of holding more information also occur in larger increments. Thus, if an additional track is needed to provide enough capacity to meet the capacity desired to be added to the new reserve area, using the tracks having smaller capacity will waste less capacity otherwise available for the user.  
         [0026]     This invention provides a set of commands and a method to allow a computer system manufacturer to modify the size of the reserve area  54 . The set of commands may be enabled by a password set up between the disk drive manufacturer and the computer system manufacturer. The password typically is a command that means nothing to the disk drive other than to allow execution of certain commands as discussed below. By executing the commands, the reserve area  54  may be expanded by reducing the highest track number to which the user has access. This effectively moves the inner band  50  away from the center of the disk  36  to make the reserve area  54  larger and make the portion of the disk accessible to the user (the area between the inner band  50  and the outer band  52 ) smaller.  
         [0027]     In an exemplary embodiment, the two commands used are READ NATIVE MAX LBA/CYL command and the SET MAX LBA/CYL. The READ NATIVE MAX LBA/CYL command is akin to a status check of the current parameters that have been set for the disk drive. The READ NATIVE MAX LBA/CYL command is the request for the status information. The RESPONSE to this command includes the actual status.  
         [0028]     The SET MAX LBA/CYL command is the command that requests a new or different maximum cylinder or logical block address. In other words, this is the command which resets the boundary between the user accessible area and the reserve area or negative cylinders to which the user does not have access.  
         [0029]     In rare instances, the reserve area  54  can be reduced by increasing the highest track number to which the user has access. This effectively moves the inner band  50  toward the center of the disk  36  to make the reserve area  54  smaller and make the portion of the disk accessible to the user (the area between the inner band  50  and the outer band  52 ) larger. Of course it should be noted that the manufacturer of a disk drive sets up the size of the original reserve area and stores critical data in the original reserve area which is necessary to operate the disk drive. Thus, preferably the modifications will not reduce the size of the reserve area to an area that is smaller than the original reserve area as set up by the manufacturer of the disk drive. This prevents overwriting of critical information written to the original reserve area by the original equipment manufacturer.  
         [0030]     Two commands are enabled with a password which is set up between the disk drive manufacturer and the computer system manufacturer. Typically the computer system manufacturer must specify the type of password which is to be recognized. It may be preferable to include this password as part of the system BIOS. Thus, as the drive firmware reduces the capacity by a predetermined area, and drive firmware reports back to a BIOS or OS driver that it is unaware of the special commends needed to gain access to this area. An operating system like Windows (9X, NT, 2000, XP), Linux, and the like is entirely unaware of the hidden area and cannot access it without special drivers. Therefore, in this embodiment, only the system BIOS is aware of this and knows the hard drive commands, such as IDE commands, to access it. In this way, access to the reserve area may be controlled by the BIOS to limit unwanted user actions.  
         [0031]     Now turning to  FIGS. 2A and 2B , exemplary steps utilized to implement this invention will be described in more detail with the aid of the flowchart shown in these figures.  
         [0032]     The disk drive  30  is started as depicted by step  60 . Once started, the drive goes through drive recalibration and a series of self diagnostics, as depicted by step  62 , to test itself and then as the drive warms up, the drive recalibrates various settings within the drive, such as position error signals and other such features. Once the drive has gone through its self diagnostics and recalibration, the drive checks its rotational speed at decision box  64 . If the drive is not at its rotational speed, the drive does a loop  66  and rechecks the rotational speed. The loop is depicted by a circle  66  in the flow chart. Once the disk drive has achieved rotational speed, the drive gets the drive parameters that are stored in the negative cylinders or the reserve area, as depicted by box  68 . An additional sum, called a checksum, is calculated and stored with the original disk drive parameters. Upon reading the original parameters, the checksum is then recalculated and compared to the original checksum. If the checksum is valid, as depicted by decision box  70 , the drive parameters are passed onto the drive firmware as depicted by box  72 . Once the drive parameters are passed onto the drive firmware, the drive is ready to accept additional commands as shown in step  74  of the flow chart. Firmware is that part of software that usually cannot be easily changed. Firmware consists of microprograms that are contained in ROM. Typically, firmware tends to be configured for specific hardware and offers software-type implementation techniques for that hardware. Firmware is generally limited to moving data through the data paths and functional units already present; and is able to effectively process only the instruction formats, data types, and arithmetic modes that are defined for the specific hardware for which it is written.  
         [0033]     The additional command that is accepted is Read Native Max Cylinder (READ NATIVE MAX LBA/CYL) which is identified by the hexadecimal form of an F and an 8 as shown in box  76  of the flow chart. The command is checked for validity to see if the command is supported by the disk drive&#39;s hardware and firmware at decision box  78 . If it is not supported, the operation aborts. If it is supported and it is a valid command, the disk drive returns the drive parameters to the host computer as shown in box  80 . The drive parameters are returned in the RESPONSE to the READ NATIVE MAX LBA/CYL. The particulars of these commands will be discussed with respect to  FIGS. 3-6 .  
         [0034]     Another command, as depicted by Box  82 , which is issued as the Set Max Cylinder command invoked by the hexadecimal F9. This is the command used to set a new maximum cylinder or track number. A reduction in the maximum track number reduces the area to which users have access and increases the reserve area to which the users do not have access. This command is checked for validity at decision box  84 . If the command is invalid, the operation aborts. If the command is valid and it is supported by the disk drive&#39;s hardware and firmware, the new parameters are passed to the drive firmware as shown in box  86 .  
         [0035]     The computer system manufacturer may load other information into the reserve area which is not user accessible to utilize the reserve area as inexpensive nonvolatile storage. Such information may comprise data and programs. Any information or sets of instructions may be loaded into the added reserve area. Some of the uses include adding a portion of the BIOS (Basic Input Output System) to the enlarged reserve area. BIOS is usually stored in other nonvolatile hardware such as a BIOS RAM. By off loading some of the BIOS to the reserve area, a smaller capacity, nonvolatile RAM can be used in the computer system. This saves manufacturers and users money since the nonvolatile disk drive space is less expensive than nonvolatile RAM. It should be apparent that a wide variety of information, such as data and program instructions may be stored in the reserve area without departing from the spirit and scope of the present invention, the following embodiments are discussed as exemplary in nature to aid in the description of the present invention.  
         [0036]     Another additional use of the added reserve area comprises storing emergency boot up instructions. The boot up instructions are those necessary to start up a computer system. These are typically stored on a floppy or a hard disk. More common is to store these on a hard disk drive. If the disk of the hard disk drive gets damaged in the area where the boot up instructions are located, then the emergency boot up instructions in the reserve area can be used. Previously, users had to look for the floppy disks that held the boot-up instructions before they could get restarted. If it is necessary to use the emergency boot up instructions, the disk drive indicates such necessity to the host. Such necessity also indicates that there may have been some disk damage.  
         [0037]     Another use of the added reserve area is for storing virus scan or virus detection software. With virus scanning or detecting software in the reserve area and therefore resident on the disk, the disk drive hardware or firmware checks for viruses periodically or after a certain amount of time after having not received a command. In an alternative embodiment, the system scans files before they are saved to the disk. In yet a further embodiment predictive failure information is added by the computer system or to the added reserve area  54 .  
         [0038]     A further use of the added reserve area is for storing restoration information. Restoration information may be utilized to restore computer system factory settings, such as drivers, files, and the like, in the case of loss of the factory settings due to failure of the system, such as hard drive failure and the like. Typically, restoration information is supplied on a removable medium, such as a floppy disk or compact disk read-only-memory (CD-ROM), to be installed by a user in case of failure. However, these disks may become lost, thereby requiring the user to order an additional medium, download the necessary files on another computer system, and the like. Thus, by providing restoration information in the added reserve area  54  on a hard disk drive, a BIOS call may be utilized to restore the computer system in case of failure, corruption, and the like. Further, by providing the restoration information in the reserve area, not only is the cost of a CD-ROM eliminated, but client care support would be improved, as well as factory support and the like. For example, improved client care support could result from the faster access time enabled by storing the information on the hard drive versus the time required to read the information from a CD-ROM. Factory support may be improved by eliminated the need of boot floppies during download. This will speed up the download and increase the number of systems per cell. Further, it could eliminate the testing of drives and free the space, since only bad drives should come back from the field.  
         [0039]     The present invention may be implemented utilizing a variety of methods. For example, a hot key may be utilized to access the reserved area. Password protection may also be utilized so that only the system BIOS access is allowed. Multiple services may also be supported by the reserve area. For instance, system level diagnostics may be stored in the reserve area, as well as restoration information, and the like as contemplated by a person of ordinary skill in the art may utilize the reserve area. For example, the firmware may be updated by permitting access to the reserve area by a computer system manufacturer, yet still ensure the integrity of the information by blocking access to the reserve area for all other users.  
         [0040]     Additionally, a unique code may be assigned to every feature, a unique code to every firmware change at the time the drive is manufactured, or at the time the drive is going through the service center. Preferably, the unique codes are suitable for being updated by a vendor during production or at the service center. Thus, the vendor and the computer system manufacturer may save both time and money. Preferably, a vendor special signature that is encrypted is included within the data so that only vendor drives have this signature. Thus, the signature may be matched with another signature on the drive itself before loading new software, such as a new firmware.  
         [0041]     Further the reserve area may be split into multiple areas. For example, the reserve area may be split into three areas. A first area for disk drive manufactures to store the firmware and features that is prohibited to others, such as the computer manufacturer and the like. A second area may be used by OEM or computer manufacturing to store boot options, OS image, multi-language drives, BIOS&#39;s, assistive application software to help customer support to copy and manage files, and the like. A third area may include a generic area for system and diagnostic software. Thus, a general command or password may be utilized to invoke the reserve area and sub-commands may be used to access each of the different sub-areas. Preferably, the sub-commands are vendor unique to insure the integrity of the data contained in each area. Although the use of three subareas are discussed, it should be apparent that other numbers of subareas may be utilized as contemplated by a person of ordinary skill in the art without departing from the spirit and scope of the present invention.  
         [0042]     Referring generally now to  FIGS. 3-10 , an exemplary embodiment of the present invention will be described wherein detail of the READ NATIVE MAX LBA/CYL and the SET MAX LBA/CYL commands and the responses to these commands is discussed. It should be noted at the outset, that all these commands and the responses thereto are in a format specifically required for a drive that operates with a standard IDE interface. Specifically, the commands are known as ATA commands. In other words, passing the commands and responses across an industry standard interface dictates that the commands are of a specific format which is dictated by the industry standard for ATA commands. One of ordinary skill in art could adapt these commands to use other industry standard interfaces such as SCSI, or SCSI II. The ATA command format is for the IDE drives, and is set forth here merely as an illustrative example with respect to other formats.  
         [0043]     READ NATIVE MAX LBA/CYL Command:  
         [0044]     Now turning specifically to  FIG. 3 , the details of the READ NATIVE MAX LBA/CYL command will be discussed. There are commands that govern AT attachment which are known as the ATA commands. Communication to or from any device, such as this disk drive, is through an I/O Register that routes the input or output data to or from registers associated with the ATA command block. The Command Block Registers are used for sending commands to the device or posting status from the device. The Control Block Registers are used for device control and to post alternate status. The command block registers include ten, 8-bit registers. The ten registers are for DATA, FEATURE, SECTOR COUNT, SECTOR NUMBER. CYLINDER LOW, CYLINDER HIGH, DEVICE/HEAD, COMMAND, STATUS, AND ERROR.  
         [0045]     ATA commands being written to devices and status being read from the devices is done through ten 8-bit registers that form the ATA Command Block. Each register is addressed by using the signals from the host (CSO−, CS1−, DA2, DA1, DA0, DIOR− and DIOW−). When writing a command to a device, the contents that have been written to the Data, Features, Sector Count, Sector Number, Cylinder Low, Cylinder High and Device/Head registers are treated as parameters of the command that is written to the Command register. Command processing begins when the Command register is written to. All the registers, except the command register, act as parameters for the command. Basically, the parameters are set first and then the command is issued.  
         [0046]     The details of the READ NATIVE MAX ADDRESS command will be discussed. For this command, the Data, Features, Sector Count, Sector Number, Cylinder Low and Cylinder High registers are not used and therefore, do not need to be initialized. The command (F8h) is written to the Command register after first writing a value into the Device/Head register. The value written to the Device/Head register indicates which device should respond to the command and whether the MAXADDRESS returned should be reported as an LBA (Logical Block Address) value or as a CHS (Cylinder-Head-Sector) value.  
         [0047]     The DEVICE/HEAD register defines which drive (slave or master) and the mode in which the drive operates (LBA mode is Logical Block Address Mode). All eight bits of the 8-bit COMMAND register specify the command. The first four bits of the COMMAND for the READ NATIVE MAX LBA/CYL command are 1111. The second four bits COMMAND for the READ NATIVE MAX LBA/CYL command are 1000. Four bits can be arranged in sixteen different ways which gives rise to the term hexadecimal. The hexadecimal which historically is equal to a “fox” or F is the combination with a 1111. The hexadecimal which historically is equal to a 8 is the combination with a 1000. Two hexadecimals define an eight bit register. The first four of the COMMAND for the READ NATIVE MAX LBA/CYL command equal the hexa-decimal F and the last four equal the hexadecimal  8 . Thus, the command is termed an F8 command.  
         [0048]     RESPONSE TO THE READ NATIVE MAX LBA/CYL Command:  
         [0049]     If the READ NATIVE MAX LBA/CYL command is considered valid, the drive returns the parameters to the host, as shown in step  80  of  FIG. 2B . The returned parameters are set forth in the RESPONSE TO THE READ NATIVE MAX LBA/CYL. The RESPONSE TO THE READ NATIVE MAX LBA/CYL command is in the format of any ATA command block which is a matrix of eight, 8-bit registers. Each 8-bit register is not used in the RESPONSE TO THE READ NATIVE MAX LBA/CYL command. As shown in  FIG. 4 , the command block for the RESPONSE TO THE READ NATIVE MAX LBA/CYL includes eight, 8-bit registers for DATA, ERROR, SECTOR COUNT, SECTOR NUMBER, CYLINDER LOW, CYLINDER HIGH, DEVICE/HEAD, and STATUS.  
         [0050]     The 8-bit registers for DATA, ERROR, SECTOR COUNT are not used in the RESPONSE TO THE READ NATIVE MAX LBA/CYL command returned to the host. The host reads the parameters from the 8-bit registers for the SECTOR NUMBER, CYLINDER LOW, CYLINDER HIGH, and the last four bits of the DEVICE/HEAD register. The values are typically ones and zeros that convey a particular Sector Number, a particular cylinder for Cylinder Low and a particular cylinder for Cylinder High and MAX HEAD Number.  
         [0051]     Once the max LBA/CYLINDER parameters are obtained, the device or disk drive places the parameters into the 8-bit registers for SECTOR NUMBER, CYLINDER HIGH, CYLINDER LOW, and DEVICE/HEAD. Once these parameters are in these registers, the status bit indicating that the command is complete and the DMA is ready is then set. The host then reads the parameters from the registers.  
         [0052]     The ERROR REGISTER/Field  
         [0053]     The ERROR register is used in the RESPONSE TO THE READ NATIVE MAX LBA/CYL command when an error is detected while executing the command. The error register is shown blank in  FIG. 4 . In actuality, the error register shown in  FIG. 4  may be filled. The error register is an 8 bit register. Each bit of the 8 bit register indicates a specific error as shown in  FIG. 5 . Each of the bits in the registers of the error register indicates a particular type of error.  
         [0054]     The STATUS REGISTER/Field  
         [0055]     The STATUS register is another 8 bit register as shown in  FIG. 6 . The bits in status register change while the RESPONSE TO THE READ NATIVE MAX LBA/CYL command are filled and changed while different parameters in the other registers are being filled. As mentioned above, the host polls the status with respect to fulfilling the command and the bits in the 8 bit STATUS register convey this information. The 8 bit status register is shown blank in  FIG. 4 , but is detailed in  FIG. 6 . Each of the bits in the STATUS REGISTER indicates the type of status as is shown in  FIG. 6 .  
         [0056]     Listed below are various parameters associated with the READ NATIVE MAX LBA/CYL command and the RESPONSE TO THE READ NATIVE MAX LBA/CYL command. The parameters associated with the READ NATIVE MAX LBA/CYL command are listed as Output Parameters to the Drive.  
         [0057]     The parameters associated with the RESPONSE TO THE READ NATIVE MAX LBA/CYL command are the remaining parameters listed. Specifically, the parameters associated with the RESPONSE TO THE READ NATIVE MAX LBA/CYL, command are the Input Parameters from the Drive, parameters associated with the Error Registers, and parameters associated with the Status registers.  
                                             Output Parameters to the Drive                                    L   LBA mode. Indicates the addressing mode. L = 0 specifies               CHS mode and L = 1 does LBA addressing mode.           D   Drive. When D = 0, Drive 0 (Master) is selected. When               D = 1, drive 1 (Slave) is selected.           V   Valid. Indicates that the bit is part of an output               parameter and should be specified.           —   Indicates that the bit is not used.                      
 
         [0058]    
       
         
               
             
               
               
             
           
               
                   
               
               
                   
               
               
                 Input Parameters From The Drive 
               
               
                   
               
             
             
               
                   
               
             
          
           
               
                 Sector Number 
                 In LBA mode, This register contains Native 
               
               
                   
                 Max LBA bits 0-7. (L = 1) 
               
               
                   
                 In CHS mode, this register contains Native 
               
               
                   
                 Max sector number. (L = 0) 
               
               
                 Cylinder High/Low 
                 In LBA mode, this register contains native 
               
               
                   
                 Max LBA bits 8-15 (low), 16-23 (high), 
               
               
                   
                 (L = 1) 
               
               
                   
                 In CHS mode, this register contains native 
               
               
                   
                 max cylinder number. (L = 0) 
               
               
                 DEVICE/HEAD 
                 In LBA mode, this register contains native 
               
               
                   
                 Max LBA bits 24-27. (L = 1) 
               
               
                   
                 In CHS mode, this register contains native 
               
               
                   
                 max head number. (L = 0) 
               
               
                 V 
                 Valid, indicates that the bit is part of 
               
               
                   
                 an output parameter and should be specified. 
               
               
                 — 
                 Indicates that the bit is not used. 
               
               
                   
               
             
          
         
       
     
         [0059]    
       
         
               
             
               
               
               
             
               
             
               
               
               
             
           
               
                   
               
               
                   
               
             
             
               
                 Error Registers 
               
             
          
           
               
                   
                 ABT 
                 Aborted command, ABT = 1 indicates the requested 
               
               
                   
                   
                 command has been aborted due to a drive status error 
               
               
                   
                   
                 or an invalid parameter in an output register. 
               
             
          
           
               
                 Status Registers 
               
             
          
           
               
                   
                 RDY 
                 Drive ready, RDY = 1 indicates that the drive is 
               
               
                   
                   
                 capable of responding to a command, RDY will be set 
               
               
                   
                   
                 to 0 during power on until the drive is ready to 
               
               
                   
                   
                 accept a command. If the drive detects an error 
               
               
                   
                   
                 while processing a command, RDY is set to 0 until 
               
               
                   
                   
                 the status register is read by the Host, at which 
               
               
                   
                   
                 time RDY is set back to 1. 
               
               
                   
                 ERR 
                 Error, ERR = 1 indicates that an error occurred 
               
               
                   
                   
                 during execution of the previous command. The Error 
               
               
                   
                   
                 Register should be read to determine the error type. 
               
               
                   
                   
                 The drive sets ERR = 0 when the next command is 
               
               
                   
                   
                 received from the Host. 
               
               
                   
                   
               
             
          
         
       
     
         [0060]     Once the RESPONSE TO THE READ NATIVE MAX LBA/CYL command is received by the host, the SET MAX CYL command may be issued by the host to the disk drive.  
         [0061]     SET MAX CYL Command  
         [0062]     Once the RESPONSE TO THE READ NATIVE MAX LBA/CYL command is received by the host, the SET MAX LBA/CYL command may be issued by the host to the disk drive. This command set overwrites the maximum logical block address or maximum cylinder (LBA/CYL) of the disk drive to reset the drive capacity available to the user and increase or decrease the reserve space or the capacity unavailable to the user. Once the command is received and the drive parameters are modified, then all accesses beyond the maximum logical block address or cylinder (LBA/CYL) of the disk drive are rejected by setting an abort bit which is one of the 8 bits in the Error Register (shown in  FIG. 9 ).  
         [0063]     Now turning specifically to the exemplary embodiment shown in  FIG. 7 , the details of the SET MAX CYL command will be discussed. As mentioned before with respect to the Read Native Max command, there are commands that govern AT attachment which are known as the ATA commands. Communication to or from any device, such as this disk drive, is through an I/O Register that routes the input or output data to or from registers associated with the ATA command block. The Command Block Registers are used for sending commands to the device or posting status from the device. The Control Block Registers are used for device control and to post alternate status. The command block registers include ten, 8-bit registers. The ten registers are for DATA, FEATURE, SECTOR COUNT, SECTOR NUMBER, CYLINDER LOW, CYLINDER HIGH, DEVICE/HEAD, COMMAND, STATUS, AND ERROR.  
         [0064]     ATA commands being written to devices and status being read from the devices is done through ten 8-bit registers that form the ATA Command Block. Each register is addressed by using the signals from the host (CSO−, CS1−, DA2, DA1, DA0, DIOR− and DIOW−). When writing a command to a device, the contents that have been written to the Data, Features, Sector Count, Sector Number, Cylinder Low, Cylinder High and Device/Head registers are treated as parameters of the command that is written to the Command register. Command processing begins when the Command register is written to. All the registers, except the command register, act as parameters for the command. Basically, the parameters are set first and then the command is issued.  
         [0065]     The details of the SET MAX CYL command will now be discussed. For this command the DATA and FEATURE registers are not used and therefore, do not need to be initialized. The SECTOR COUNT, SECTOR NUMBER, CYLINDER LOW, and CYLINDER HIGH are each 8-bit registers used to set the parameters of the SET MAX CYL command. The bits in these 8-bit registers are set before the SET MAX CYL command is run. The bits of the SECTOR COUNT, SECTOR NUMBER, CYLINDER LOW, and CYLINDER HIGH are used in the SET MAX CYL command to specify the value of the new highest cylinder to which the user has access. The DEVICE/HEAD register is used to define the type of drive (slave or master) and the mode in which the drive operates (LBA mode is Logical Block Address Mode). One bit of the SECTOR COUNT register is used to indicate whether the selection will be nonvolatile or volatile. In other words, if this is a temporary selection or a permanent selection.  
         [0066]     All eight bits of the 8-bit COMMAND register are used to specify the command. The first four bits of the COMMAND for the SET MAX CYL command are 1111. The second four bits of the COMMAND for the SET MAX CYL command are 1001. Four bits or fields can be arranged in sixteen different ways which gives rise to the term hexa-decimal. The hexadecimal which historically is equal to a “fox” or F is the combination with a 1111. The hexadecimal which historically is equal to a 9 is the combination with a 1001. Two hexadecimals define an eight bit register. The first four bits in the 8-bit COMMAND register for the SET MAX CYL command equal the hexadecimal F and the second four bits the 8-bit COMMAND register for the SET MAX CYL command equal the hexadecimal  9 . Thus, the SET MAX CYL command is termed an F9 command.  
         [0067]     RESPONSE TO THE SET MAX CYL Command  
         [0068]     If the SET MAX CYL command is considered valid, the new parameters are passed to the firmware of the disk drive device. The disk drive device returns the parameters to the host, as shown in step  80  of  FIG. 2B . The returned parameters are set forth in the RESPONSE TO THE SET MAX CYL command. The RESPONSE TO THE SET MAX CYL command is in the format of any ATA command block which is a matrix of eight, 8-bit registers. As shown in  FIG. 8 , the command block input registers for the RESPONSE TO THE SET MAX CYL command include eight, 8-bit registers called DATA, ERROR, SECTOR COUNT, SECTOR NUMBER, CYLINDER LOW, CYLINDER HIGH, DEVICE/HEAD, and STATUS.  
         [0069]     Bits in the DATA, ERROR, SECTOR COUNT registers are not used to set parameters for the RESPONSE TO THE SET MAX CYL command and therefore are not initialized. The drive parameters are conveyed by bits in the SECTOR NUMBER, CYLINDER LOW, CYLINDER HIGH, and DEVICE/HEAD 8-bit registers. The bits in these 8-bit registers convey the parameters for a particular Sector Number, a particular cylinder for Cylinder Low and a particular cylinder for Cylinder High. The bits of the DEVICE/HEAD register are used to convey parameters about the type of drive (slave or master) and the mode in which the drive operates (LBA mode is Logical Address Block mode).  
         [0070]     The ERROR REGISTER/Field  
         [0071]     Bits in the 8-bit ERROR Register may also be used in the event an error is detected. The last four bits of the ERROR Register are used when an error is detected while executing the SET MAX LBA/CYL command. The ERROR Register is not shown in  FIG. 7 , but are detailed in  FIG. 9 . Each of the bits in the ERROR Register indicates the type of error as is shown in  FIG. 9 .  
         [0072]     The STATUS REGISTER/Field  
         [0073]     Bits in the 8-bit STATUS register change while the RESPONSE TO THE SET MAX LBA/CYL command is being filled and as different parameters in other registers are being filled. The host polls the STATUS register as the command is being filled. The bits in the 8-bit STATUS register convey information about which of the parameters has returned and if all the parameters necessary to fulfill the RESPONSE TO THE SET MAX LBA/CYL command have been returned. The 8-=bit STATUS register is shown blank in  FIG. 7 , but is detailed in  FIG. 10 . Each of the bits in the STATUS register indicates the type of status as is shown in  FIG. 10 .  
         [0074]     Once the SET MAX LBA/CYL command is received and the drive parameters are modified, then all access attempts beyond the Logical Block Address or Cylinder designated by this command are rejected. Upon rejecting the access a bit in the ERROR register indicates an abort.  
         [0075]     Listed below are various parameters associated with the SET MAX LBA/CYL command and the RESPONSE TO THE SET MAX LBA/CYL command. The parameters associated with the SET MAX LBA/CYL command are listed as Output Parameters to the Drive.  
         [0076]     The parameters associated with the RESPONSE TO THE SET MAX LBA/CYL command are the remaining parameters listed. Specifically, the parameters associated with the RESPONSE TO THE SET MAX LBA/CYL command are the Input Parameters from the Drive, parameters associated with the Error Registers, and parameters associated with the Status registers.  
                                         Output Parameters to the Drive                                B   Option bit for selection whether non-           volatile or volatile. B = 1 is           volatile condition, when B = 1,           Max LBA/CYL which is set by SET MAX           LBA/CYL command is preserved by POR,           HARD RESET and SOFT RESET.           When B = 0, MAX LBA/CYL which is           set by SET MAX LBA/CYL command will           be lost by POR, HARD RESET and           SOFT RESET.       Sector Number   In LBA mode, this register contains           LBA bits 0-7 which is to be set.           (L = 1)           In CHS mode, this register is ignored.           (L = 0)       Cylinder High/LOW   In LBA mode, this register contains           LBA bits 8-15 (low), 16-23           (high) which is to be set, (L = 1)           In CHS mode, this register contains           cylinder number which is to be set,           (L = 0)       DEVICE/HEAD   In LBA mode, this register contains           LBA bits 24-27 which is to set           (L = 1)           In CHS mode, this register is ignored.           (L = 0)       L   LBA mode, indicates the addressing           mode, L = 0 specifies CHS mode           and L = 1 does LBA addressing mode.       D   Drive. When D = 0, the drive 0           (master) is selected, when D = 1           drive 1 (slave) is selected.       V   Valid. Indicates that the bit is part           of an output parameter and should be           specified.       —   Indicates that the bit is not used.                  
 
         [0077]    
       
         
               
             
               
               
             
           
               
                   
               
               
                   
               
               
                 Input Parameters From The Drive 
               
               
                   
               
             
             
               
                   
               
             
          
           
               
                 Sector Number 
                 In LBA mode, this register contains max 
               
               
                   
                 LBA bits 0-7 which is set. (L = 1) 
               
               
                   
                 In CHS mode, this register contains max 
               
               
                   
                 sector number. (L = 0) 
               
               
                 Cylinder High/Low 
                 In LBA mode, this register contains max 
               
               
                   
                 LBA bits 8-15 (Low), 16-23 (HIGH) 
               
               
                   
                 which is set. (L = 1) 
               
               
                   
                 In CHS mode, this register contains max 
               
               
                   
                 cylinder number which is set. (L = 0) 
               
               
                 DEVICE/HEAD 
                 In LBA mode, this register contains max 
               
               
                   
                 LBA bits 24-27 which is set. (L = 1) 
               
               
                   
                 In CHS mode, this register contains max 
               
               
                   
                 head number. (1 = 0) 
               
               
                 V 
                 Valid. Indicates that the bit is part of 
               
               
                   
                 an output parameter and should be specified. 
               
               
                 — 
                 Indicates that the bit is not used. 
               
               
                   
               
             
          
         
       
     
         [0078]     Error Registers  
         [0079]     ABT Aborted command ABT=1 indicates the requested command has been aborted due to a drive status error or an in valid parameter in an output register.  
                                                                     Error Registers                ABT   Aborted command. ABT = 1 indicates the requested               command has been aborted due to a drive status error or               an invalid parameter in an output register.            Status Registers                RDY   Drive ready. RDY = 1 indicates that the drive is               capable of responding to a command. RDY will be set               to 0 during power on until the drive is ready to               accept a command. If the drive detects an error while               processing a command, RDY is set to 0 until the Status               Register is read by the Host, at which the RDY is set               back to 1.           ERR   Error. ERR = 1 indicates that an error occurred               during execution of the previous command. The Error               Register should be read to determine the error type.               The drive sets ERR = 0 when the next command               is received from the host.                      
 
         [0080]     Access to the Reserve Area  
         [0081]     In an exemplary embodiment of the present invention, access to the reserve area may be accomplished in two stages. A user may press a key, such as an “F9” key, or when attempting to boot from all the devices listed in the setup BOOT menu fails. A menu may then be present to the user to enable the user to select a desired option, such as running system diagnostics, reloading a drive, performing a complete operating system restoration, and the like. The BIOS may then issue commands to the drive, which may include a code such as a password so that a hacker utility that knows the commands cannot gain access, resize the drive to allow access, and the like. A predetermined size area at the end of the disk may be formatted and made bootable like a floppy or CD-ROM. Thus, a warm boot may be performed and normal program flow resumed.  
         [0082]     At the drive level, the Tidentify drive command supports/defines the following:  
                                             Identify Drive Command                                    Word 82 Bit 10   1 = Host protected area set supported           Word 83 bit 8   1 = Set MAX security extension supported                      
 
         [0083]     Once the reserve area is set the following bits are set to 1.  
                                                       Word 85 bit 10   1 = host protected area feature set enable           Word 86 bit 8   1 = set max security extension enabled by               SET MAX SET PASSWORD                      
 
         [0084]     Those of ordinary skill in the art will understand that the present invention not only applies to a disk drive residing on a computer system such as a desktop computer, a notebook computer, a main frame computer, a server, and the like, but also applies to a memory residing on an electronic device such as a cell phone, a PDA (personal digital assistant), a digital camera, an MP3 player, a CD player, a DVD player, a PVR (personal video recorder), and the like. It is understood that a player includes a player alone, a recorder alone, and a player/recorder.  
         [0085]     It is understood that the specific order or hierarchy of steps in the processes disclosed is an example of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged while remaining within the scope of the present invention. The accompanying method claims present elements of the various steps in a sample order, and are not meant to be limited to the specific order or hierarchy presented.  
         [0086]     It is believed that the present invention and many of its attendant advantages will be understood by the foregoing description. It is also believed that it will be apparent that various changes may be made in the form, construction and arrangement of the components thereof without departing from the scope and spirit of the invention or without sacrificing all of its material advantages. The form herein before described being merely an explanatory embodiment thereof, it is the intention of the following claims to encompass and include such changes.