CN100392593C - Method for protecting hard disk last partition - Google Patents

Method for protecting hard disk last partition Download PDF

Info

Publication number
CN100392593C
CN100392593C CNB2006100402664A CN200610040266A CN100392593C CN 100392593 C CN100392593 C CN 100392593C CN B2006100402664 A CNB2006100402664 A CN B2006100402664A CN 200610040266 A CN200610040266 A CN 200610040266A CN 100392593 C CN100392593 C CN 100392593C
Authority
CN
China
Prior art keywords
hard disk
operating system
partition
last partition
size
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2006100402664A
Other languages
Chinese (zh)
Other versions
CN1845073A (en
Inventor
张健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CNB2006100402664A priority Critical patent/CN100392593C/en
Publication of CN1845073A publication Critical patent/CN1845073A/en
Application granted granted Critical
Publication of CN100392593C publication Critical patent/CN100392593C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The present invention discloses a method for protecting an end partition of a hard disk. In the starting process of a computer, an INT13H filtering module is loaded by utilizing BIOS, a WINDOWS operating system is started, and then a hard disk filtering driving module is loaded; by means of the INT13H filtering module and a hard disk filtering driver, the hard disk size which is returned to the operating system is equal to a value which is obtained by the subtracting the size of the end partition from the actual hard disk size so that the operating system can not access forwardly the end partition and forwardly heads off reading/writing operation to the end partition in order that the operating system and applications can not access and modify the end partition; the hard disk filtering driver can be added in a factory installation program and automatically installed. In the process that the computer is started each time and before the operating system is started, a partition table of the end partition is checked; a main partition table is automatically created for the end partition, and the attribute of the main partition table is TYPE12; in this way, the new installed operation system can not damage the end partition.

Description

A kind of method of protecting hard disk last partition
One, technical field
The present invention relates to a kind of method of protecting hard disk last partition, realize the Data Protection in the hard disk last particular space.
Two, background technology
Existing brand computer all provides a lot of drivings and application program to the user usually, and in order to save cost, these programs all are kept at last subregion of hard disk when dispatching from the factory; Secondly, brand computer is returned the restore funcitons that the user provides factory state usually, allows the user return to factory state after computer is destroyed, to reduce after service cost.The common way of factory state restore funcitons is that operating system is backed up at the end of hard disk, utilizes recovery routine to realize reinstalling operating system then.Because the last partition of hard disk has been preserved too many important data and data, and can not allow domestic consumer to destroy, protect this last subregion just to seem extremely important so.Present solution has two kinds, and a kind of is that last subregion is made a hidden partition, and the defective of this method is, if merely with last partition as hidden partition, be easy to so be destroyed by user misoperation; Another kind is to adopt the SETMAX technology, and the HPA technology that the manufacturer computer that promptly has is known as mainly is to use the SETMAX instruction of stipulating in the ATA4 standard, and the defective of this method is that this technology might cause clashing with foreign patent.How should get around the SETMAX technology, to realize the protection to last partition again, the present invention sets forth this problem.
Three, summary of the invention
The objective of the invention is in order to prevent significant data in the hard disk last partition, and a kind of method of protecting hard disk last partition is provided by maloperation.
Technical scheme of the present invention is: a kind of method of protecting hard disk last partition is characterized in that it may further comprise the steps:
1), in the BIOS of computer that dispatches from the factory, increase a BIOS module, in the process of launch computer, utilize the BIOS module to obtain control, at first call the master routine that is positioned at the hard disk afterbody afterwards;
2) be written into the INT13H filtering module by this master routine, the INT13H filtering module is used in the time of operating system inquiry hard disk size, return a smaller value, this value equals the size that the hard disk actual size deducts last partition, thereby makes operating system not remove to visit last partition;
3) start WINDOWS operating system, in WINDOWS operating system, load the hard disk filtration drive, this hard disk filtration drive module is used in the time of operating system inquiry hard disk size, return a smaller value, this value equals the size that the hard disk actual size deducts last partition, thereby makes operating system not remove to visit last partition.
The dispatch from the factory BIOS the inside of computer increases a BIOS module, this module is in the process of launch computer, obtain control, call the master routine that is positioned at the hard disk afterbody then, this master routine is written into the INT13H filtering module, just call INT 19H at last, finish the work of system bootstrap, and finally start WINDOWS operating system.Simultaneously, the operating system of startup the inside is equipped with a hard disk filtration drive module.These two parts of INT13H filtering module and hard disk filtration drive module are tackled the visit of operating system to hard disk.In the time of operating system inquiry hard disk size, return a smaller value, this value equals the size that the hard disk actual size deducts last partition, and it is smaller to allow operating system take for hard disk, thereby does not go to visit shielded part.
In addition, attempt to read the data of hard disk last partition when operating system or application program, it is 0 that INT13H filtering module and hard disk filtration drive module make its rreturn value, and operating system just be can't see the True Data of last partition like this.And when the operating system view writes the hard disk last data, be returned as success, but in fact really do not do the write operation of hard disk, like this, the data of hard disk last just can not be destroyed.In the time of launch computer, the BIOS module is judged automatically, if fdisk has covered the protected field, adjusts partition table automatically, makes that last subregion is a partition data that can not be operated system identification.
The INT13H filtering module is used to tackle this interrupt vector of INT13H, under dos operating system, and access hard disk if desired, conventional software all is by calling this interruption of INT13H.INT13H filtering module of the present invention is monitored 08 function, 02 function, 03 function, 42H function, 43H function and 48H function, in the time of intercepting and capturing 08 or 48H function, returns size and deducts the protected location size for total size, promptly returns a smaller hard disk size.It is smaller to make conventional software or dos operating system take for hard disk like this.In the time of intercepting and capturing 02 or 42H function, check the sector position of reading, if sector position is positioned at claimed hard disk last partition, then direct return data 0 makes that the data of reading are 0.In the time of intercepting and capturing 03 or 43H function; the sector position that inspection is write; if sector position is positioned at claimed hard disk last partition; then directly return success; but in fact really do not do the write operation of hard disk, make conventional software or dos operating system think smoothly data are write hard disk.
Hard disk filtration drive module is used to tackle this interrupt vector of IRP, and under WINDOWS operating system, access hard disk under the regular situation, all is to call by IRP if desired.Hard disk filtration drive module monitors READ of the present invention, WRITE, these three functions of GEOMETRY, when intercepting and capturing the GEOMETRY function, returning size is the size that the total size of hard disk deducts last partition, promptly returns a smaller hard disk size.It is smaller to make WINDOWS take for hard disk like this, thereby does not go to visit shielded part.When intercepting and capturing the READ function, check the sector position of reading, if sector position is positioned at the protected location, directly return data 0 makes that the data of reading are 0.When intercepting and capturing the WRITE function; the sector position that inspection is write; if sector position is positioned at hard disk last partition; directly return success; but in fact really do not do the write operation of hard disk; make WINDOWS think smoothly data are write hard disk, thereby reach the purpose of protecting last partition.
In the time of each the start, the BIOS module always is performed earlier, when the BIOS module is carried out, judges partition table, if find that partition table has covered last protected location, just adjust the size of partition table, and the protected location is set to a FAT12 subregion.
In the drive installation bag of the computer that dispatches from the factory, increase the install programs automatically of filtration drive, and when the user clicks the installation driving, check whether hard disk filtration drive module has been installed, if it's not true, filtration drive is installed by force automatically, and restarts computer, allow filtration drive come into force.
For manufacturer, increased by one after door interface, manufacturer can stop the protection to last partition, makes things convenient for manufacturer to revise the content of last partition.
Advantage of the present invention and effect are very obviously and have a practical application effect, compare with the hidden partition technology of routine, owing to increased INT13H filtering module and filtration drive module, more effectively protected last subregion, and former method is easy to be deleted hidden partition by some tool software such as PQMAGIC; And the present invention but looks for another way and do not realized and the identical purpose of SETMAX instruction owing to use the SETMAX instruction of band in the hard disk, and the corresponding producer that alleviated uses foreign patent must pay the burden of expensive license fee.
Four, description of drawings
Fig. 1 is a workflow diagram of the present invention.
Five, embodiment
At first, utilize the BIOS of mainboard band to revise and refresh tool,, add in the mainboard BIOS BIOS module provided by the invention.
Secondly,, be created as a primary partition table, this zoned format is turned to the FAT32 form, copy master routine provided by the invention to this subregion then the space of hard disk last.The attribute of revising this partition table is the value that TYPE12 or other can not be discerned by WINDOWS.
Once more, in the WINDOWS the inside of dispatching from the factory, hard disk filter drive program provided by the present invention is installed.
The drive installation dish that provides in manufacturer increases the function that filter drive program is installed automatically.When the new operating system of user installation, if the user installation driver, the new operating system of just can automatically the hard disk filtration drive being packed into, the function of realization protection last partition.
Because this can't be deleted the TYPE12 subregion by disk administrator under WINDOWS, the potential approach that destroys the TYPE12 subregion mainly contains following three kinds:
1) under DOS, uses third party's instrument deletion subregion, as DISKGEN, DM or the like.
2) under WINDOWS, use third party's instrument, as PQMAGIC.
3) reinstall operating system, subregion again in installation process.
The present invention solves destruction methods 1) be to rely on the INT13H filtering module, interception INT13H is to the read-write operation of hard disk, and revises hard disk size, makes instrument under the DOS, the subregion that can't visit the end.
The present invention solves destruction methods 2) be rely on WINDOWS down by hard disk filtration drive provided by the invention, when WINDOWS inquires about hard disk size, directly return a less hard disk size, allow WINDOWS can't see last partition.And, even other instruments will be visited the space at last partition place, also can be tackled by the hard disk filtration drive, all attempt to rewrite the operation of last partition, all can be abandoned.
The present invention solves destruction methods 3) be to rely on the automatic installation hard disk filtration drive module of in the drive installation dish that manufacturer provides, adding involved in the present invention, when the user after new installing operating system, usually need to install the driver of various hardware devices, in the process that hardware drive program is installed, hard disk filtration drive of the present invention is installed automatically.
BIOS module of the present invention in starting the process of computer, the acquisition control of trying to be the first, and call the master routine that is positioned at hard disk last, this master routine is written into the INT13H filtering module, just starts the operating system at last.Even can guarantee that like this by optical disk start-up, USB flash disk starts, and can protect last partition.
BIOS module of the present invention judges at first whether last partition exists when starting, so just recovered the last partition table if find by unexpected deletion.
Typically; the actual size of supposing hard disk is 80G; the size of shielded last partition is 1G; INT13H filtering module and hard disk filtration drive module so; the size that returns to operating system is 79G; make operating system think that this hard disk has only 79G, thereby do not go to visit the data that are positioned at protected partition.
Even adopt certain software specially to go to read the data of last partition, INT13H filtering module and hard disk filtration drive module allow the data that read out be 0; If write last partition, in any case write, all be shown as successfully, but real data can not be written on the hard disk.So just realized protection to last partition.

