Patent ID: 7882353
Filing Date: 2011-02-01
Classification: G06F

Abstract:
1. A method for protecting data in a hard disk, which is applied to said hard disk set to be protected by a computer, comprising: establishing a protective procedure storage area, a hard disk identification code area, and a backup partition table area between a jump area and a partition table area in a master boot sector of said hard disk, wherein a boot code is stored in said master boot sector; writing a starting address of said protective procedure storage area within said master boot sector into said jump area; copying a computer identification code of said computer into said hard disk identification code area to serve as a hard disk identification code; enabling said backup partition table area to serve as a storage space for storing all partition tables in said partition table area as backup partition tables respectively; writing a protective procedure and starting addresses of said hard disk identification code area and said backup partition table area within said master boot sector respectively into said protective procedure storage area; reading and executing said protective procedure when said computer completes BIOS POST process; reading said hard disk identification code stored in said hard disk identification code area; determining whether or not said hard disk identification code is identical to a computer identification code of said computer; when said hard disk identification code is identical to said computer identification code of said computer, determining whether or not said partition table area is cleared; when said partition table area is cleared, copying each of said backup partition tables stored in said backup partition table area to said partition table area to serve as a partition table of said hard disk respectively; and executing said boot code stored in said master boot sector to complete an initialization of an operating system of said computer.