Patent ID: 7743424

Claim:
A method for protecting data in a hard disk, which is applied to a computer after said computer executes a power-on self test (POST) of a basic input/output system (BIOS), completes the initialization of memories and executes initialization program codes for interface devices of all hard disks installed in said computer, said method comprises: calling an interrupt routine of said basic input/output system (BIOS), for reading said hard disks; determining whether or not there is an unconfirmed hard disk; when there is an unconfirmed hard disk, reading said unconfirmed hard disk and determining whether or not said unconfirmed hard disk has a protection description data, wherein said protection description data comprises an ID label area for storing an ID information indicating that said hard disk has said protection description data, a hard disk ID code storage area for storing a hard disk ID code same as a computer ID code of said computer who sets said hard disk to be protected, a backup disk partition table storage area for storing a backup disk partition table of which the content is the same as the content of said disk partition table stored in said partition table area of a master boot record (MBR) in said hard disk that requires a protection, and a check sum code storage area for storing a numeric value of said protection description data that is computed by a checking program; determining whether or not said protection description data has a portion same as said computer ID code of said computer when said unconfirmed hard disk is determined to have said protection description data; creating a disk partition table in a partition table area in said unconfirmed hard disk when said protection description data is determined to have a portion same as said computer ID code of said computer; and repeating said step of determining whether or not there is other unconfirmed hard disk, and continuing the processing of said power-on self test (POST) after all of said hard disks are confirmed, and then ending the procedure.