Claims (3)

1. method of protecting hard disk last partition is characterized in that it may further comprise the steps:
1), in the BIOS of computer that dispatches from the factory, increase a BIOS module, in the process of launch computer, utilize the BIOS module to obtain control, at first call the master routine that is positioned at the hard disk afterbody afterwards;
2), be written into the INT13H filtering module by this master routine, the INT13H filtering module is used in the time of operating system inquiry hard disk size, return a smaller value, this value equals the size that the hard disk actual size deducts last partition, thereby makes operating system not remove to visit last partition;
3), start WINDOWS operating system, in WINDOWS operating system, load hard disk filtration drive module, this hard disk filtration drive module is used in the time of operating system inquiry hard disk size, return a smaller value, this value equals the size that the hard disk actual size deducts last partition, thereby makes operating system not remove to visit last partition.
2. a kind of method of protecting hard disk last partition according to claim 1; it is characterized in that in step 1), further comprise and utilize the BIOS module, for last partition is created a partition table; and the attribute of this partition table is set to specific properties, makes operating system not discern.
3. a kind of method of protecting hard disk last partition according to claim 1; it is characterized in that in the described loading hard disk of step 3) filtration drive module it being to dispatch from the factory to add the install programs automatically of filtration drive in the driver installation kit of computer, be the new operating system increase hard disk filtration drive module of installing of user automatically.
CNB2006100402664A 2006-05-12 2006-05-12 Method for protecting hard disk last partition Expired - Fee Related CN100392593C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100402664A CN100392593C (en) 2006-05-12 2006-05-12 Method for protecting hard disk last partition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100402664A CN100392593C (en) 2006-05-12 2006-05-12 Method for protecting hard disk last partition

