CN1139878C - Method for formatting - Google Patents

Method for formatting Download PDF

Info

Publication number
CN1139878C
CN1139878C CNB001087118A CN00108711A CN1139878C CN 1139878 C CN1139878 C CN 1139878C CN B001087118 A CNB001087118 A CN B001087118A CN 00108711 A CN00108711 A CN 00108711A CN 1139878 C CN1139878 C CN 1139878C
Authority
CN
China
Prior art keywords
ddpb
subregion
dos
bdpb
pointers
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
CNB001087118A
Other languages
Chinese (zh)
Other versions
CN1326140A (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNB001087118A priority Critical patent/CN1139878C/en
Publication of CN1326140A publication Critical patent/CN1326140A/en
Application granted granted Critical
Publication of CN1139878C publication Critical patent/CN1139878C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The present invention relates to a method for formatting which comprises the steps: firstly, dividing a hard disk into a plurality of partitions (namely a C partition, a D partition, an E partition, a F partition, etc.); then, executing a self-defined transfer program so as to automatically modify the contents of a BPDB table, a, DDPB table and a CDS table which are used for storing the characteristic information of the partitions according to the information of the partitions set by users; finally, the start addresses of the tables are newly written into the corresponding addresses of a memory of a system so as to replace the BPDB table, the, DDPB table and the CDS table which are used for storing the information of the original partitions. In this way, relevant parameters after the hard disk is divided into the partitions can be automatically stored in the memory of the system, and a computer does not need to be restarted.

Description

Carry out formative method
Technical field
The present invention relates to the formative method of a kind of execution, particularly a kind of computing machine of need not resetting just can be carried out formative method.
Background technology
In the prior art, if the user wants a fdisk and format, its common practice is at first carried out partition programs (Fdisk) (step 101) as shown in Figure 1, and the hard disk of this moment has promptly write down partition information; After executing division operation, reset computing machine (Reboot) (step 102); Afterwards, system is Basic Input or Output System (BIOS) driving parameters data block (BIOS Drive Parameter Block; BDPB), DOS driving parameters data block (Dos Drive Parameter Block; DDPB), current directory structure (Current Directory Structure; CDS) Biao new data drawing-in system internal memory (step 103); Carry out formatted program (Format) then, hard disk is formatd, its process comprises and finds dos sequence of pointers (step 104); Find the BDPB table in the position of internal memory (step 105) by the dos sequence of pointers; Reaching by the dos sequence of pointers finds the DDPB table in the position of internal memory (step 106); Show in the position of internal memory (step 107) with find CDS by the dos sequence of pointers; Carry out formatted program (step 108) at last, a hard disk is carried out subregion and formative process thereby finished.Yet the shortcoming of the method is the relevant information that can not immediately revise in the Installed System Memory, and must realize upgrading for information about purpose by restarting computing machine, so inefficiency, and operating process does not have continuity.
Summary of the invention
So, the object of the invention provides a kind of quick, automatically carry out fdisk, formative method, wherein, this method provides an interconnecting module, this interconnecting module can be according to the information behind the subregion, immediately revise the related content in the internal memory automatically, the user must not restart computing machine, in can automatic update system about the relevant information in user's newly developed area, thereby directly carry out the operation of disk format, improved work efficiency, reduced operation steps, shortened subregion and formative time, pilot process need not the user restart computing machine, can realize fast, auto-partition and format.
Another object of the present invention provides a kind of signaling transfer point, this function can be when carrying out the fdisk operation, immediately and dynamically revise the relevant recorded information in the internal memory, make its automatic record partitioning and formative relevant information, thereby finish the quick formatting process, and need not restart, guarantee the continuity of the lifting and the work of work efficiency.
To achieve these goals,, provide a kind of execution formative method, comprise the following step: carry out division operation, system disk is divided into a plurality of subregions according to one aspect of the present invention; Carry out switch over operation, and interrupt to obtain the DOS sequence of pointers by executive system; Find BDPB, DDPB before the described division operation, CDS position according to described DOS sequence of pointers at Installed System Memory; In described Installed System Memory, apply for enough address spaces; Duplicate BDPB, DDPB, CDS table; Revise the parameter of relevant described division operation in the Installed System Memory; And described a plurality of subregions are carried out format manipulation one by one, wherein, the step of partitioned parameters comprises the following step in the described modification Installed System Memory: the characteristic information that reads a described subregion; Revise the content of corresponding BDPB, DDPB, CDS table respectively according to described characteristic information; Revise described DOS sequence of pointers, make it point to the content of new BDPB, DDPB, CDS table; And carry out described DOS sequence of pointers, read new BDPB, the DDPB behind the described division operation, the content of CDS table.
Description of drawings
Below, with reference to description of drawings detailed content of the present invention and technology, in the accompanying drawings:
Fig. 1 is the format process flow diagram of prior art;
Fig. 2 is a functional module calcspar of the present invention;
Fig. 3 is a format process flow diagram of the present invention;
Fig. 4 is the details process flow diagram of modification subregion characteristic parameter of the present invention; And
Fig. 5 is a memory table address assignment synoptic diagram of the present invention.
Embodiment
In a preferred embodiment of the invention, it (is the C district that one hard disk is divided into a plurality of subregions, the D district, the E district, the F district ...), the partition programs of operative norm at first, carry out self-defining switch code then, find the BPDB table of depositing the subregion characteristic information by the DOS sequence of pointers again, the address of DDPB table and CDS table, revise the content of these three tables according to resulting relevant information, and then with in the appropriate address in the start address of these tables write memory again, the BPDB table of original partition information is deposited in replacement, DDPB table and CDS table, so just need not restart computing machine, and the related parameter that has behind the scoring area is preserved by system disk, so finished the robotization subregion process that need not the user manually restarts computing machine, at this moment, at these subregions, carry out a plurality of formats (Format) program respectively, each subregion is formatd, promptly finished whole formative process.
Now be described in detail as follows: as shown in Figure 2: at first hard disk is carried out subregion, carry out partition programs (step 201) according to functional module calcspar of the present invention with regard to whole formative process; Behind the subregion, parameter on the hard disk and relevant information generation respective change by the interconnecting module (step 202) that the present invention carried, are automatically revised the parameter (step 203) of relevant subregion in the Installed System Memory; Keep the information of these relevant subregions,, then carry out formatting module (step 204), realize the hard disk behind the subregion is formatd seriatim so that make system can confirm the result of division operation.
Fig. 3 is a format process flow diagram of the present invention, that is shows switch code flow process of the present invention, at first carries out partition programs (step 301); Hard disk is carried out subregion, carry out self-defined switch code (step 302); Then interrupt obtaining DOS sequence of pointers (step 303) by executive system; And judge system break whether run succeeded (step 304); If get nowhere, then retry (step 305); If retry is still unsuccessful, then failure is withdrawed from; If retry success is then found BDPB before the subregion according to the DOS sequence of pointers, DDPB, CDS is in the position of internal memory (step 306); Then in Installed System Memory, apply for enough address spaces (step 307), and judge whether to apply for successfully (step 308); If do not apply for successfully, then retry (step 309); If retry is still unsuccessful, then failure is withdrawed from; If retry success (comprise once and applying for successfully) is then duplicated BDPB in the Installed System Memory of applying for, DDPB, CDS shows (step 310); Then read the correlated characteristic information (comprising the parameter of some relevant subregions etc.) (step 311) of relevant logical partition; According to the corresponding respectively BDPB that revises of above information, DDPB, the related content (step 312) of CDS table; And revise the DOS sequence of pointers, make it point to new BDPB, DDPB, the content (step 313) of CDS table; Carry out the DOS sequence of pointers, read new BDPB behind the subregion, DDPB, the content (step 314) of CDS table; Carry out formatted program (step 315) one by one according to the number of partitions at last, realize format manipulation automatically, can finish this moment hard disk is carried out subregion and formative one by one automatically formatting process each subregion.
The details flow process of wherein relevant modification subregion characteristic parameter at first reads partition table (step 401) as shown in Figure 4; Obtain the title (Head) of subregion, cylinder (Cylinder) and sector (Sector) information (step 402); Then obtain the size of relevant subregion and the information (step 403) of media type; And read the relevant parameter (step 404) of divisional type; And, revise guiding (Boot) district correlation parameter (step 405) according to divisional type; At last according to divisional type, revised file allocation table (File Allocation Table; FAT) district's correlation parameter (step 406).
Fig. 5 is a memory table address assignment synoptic diagram of the present invention, and the relevant BDPB table of original subregion state, DDPB table and CDS table, three diverse locations that its start address leaves in respectively in the internal memory (are address 1, address 2, address 3), by pointing to the DOS sequence of pointers of these addresses, read the content of three tables, and behind the subregion position of these three tables in the internal memory is changed to the pairing start address of new table, make the DOS sequence of pointers can be by reading these three positions in the internal memory, obtain to point to the start address of three new tables, distinguish corresponding content so that obtain amended three new tables.
Though it is as above open that the present invention has carried out with aforesaid preferred embodiment; right its is not in order to limit the present invention; any person skilled in the art; under the situation that does not break away from the spirit and scope of the present invention; can carry out some and revise and retouching, so protection scope of the present invention should be as the criterion with accompanying Claim institute restricted portion.

Claims (2)

1. carry out formative method for one kind, comprise the following step:
Carry out division operation, system disk is divided into a plurality of subregions;
Carry out switch over operation, and interrupt to obtain the DOS sequence of pointers by executive system;
Find Basic Input or Output System (BIOS) driving parameters data block before the described division operation, DOS driving parameters data block, current directory structure position according to described DOS sequence of pointers at Installed System Memory;
In described Installed System Memory, apply for enough address spaces;
Duplicate BDPB, DDPB, CDS table;
Revise the parameter of relevant described division operation in the Installed System Memory; And
Described a plurality of subregions are carried out format manipulation one by one,
Wherein, the step of partitioned parameters comprises the following step in the described modification Installed System Memory:
Read the characteristic information of a described subregion;
Revise the content of corresponding BDPB, DDPB, CDS table respectively according to described characteristic information;
Revise described DOS sequence of pointers, make it point to the content of new BDPB, DDPB, CDS table; And
Carry out described DOS sequence of pointers, read new BDPB, the DDPB behind the described division operation, the content of CDS table.
2. the formative method of execution as claimed in claim 1, wherein, the described step of revising corresponding BDPB, DDPB, CDS table content respectively according to characteristic information comprises the following step:
Read the partition table of described subregion;
Obtain title, cylinder and the sector auxiliary information of described subregion;
Obtain the size of described subregion and the information of media type;
Read the parameter of the type of described subregion;
According to the type of described subregion, revise the parameter of boot section; And
According to the type of described subregion, revised file distributes the parameter of list area.
CNB001087118A 2000-05-30 2000-05-30 Method for formatting Expired - Fee Related CN1139878C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB001087118A CN1139878C (en) 2000-05-30 2000-05-30 Method for formatting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB001087118A CN1139878C (en) 2000-05-30 2000-05-30 Method for formatting

Publications (2)

Publication Number Publication Date
CN1326140A CN1326140A (en) 2001-12-12
CN1139878C true CN1139878C (en) 2004-02-25

Family

ID=4579277

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB001087118A Expired - Fee Related CN1139878C (en) 2000-05-30 2000-05-30 Method for formatting

Country Status (1)

Country Link
CN (1) CN1139878C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420982B (en) * 2006-04-13 2011-11-09 东亚药品株式会社 Dry direct compression fast disintegrating tablet

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100373502C (en) * 2004-07-22 2008-03-05 群联电子股份有限公司 Effect of improving flash memory at low step format
CN100385413C (en) * 2004-11-05 2008-04-30 义隆电子股份有限公司 Flash memory formatting method
CN101470784B (en) * 2007-12-25 2011-01-19 中国长城计算机深圳股份有限公司 Multi-user hard disk management method and apparatus
CN102253895B (en) * 2011-06-15 2013-09-04 成都易我科技开发有限责任公司 Method for intelligently and automatically adjusting storage equipment partition in computer system
CN103645992B (en) * 2013-12-19 2016-09-28 深圳市捷顺科技实业股份有限公司 A kind of partition format method and apparatus of iNAND
CN104991746A (en) * 2015-07-27 2015-10-21 深圳市蓝天威视科技有限公司 Method and system for storing and reading record data in FAT hard disk

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420982B (en) * 2006-04-13 2011-11-09 东亚药品株式会社 Dry direct compression fast disintegrating tablet

Also Published As

Publication number Publication date
CN1326140A (en) 2001-12-12

Similar Documents

Publication Publication Date Title
US8180956B2 (en) Method for controlling memory card and method for controlling nonvolatile semiconductor memory
CN102667740B (en) Boundary alignment by data storage device subregion Yu physical data sector
US5086502A (en) Method of operating a data processing system
JP4371771B2 (en) Power management block used in non-volatile memory system
EP0462180B1 (en) Method of reading and writing files on nonerasable storage media
EP1686482B1 (en) File recording device
US6000023A (en) Method for partitioning storage regions on hard disk and computer system adapted to the same
CN1313941C (en) Method for data exchange between data handling equipment and operating system
EP1378830B1 (en) Operating system selector and data storage drive
US20080288710A1 (en) Semiconductor Memory Device and Its Control Method
US20080109676A1 (en) Processing device and storage medium
CN1841323A (en) Method for switching operating system by hot key
CN1139878C (en) Method for formatting
TW201220047A (en) Method for performing automatic boundary alignment and related non-volatile memory device
CN102591797A (en) Auxiliary storage device and processing method thereof
JP2000163291A (en) Computer system and method for preparing computer- readable medium
WO1998000839A1 (en) Method for sharing a storage medium between computers having disparate operating systems
JP2000163255A (en) Computer system for accessing computer-readable medium and method therefor
CN102063273B (en) Hard disk management method and device
JPH09223049A (en) Disk array system
KR940005773B1 (en) Memory access controller
CN100389396C (en) FAT file system error treating method and device
JPH09152983A (en) Reentrant garbage collection processing in file system immanent in flash memory
CN1145102C (en) Active partitioned switching method of hard disk
JPH08263390A (en) Backup method for data in memory card

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
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: 20040225

Termination date: 20110530