Publications (2)

Publication Number Publication Date
CN1845073A CN1845073A (en) 2006-10-11
CN100392593C true CN100392593C (en) 2008-06-04

Family

ID=37064001

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100402664A Expired - Fee Related CN100392593C (en) 2006-05-12 2006-05-12 Method for protecting hard disk last partition

Country Status (1)

Country Link
CN (1) CN100392593C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271430B (en) * 2007-03-21 2011-11-02 联想(北京)有限公司 Method and apparatus for data protection of memory device
CN113434335A (en) * 2021-06-18 2021-09-24 浪潮电子信息产业股份有限公司 Method, system, equipment and storage medium for recovering partition by hidden system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2365544A (en) * 1999-11-15 2002-02-20 Time Computers Ltd Storing back-up recovery files on a hidden partition of a disk
GB2376386A (en) * 2001-05-10 2002-12-11 Sagem Locking a mobile telephone from a radiotelephone network
CN1102262C (en) * 1999-02-10 2003-02-26 联想(北京)有限公司 Method for protection of hard disc based on computer main board fixation memory device
CN1450459A (en) * 2002-04-10 2003-10-22 联想(北京)有限公司 Hard disc data protector
CN1595517A (en) * 2003-09-10 2005-03-16 西安三茗科技有限责任公司 A method for locking hard disk partition safely

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1102262C (en) * 1999-02-10 2003-02-26 联想(北京)有限公司 Method for protection of hard disc based on computer main board fixation memory device
GB2365544A (en) * 1999-11-15 2002-02-20 Time Computers Ltd Storing back-up recovery files on a hidden partition of a disk
GB2376386A (en) * 2001-05-10 2002-12-11 Sagem Locking a mobile telephone from a radiotelephone network
CN1450459A (en) * 2002-04-10 2003-10-22 联想(北京)有限公司 Hard disc data protector
CN1595517A (en) * 2003-09-10 2005-03-16 西安三茗科技有限责任公司 A method for locking hard disk partition safely

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
硬盘数据存取保护原理的分析及应用. 陈年,凌军.自贡师范高等专科学校学报,第17卷第3期. 2002
硬盘数据存取保护原理的分析及应用. 陈年,凌军.自贡师范高等专科学校学报,第17卷第3期. 2002 *

Also Published As

Publication number Publication date
CN1845073A (en) 2006-10-11

Similar Documents

Publication Publication Date Title
US7519806B2 (en) Virtual partition for recording and restoring computer data files
JP5757509B2 (en) System reset
US5832513A (en) Detecting significant file system alterations during execution of a storage media software utility
US7624243B2 (en) Apparatus and method for protecting system data on computer hard-disk
US20030046605A1 (en) Data protection system and method regarding the same
US7007195B2 (en) BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image & software failure
US7337359B2 (en) System and method for recovering a device state
CN103345411A (en) Method and device for uninstalling application program
US7308547B2 (en) Apparatus and method for control of write filter
US20100037092A1 (en) System and method for backup, reboot, and recovery
US7478207B2 (en) Control system with a write filter for protection of data
US7469261B2 (en) Apparatus and method for protecting system data on computer hard-disk
CN100507850C (en) Method for embedding inner core drive program in Window operation system by USB apparatus start-up
CN100514305C (en) System and method for implementing safety control of operation system
US20040107357A1 (en) Apparatus and method for protecting data on computer hard disk and computer readable recording medium having computer readable programs stored therein
US6256714B1 (en) Computer system with efficient memory usage for managing multiple application programs
CN100392593C (en) Method for protecting hard disk last partition
CN101373457B (en) Hard disk write-protection lock based on USB equipment under Windows environment
CN101236498B (en) Method for embedding inner core drive program in Window operation system by PCI card start-up
CN101226494A (en) Method for backupping and recovering computer system
KR20020097344A (en) Restoration Method of data on Hard Disk Drive
CN1818824A (en) High-reliable personal computer and operating system thereof
US7882353B2 (en) Method for protecting data in a hard disk
CN101286121B (en) Method for installing computer drivers without optical disc
CN100424652C (en) Had disk self-recovery protecting method based on embedded operation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080604

Termination date: 20140512