CN102184248A - Method and device for regulating disk partitions in Windows - Google Patents

Method and device for regulating disk partitions in Windows Download PDF

Info

Publication number
CN102184248A
CN102184248A CN2011101318412A CN201110131841A CN102184248A CN 102184248 A CN102184248 A CN 102184248A CN 2011101318412 A CN2011101318412 A CN 2011101318412A CN 201110131841 A CN201110131841 A CN 201110131841A CN 102184248 A CN102184248 A CN 102184248A
Authority
CN
China
Prior art keywords
disk partition
sector
windows
subregion
partition
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.)
Granted
Application number
CN2011101318412A
Other languages
Chinese (zh)
Other versions
CN102184248B (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.)
Wanxing Polytron Technologies Inc
Original Assignee
Shenzhen Wondershare Software Co Ltd
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 Shenzhen Wondershare Software Co Ltd filed Critical Shenzhen Wondershare Software Co Ltd
Priority to CN2011101318412A priority Critical patent/CN102184248B/en
Publication of CN102184248A publication Critical patent/CN102184248A/en
Priority to PCT/CN2011/084260 priority patent/WO2012159436A1/en
Application granted granted Critical
Publication of CN102184248B publication Critical patent/CN102184248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions

Abstract

The invention relates to the field of computers and discloses a method and a device for regulating disk partitions in Windows. The support of partition position variable regulation is realized by restarting a Windows system during partitioning, entering a Windows Native mode, loading a Windows system partition protection mechanism and a disk section reading and writing kernel drive, transversing files in a regulated new technology file system (NTFS) partition and changing starting position variable partition size regulation into constant starting position partition size regulation; during operation of the Windows partition, the protection of the partitions of the Windows system is realized through the protection mechanism, the completeness of the operating system is guaranteed, and new functions, namely a function of regulating the NTFS partition optionally in the Windows and a function of changing the starting position of the partition, are added into a computer, so the security of the partitioned system is guaranteed, and convenience is provided for users.

Description

A kind of method and device of under Windows, adjusting disk partition
Technical field
The present invention relates to computer realm, in particular a kind of method and device of under Windows, adjusting NTFS district location and size.
Background technology
Along with improving constantly of development of science and technology and people's living standard, the use of computing machine is more and more universal, and computing machine has become the indispensable part of people.
Disk is the main External memory equipment of computing machine, and is the minimum memory unit with the sector.When using disk, disk can be divided into some subregions, subregion is a contiguous sector space on the disk, absolute reference position and amount of capacity are arranged on disk, and as shown in Figure 1, disk has n sector, the Sector Range of subregion C is [ j, k ], (k〉j), be total to k-j+1 sector-size.
When Windows operating system was installed, a subregion (being exactly the C dish that we know usually) can be installed in system.In a single day subregion is divided out, its reference position and amount of capacity on disk is just fixing, can not arbitrarily change, in the computed process of user, if the situation of C disk space deficiency can only be taked in the prior art C is formatd subregion again, divide a big C dish, both doing like this wastes time and energy, and also causes user's data to be lost easily, has brought inconvenience for the operation and the use of computing machine.
And the method that changes NTFS subregion reference position and size at present has three big deficiencies: 1. the reference position of not supporting to change subregion; 2. disk sector can't be directly write under the Vista/Windows7, thereby Vista/Windows 7 up-to-date operating systems can't be supported; 3. can't effectively protect Windows partition during Windows partition in operation, cause operation to be finished after, Windows has the risk that can not normally start.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is; above-mentioned defective at prior art; a kind of method and device of adjusting disk partition under Windows is provided; provide a kind of under the prerequisite of the existing Windows of protection; adjust the reference position of subregion and the method for amount of capacity; and support Vista/Windows 7 up-to-date operating systems, provide users with the convenient.
The technical scheme that technical solution problem of the present invention is adopted is as follows:
A kind of method of adjusting disk partition under Windows, wherein, described method comprises the steps:
The operational order of disk partition size is adjusted in A, reception;
B, enter Windows Native pattern, load Windows system partitioning protection mechanism, and load disk sector read-write kernel and drive;
C, the controlled disk partition of judgement are transferred greatly or are turned down, forward step D when turning down to, directly the scope of NTFS subregion bunch occupied information are transferred greatly when accent is big, and jump to step e;
D, the file of controlled disk partition is traveled through, judge that controlled disk partition file content takies bunch whether in setting range; When what judge that controlled disk partition file content takies bunch is beyond setting range the time, and then mobile this document content is in setting range, and bunch occupied information of updating file content, enters step e;
E, according to adjusted disk partition size and document cluster occupied information, bunch occupied information of updating file system, and the startup boot sector of updating file system enters step F;
F, judge whether the start offset of adjusted disk partition variation has taken place,, forward step G to, otherwise forward step H to when variation has taken place for the start offset of adjusted disk partition;
G, according to adjusted disk partition offset variation situation, integral body is carried out in adjusted disk partition moves, adjusted skew is shifted in the skew before adjusting, and enters step H;
H, restart the Windows system once more.
The described method of adjusting disk partition under Windows, wherein, described disk partition comprises NTFS subregion, FAT32 subregion, exFAT subregion.
The described method of adjusting disk partition under Windows, wherein, the mobile this document content among the described step D also comprises with interior to setting range: drive mobile this document content in setting range by the sector read-write.
The described method of under Windows, adjusting disk partition, wherein, described step G further comprises:
G1, when the skew of adjusted disk partition has reduced by a sector, then increase earlier a sector, and the sector occupied information of updating file system at adjusted disk partition rear portion;
G2, all sectors that will increase a the disk partition behind the sector move forward a sector, then finish the adjustment state.
The described method of under Windows, adjusting disk partition, wherein, described Windows system partitioning protection mechanism; be used to protect the Windows system partitioning; drive by file system filter, the read-write operation that system under the Native environment carries out is tackled, and be redirected.
The described method of under Windows, adjusting disk partition, wherein, it is the driver of a kernel state that described disk sector read-write kernel drives, be used for content at move, when writing disk, by sending request for this Kernel Driver, the disk sector content that will write is realized the write operation of disk sector by this Kernel Driver.
A kind of device of adjusting disk partition under Windows wherein, comprising:
Receiver module is used to receive the operational order of adjusting the disk partition size;
Adjust the original upload module, be used to enter Windows Native pattern, load Windows system partitioning protection mechanism, and load the driving of disk sector read-write kernel;
First judge module is used to judge that controlled disk partition transfers greatly or turn down;
Turn processing module down, be used for when controlled disk partition is turned down, the file of controlled disk partition is traveled through, judge that controlled disk partition file content takies bunch whether in setting range; When what judge that controlled disk partition file content takies bunch is beyond setting range the time, and then mobile this document content is in setting range, and bunch occupied information of updating file content;
Update module is used for according to adjusted disk partition size and document cluster occupied information, bunch occupied information of updating file system; And the startup boot sector of updating file system.
The described device of under Windows, adjusting disk partition, wherein, it also comprises:
Second judge module is used to judge whether the start offset of adjusted disk partition variation has taken place;
Offset module is used for when the start offset of adjusted disk partition variation having taken place, and according to adjusted disk partition offset variation situation, integral body is carried out in adjusted disk partition move, and adjusted skew is shifted in the skew before adjusting;
Adjust the back and start module, be used for the subregion adjustment and finish, normally start Windows.
The described device of under Windows, adjusting disk partition, wherein, described disk partition comprises NTFS subregion, FAT32 subregion, exFAT subregion;
The described processing module of turning down further comprises:
Read-write driver element in sector is used for driving mobile this document content in setting range by the sector read-write.
The described device of under Windows, adjusting disk partition, wherein, described offset module further comprises:
Skew increases the unit, is used for when the skew of adjusted disk partition has reduced by a sector, then increases a the sector and the sector occupied information of updating file system earlier at adjusted disk partition rear portion;
The reach unit is used for all sectors of the disk partition behind a sector of increase are moved forward a sector, then finishes the adjustment state.
A kind of method and device of adjusting disk partition under Windows provided by the present invention is converted into the constant partition size adjustment of reference position by the partition size adjustment that reference position is changed, thereby realizes that district location changes the support of adjusting; Vista/Windows 7 times, realize write operation to disk sector by Kernel Driver; At the operation Windows partition; pass through protection mechanism; realize the protection of Windows system partitioning; guarantee the integrality of operating system; and can protect user's data effectively when subregion, it has increased new function to computing machine: can arbitrarily adjust the NTFS subregion under Windows, and have the function of the reference position that changes subregion; guaranteed the security of system behind the subregion, provided users with the convenient.
Description of drawings
Fig. 1 is a kind of NTFS partitioned organization synoptic diagram.
Fig. 2 is first kind of subregion C status architecture synoptic diagram of the embodiment of the invention.
Fig. 3 is second kind of subregion C status architecture synoptic diagram of the embodiment of the invention.
Fig. 4 is the third subregion C status architecture synoptic diagram of the embodiment of the invention.
Fig. 5 is the 4th a kind of subregion C status architecture synoptic diagram of the embodiment of the invention.
Fig. 6 is the embodiment of the invention is adjusted disk partition under Windows a method flow diagram.
Fig. 7 is a subregion C status architecture synoptic diagram after the present invention's one concrete Application Example adjustment.
Fig. 8 is that subregion C turns the status architecture synoptic diagram down in the specific embodiment of the invention.
Fig. 9 is a subregion C shift state structural representation in the specific embodiment of the invention.
Figure 10 is the embodiment of the invention is adjusted disk partition under Windows a principle of device block diagram.
Figure 11 be embodiment of the invention device turn the processing module internal frame diagram down.
Figure 12 is the offset module internal frame diagram of embodiment of the invention device.
Embodiment
A kind of method and device of adjusting disk partition under Windows provided by the present invention, described disk partition comprises NTFS subregion, FAT32 subregion, exFAT subregion.For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Wherein, subregion start offset position and amount of capacity adjustment, conclude and get up to have following several situation:
1, the constant partition size adjustment in subregion start offset position (be called for short skew or position), as shown in Figures 2 and 3, subregion C adjusts to the state of Fig. 3 by the state of Fig. 2, subregion have transfer big with turn two kinds of situations down, only showed the big situation of transferring here.
Wherein, the state of Fig. 2: disk has n sector, and the Sector Range of subregion C is [j, k], amounts to k-j+1 sector-size.
The state of Fig. 3: disk has n sector, and the Sector Range of subregion C is [j, k+b], (b〉0).
2, the partition size adjustment that changes of subregion start offset, as Fig. 2, Fig. 4, shown in Figure 5: subregion C adjusts to the state of Fig. 4 or the state of Fig. 5 by the state of Fig. 2, (subregion skew have transfer forward and transfer two kinds of situations backward, only show the situation of transferring forward here).
Wherein, the state of Fig. 2 is: disk has n sector, and the Sector Range of subregion C is [j, k].
The state of Fig. 4 is: disk has n sector, and the Sector Range of subregion C is [j-a, k], (a〉0).
The state of Fig. 5 is: disk has n sector, and the Sector Range of subregion C is [j-a, k+b], (a〉0, b〉0, j〉a).
The embodiment of the invention 1 provides a kind of NTFS partitioned method of adjusting under Windows, as shown in Figure 6, mainly may further comprise the steps:
The operational order of NTFS partition size is adjusted in the affirmation of step S110, reception user input; For example, when the user need adjust C dish subregion, to the storage space of 2 G of C dish subregion increasing, then input strengthens the operational order of 2 G accordingly to C dish subregion.
Step S120, restart the Windows system.After adjusting the instruction input of subregion, restart the Windows system, enter step S130.
Step S130, enter Windows Native pattern, load Windows system partitioning protection mechanism, and load disk sector read-write kernel and drive.
Wherein, the Native pattern is after Windows starts, a running status before the User login, and the adjustment of NTFS subregion operation is finished under this running status in the embodiment of the invention.The small number of programs of having only Windows under this state is in operation, and the read-write operation of disk seldom can significantly reduce the influence to subregion adjustment operation; Be similar to the zone inspections function that Windows carries.
About Windows system partitioning protection mechanism; in disk read-write drives; subregion adjustment operation of the present invention is to have finished under the Native environment; though the Native environment has only a small amount of process down; system partitioning is read and write; but can't the locking system subregion, the read-write of system partitioning is finished by driving.Therefore may have a kind of conflict: the sector of writing by driving during move also is the sector that system is write under the Native environment.If conflict takes place, can cause the damage of file content, and then destroy the Windows system partitioning, cause after the adjustment operation is finished, Windows system originally can't normally start.
For fear of the generation of this situation, adopt a kind of protection mechanism among the present invention, promptly Windows system partitioning protection mechanism is used to protect the Windows system partitioning.Drive by a file system filter, the read-write operation that system under the Native environment carries out is tackled, and be redirected, avoid itself and disk read-write to drive write operation and clash.Because under the Native environment, the read-write operation that system carries out is considerably less, so this redirected protection mechanism, system overhead is considerably less, also convenient the realization.
It is a program that is operated in the Windows kernel that file system filter drives.It is loaded operation when Windows starts, just carry out the function to the interception of Windows system partitioning read-write operation.Any read-write operation to the Windows system partitioning all can pass through the file system filter driver earlier, and file system filter drives can change the read-write operation behavior.For fear of above-mentioned read/write conflict, file system filter drives and all Windows can be changed other local read-write operations to our appointment to the read-write operation of certain sector on the system partitioning.This just guaranteed that each sector only has a program in read-write, avoid reading and writing the problem of concurrency conflict, also just guarantee the integrality of Windows system partitioning data.
Read-write drives about the disk sector among the embodiment; Begin from Windows Vista, Microsoft is for improving the security of Windows system, and Any Application carries out write operation to disk or subregion, and locking disk or subregion are monopolized write operation earlier.Under Windows running environment, Windows has a large amount of processes in operation, continual disk is carried out read-write operation, so restarts in the embodiment of the invention to have forwarded to finish under the Native and adjust operation.
And under Native running environment,, also also have a small amount of process in operation though environment is simple, system partitioning is carried out read-write operation, thereby also can't successfully lock and carry out write operation.Therefore, this embodiment has also realized loading a disk sector read-write driver, because kernel program has higher priority, not disk is read and write by the operating system restriction.So when the content of move, in the time of writing disk, will ask by sending to Kernel Driver in the embodiment of the invention, the disk sector content that will write is finished by this Kernel Driver, thereby realizes the successful write operation of disk sector.
The disk read-write driver also is a program that is operated in the Windows kernel.Its effect is to carry out the disk read-write operation.Behind Vista, Win7, any non-kernel program can't carry out write operation to disk under the condition of not monopolizing the locking disk, and kernel program then is not subjected to any restriction.The a small amount of system process of Windows is also carrying out read-write operation to disk under the Native, can't monopolize.Therefore, when the move content, all disk read-write operations all can allow disk read-write drive and achieve the goal on behalf of reading and writing.
File system filter driving and disk sector read-write driving one are worked like this, can read and write the Windows system partitioning, can avoid read/write conflict again.
Finish, load Windows system partitioning protection mechanism, and after loading the driving of disk sector read-write kernel, enter step S140.
Step S140, the controlled NTFS subregion of judgement are transferred greatly or are turned down, forward step S150 when turning down to, forward step S160 when accent is big to.
Step S150, when being that controlled NTFS subregion is turned down, then need the file of the NTFS subregion turned down is traveled through, so-called traversal (Traversal) is meant along certain bar search pattern, successively once visit is all done once and only done to each node in the tree.And judge that controlled NTFS partitioned file content takies bunch in setting range?
Wherein, bunch be the minimum unit of file system management allocation space, be the set of several sectors.One bunch sector number generally be 2 n power (n is a natural number, n 〉=0, and n<=10).Bunch can directly be interpreted as the sector.
When judge that controlled disk partition file content takies bunch be in setting range with interior then without the mobile disk partitioned file.And bunch be beyond setting range the time when what judge that controlled NTFS partitioned file content takies, then mobile this document content is in setting range, for example, when need are turned down C dish subregion, and this C coils that an original QQ file content takies bunch is beyond setting range, then can in setting range, search free sector, drive by the sector read-write and move this QQ file content in setting range.And bunch occupied information of updating file content, enter step S160.
Step S160, according to adjusted NTFS partition size and document cluster occupied information, bunch occupied information of updating file system; Promptly, directly the scope of NTFS subregion bunch occupied information is transferred greatly, then bunch occupied information of updating file system if transfer big NTFS subregion.
The startup boot sector of step S170, updating file system.
Step S180, the start offset of judging adjusted NTFS subregion taken place variation (reference position of promptly judging adjusted NTFS subregion with regulate before the skew of reference position of NTFS subregion variation has taken place?), when variation has taken place for the start offset of adjusted NTFS subregion, forward step S190 to, otherwise forward step S200 to;
Step S190, according to adjusted NTFS subregion offset variation situation, adjusted NTFS subregion is carried out integral body to be moved, adjusted skew is shifted in skew before adjust: for example, when the skew of adjusted NTFS subregion has reduced by a sector, then increase a sector earlier at adjusted NTFS subregion rear portion, and the sector occupied information of updating file system; All sectors that will increase a the NTFS subregion behind the sector then move forward a sector, then finish the adjustment state.Enter step S200.
Step S200, restart the Windows system once more, enter step S210;
Step S210, normally start Windows, the subregion adjustment is finished.
Below by a concrete Application Example the present invention is adjusted the NTFS partitioned method under Windows and is described in further details:
In this concrete Application Example, adjust preceding subregion state figure as shown in Figure 2, in the state of Fig. 2, disk has n sector, and the Sector Range of subregion C is [j, k], amounts to k-j+1 sector-size.Need adjust C dish position and size now simultaneously, to state shown in Figure 7: disk has n sector, and the Sector Range of subregion C is [j-a, k-b], (a〉0, b〉0, j〉a, k〉b).
Wherein, the variation of subregion C from state shown in Figure 2 to state shown in Figure 77, variation has taken place with size in subregion skew simultaneously.This enforcement will realize by following steps:
At first, can see from Fig. 2, Fig. 7, since from state shown in Figure 2 to state shown in Figure 7, the size of subregion C has reduced by b sector, Sector Range (k-b, k] after adjustment, just do not belong to the scope that takies of subregion C, and when being that controlled NTFS subregion is turned down, then need the file of the NTFS subregion turned down is traveled through.
So in the present embodiment since from state shown in Figure 2 to state shown in Figure 7, the size of subregion C has reduced by b sector, the file of subregion C is traveled through, judge whether sector that file takies belong to scope (k-b, k]; If, just in Sector Range [j, k-b], search free sector, with file content from Sector Range (k-b, k] move to Sector Range [j, k-b].In the process that moves, drive by the sector read-write.The sector occupied information of updating file after the move content; After file traversal is intact, the sector occupied information of updating file system.After all operations was finished, subregion C had become intermediateness as shown in Figure 8.
Wherein, subregion state shown in Figure 8 is: disk has n sector, and the Sector Range of subregion C is [j, k-b], (b〉0, k〉b).
Then, handle the subregion offset variation.In subregion state shown in Figure 7, the skew of subregion C has reduced by a sector at Fig. 2.In conjunction with the characteristics of new technology file system, on the basis of subregion state shown in Figure 88, increase a sector at subregion C rear portion shown in Figure 8 earlier in the embodiment of the invention.Become state as shown in Figure 9: disk has n sector, and the Sector Range of subregion C is [j, k-b+a], (a〉0, b〉0, k〉b).State shown in Figure 9 has increased the size of subregion C, without the move content, as long as the sector occupied information of updating file system.Promptly, directly the scope of NTFS subregion bunch occupied information is transferred greatly if transfer big NTFS subregion, then according to adjusted NTFS partition size and document cluster occupied information, bunch occupied information of updating file system.
At last, in order to adjust subregion skew, only need be on the basis of subregion state shown in Figure 9 in the invention process, all sectors of subregion C are moved forward a sector, can realize final adjustment state, the end-state of subregion C promptly shown in Figure 7.
The state of subregion C carries out size adjustment, reaches the variation that state 9 shown in Figure 9 is offset through state shown in Figure 8 from state shown in Figure 2, promptly is adjustable to the state of the described subregion C of final Fig. 7.In actual mechanical process, because subregion C state shown in Figure 9 just changes the size of subregion, without the move content, the map function of subregion C state shown in Figure 8 and subregion C state 9 shown in Figure 9 can be merged into an operation.
Therefore; the embodiment of the invention provides a kind of method of adjusting disk partition under Windows; provide a kind of under the prerequisite of the existing Windows of protection; adjust the reference position of subregion and the method for amount of capacity; and support Vista/Windows 7 up-to-date operating systems, provide users with the convenient.
Based on the method for adjusting disk partition under Windows of the foregoing description, the embodiment of the invention also provides a kind of device of adjusting disk partition under Windows, and as shown in figure 10, it comprises:
Receiver module 910, the operational order of NTFS partition size is adjusted in the affirmation that is used to receive user's input, and restarts the Windows system; Specifically as mentioned above.
Adjust original upload module 920, be used to restart the Windows system, enter Windows Native pattern, load Windows system partitioning protection mechanism, and load the driving of disk sector read-write kernel; Specifically as mentioned above.
First judge module 930 is used to judge that controlled NTFS subregion transfers greatly or turn down; Specifically as mentioned above.
Turn processing module 940 down, be used for when controlled NTFS subregion is turned down, the file of controlled NTFS subregion is traveled through, judge that controlled NTFS partitioned file content takies bunch whether in setting range; When what judge that controlled NTFS partitioned file content takies bunch is beyond setting range the time, and then mobile this document content is in setting range, and bunch occupied information of updating file content; Specifically as mentioned above.
Update module 950 is used for according to adjusted NTFS partition size and document cluster occupied information bunch occupied information of updating file system; And the startup boot sector of updating file system.
Second judge module 960 is used to judge whether the start offset of adjusted NTFS subregion variation has taken place; Specifically as mentioned above.
Offset module 970 is used for when the start offset of adjusted NTFS subregion variation having taken place, and according to adjusted NTFS subregion offset variation situation, adjusted NTFS subregion is carried out integral body move, and adjusted skew is shifted in the skew before adjusting; Specifically as mentioned above.
Adjust the back and start module 980, be used for the subregion adjustment and finish, normally start Windows, specifically as mentioned above.
As shown in figure 11, the described processing module 940 of turning down further comprises:
Read-write driver element 941 in sector is used for driving mobile this document content in setting range, specifically as mentioned above by the sector read-write.
As shown in figure 12, described offset module 970 further comprises:
Skew increases unit 971, is used for when the skew of adjusted NTFS subregion has reduced by a sector, then increases a the sector and the sector occupied information of updating file system earlier at adjusted NTFS subregion rear portion; Specifically as mentioned above.
Reach unit 972 is used for all sectors of the NTFS subregion behind a sector of increase are moved forward a sector, then finishes the adjustment state, specifically as mentioned above.
In sum, a kind of method and device of under Windows, adjusting disk partition provided by the present invention, be converted into the constant partition size adjustment of reference position by the partition size adjustment that reference position is changed, thereby realize that district location changes the support of adjusting; Vista/Windows 7 times, realize write operation to disk sector by Kernel Driver; At the operation Windows partition; pass through protection mechanism; realize the protection of Windows system partitioning; guarantee the integrality of operating system; and can protect user's data effectively when subregion, it has increased new function to computing machine: can arbitrarily adjust the NTFS subregion under Windows, and have the function of the reference position that changes subregion; guaranteed the security of system behind the subregion, provided users with the convenient.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. a method of adjusting disk partition under Windows is characterized in that described method comprises the steps:
The operational order of disk partition size is adjusted in A, reception;
B, enter Windows Native pattern, load Windows system partitioning protection mechanism, and load disk sector read-write kernel and drive;
C, the controlled disk partition of judgement are transferred greatly or are turned down, forward step D when turning down to, directly the scope of NTFS subregion bunch occupied information are transferred greatly when accent is big, and jump to step e;
D, the file of controlled disk partition is traveled through, judge that controlled disk partition file content takies bunch whether in setting range; When what judge that controlled disk partition file content takies bunch is beyond setting range the time, and then mobile this document content is in setting range, and bunch occupied information of updating file content, enters step e;
E, according to adjusted disk partition size and document cluster occupied information, bunch occupied information of updating file system, and the startup boot sector of updating file system enters step F;
F, judge whether the start offset of adjusted disk partition variation has taken place,, forward step G to, otherwise forward step H to when variation has taken place for the start offset of adjusted disk partition;
G, according to adjusted disk partition offset variation situation, integral body is carried out in adjusted disk partition moves, adjusted skew is shifted in the skew before adjusting, and enters step H;
H, restart the Windows system once more.
2. according to the described method of under Windows, adjusting disk partition of claim 1, it is characterized in that described disk partition comprises NTFS subregion, FAT32 subregion, exFAT subregion.
3. according to the described method of under Windows, adjusting disk partition of claim 1, it is characterized in that the mobile this document content among the described step D also comprises with interior to setting range: drive mobile this document content in setting range by the sector read-write.
4. according to the described method of under Windows, adjusting disk partition of claim 2, it is characterized in that described step G further comprises:
G1, when the skew of adjusted disk partition has reduced by a sector, then increase earlier a sector, and the sector occupied information of updating file system at adjusted disk partition rear portion;
G2, all sectors that will increase a the disk partition behind the sector move forward a sector, then finish the adjustment state.
5. according to the described method of under Windows, adjusting disk partition of claim 1; it is characterized in that; described Windows system partitioning protection mechanism; be used to protect the Windows system partitioning; drive by file system filter; the read-write operation that system under the Native environment carries out is tackled, and be redirected.
6. according to the described method of under Windows, adjusting disk partition of claim 1, it is characterized in that, it is the driver of a kernel state that described disk sector read-write kernel drives, be used for content at move, when writing disk, by sending request for this Kernel Driver, the disk sector content that will write is realized the write operation of disk sector by this Kernel Driver.
7. a device of adjusting disk partition under Windows is characterized in that, comprising:
Receiver module is used to receive the operational order of adjusting the disk partition size;
Adjust the original upload module, be used to enter Windows Native pattern, load Windows system partitioning protection mechanism, and load the driving of disk sector read-write kernel;
First judge module is used to judge that controlled disk partition transfers greatly or turn down;
Turn processing module down, be used for when controlled disk partition is turned down, the file of controlled disk partition is traveled through, judge that controlled disk partition file content takies bunch whether in setting range; When what judge that controlled disk partition file content takies bunch is beyond setting range the time, and then mobile this document content is in setting range, and bunch occupied information of updating file content;
Update module is used for according to adjusted disk partition size and document cluster occupied information, bunch occupied information of updating file system; And the startup boot sector of updating file system.
8. according to the described device of under Windows, adjusting disk partition of claim 7, it is characterized in that it also comprises:
Second judge module is used to judge whether the start offset of adjusted disk partition variation has taken place;
Offset module is used for when the start offset of adjusted disk partition variation having taken place, and according to adjusted disk partition offset variation situation, integral body is carried out in adjusted disk partition move, and adjusted skew is shifted in the skew before adjusting;
Adjust the back and start module, be used for the subregion adjustment and finish, normally start Windows.
9. according to the described device of under Windows, adjusting disk partition of claim 7, it is characterized in that described disk partition comprises NTFS subregion, FAT32 subregion, exFAT subregion;
The described processing module of turning down further comprises:
Read-write driver element in sector is used for driving mobile this document content in setting range by the sector read-write.
10. the described according to Claim 8 device of adjusting disk partition under Windows is characterized in that described offset module further comprises:
Skew increases the unit, is used for when the skew of adjusted disk partition has reduced by a sector, then increases a the sector and the sector occupied information of updating file system earlier at adjusted disk partition rear portion;
The reach unit is used for all sectors of the disk partition behind a sector of increase are moved forward a sector, then finishes the adjustment state.
CN2011101318412A 2011-05-20 2011-05-20 Method and device for regulating disk partitions in Windows Active CN102184248B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011101318412A CN102184248B (en) 2011-05-20 2011-05-20 Method and device for regulating disk partitions in Windows
PCT/CN2011/084260 WO2012159436A1 (en) 2011-05-20 2011-12-20 Method and device for adjusting disk partitions in windows

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101318412A CN102184248B (en) 2011-05-20 2011-05-20 Method and device for regulating disk partitions in Windows

Publications (2)

Publication Number Publication Date
CN102184248A true CN102184248A (en) 2011-09-14
CN102184248B CN102184248B (en) 2013-06-19

Family

ID=44570425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101318412A Active CN102184248B (en) 2011-05-20 2011-05-20 Method and device for regulating disk partitions in Windows

Country Status (2)

Country Link
CN (1) CN102184248B (en)
WO (1) WO2012159436A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012159436A1 (en) * 2011-05-20 2012-11-29 深圳市万兴软件有限公司 Method and device for adjusting disk partitions in windows
WO2013056555A1 (en) * 2011-10-18 2013-04-25 青岛海信移动通信技术股份有限公司 User terminal partitioning method, device and user terminal
CN110109624A (en) * 2019-05-13 2019-08-09 成都易我科技开发有限责任公司 A kind of method and device adjusting NTFS partition
CN113138778A (en) * 2021-04-19 2021-07-20 统信软件技术有限公司 Operating system installation method and computing device
CN113253945A (en) * 2021-07-08 2021-08-13 成都易我科技开发有限责任公司 Disk coiling clustering method and device and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552974B (en) * 2020-03-19 2023-12-05 三六零数字安全科技集团有限公司 USB flash disk encryption and decryption method based on Windows operating system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5675769A (en) * 1995-02-23 1997-10-07 Powerquest Corporation Method for manipulating disk partitions
WO2000055735A1 (en) * 1999-03-15 2000-09-21 Powerquest Corporation Manipulation of computer volume segments
CN101295276A (en) * 2008-06-20 2008-10-29 中国科学院计算技术研究所 Magnetic disk data backup system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216329C (en) * 2002-12-31 2005-08-24 联想(北京)有限公司 Method for establishing guidable partition
CN101477486B (en) * 2009-01-22 2010-08-04 中国人民解放军国防科学技术大学 File backup recovery method based on sector recombination
CN101763296B (en) * 2010-01-14 2012-02-29 常熟理工学院 Fast reverse search restructuring and recovery method of hard disk partition table
CN102184248B (en) * 2011-05-20 2013-06-19 深圳万兴信息科技股份有限公司 Method and device for regulating disk partitions in Windows

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5675769A (en) * 1995-02-23 1997-10-07 Powerquest Corporation Method for manipulating disk partitions
WO2000055735A1 (en) * 1999-03-15 2000-09-21 Powerquest Corporation Manipulation of computer volume segments
CN101295276A (en) * 2008-06-20 2008-10-29 中国科学院计算技术研究所 Magnetic disk data backup system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《电脑爱好者》 20081231 dream 硬盘分区"头名状":Paragon Partition Manager , 第3期 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012159436A1 (en) * 2011-05-20 2012-11-29 深圳市万兴软件有限公司 Method and device for adjusting disk partitions in windows
WO2013056555A1 (en) * 2011-10-18 2013-04-25 青岛海信移动通信技术股份有限公司 User terminal partitioning method, device and user terminal
CN110109624A (en) * 2019-05-13 2019-08-09 成都易我科技开发有限责任公司 A kind of method and device adjusting NTFS partition
CN113138778A (en) * 2021-04-19 2021-07-20 统信软件技术有限公司 Operating system installation method and computing device
CN113253945A (en) * 2021-07-08 2021-08-13 成都易我科技开发有限责任公司 Disk coiling clustering method and device and electronic equipment
CN113253945B (en) * 2021-07-08 2021-09-28 成都易我科技开发有限责任公司 Disk coiling clustering method and device and electronic equipment

Also Published As

Publication number Publication date
CN102184248B (en) 2013-06-19
WO2012159436A1 (en) 2012-11-29

Similar Documents

Publication Publication Date Title
CN102184248B (en) Method and device for regulating disk partitions in Windows
AU2011348835B2 (en) Method and device for implementing memory migration
CN101351799B (en) Managing states with delta pager
US9053019B2 (en) Non-volatile memory device, a data processing device using the same, and a swapping method used by the data processing and non-volatile memory devices
US9244883B2 (en) Reconfigurable processor and method of reconfiguring the same
US20080195833A1 (en) Systems, methods and computer program products for operating a data processing system in which a file system's unit of memory allocation is coordinated with a storage system's read/write operation unit
CN102567136A (en) Backup and recovery method of computer system, device and computer system
US20050086551A1 (en) Memory optimization for a computer system having a hibernation mode
CN104583957A (en) Reordered speculative instruction sequences with a disambiguation-free out of order load store queue
CN101650660A (en) Booting a computer system from central storage
CN104620223A (en) A load store buffer agnostic to threads implementing forwarding from different threads based on store seniority
US8898414B2 (en) Storage devices and methods of driving storage devices
CN104583975A (en) A disambiguation-free out of order load store queue
CN100538641C (en) The method of operation calculation device
CN104823154A (en) Virtual load store queue having dynamic dispatch window with unified structure
CN104583943A (en) A virtual load store queue having a dynamic dispatch window with a distributed structure
CN104583942A (en) A lock-based and synch-based method for out of order loads in a memory consistency model using shared memory resources
CN104583936A (en) A semaphore method and system with out of order loads in a memory consistency model that constitutes loads reading from memory in order
CN104583956A (en) An instruction definition to implement load store reordering and optimization
CN104823168A (en) Method and system for implementing recovery from speculative forwarding miss-predictions/errors resulting from load store reordering and optimization
CN103984565A (en) Method and electronic device of file system prefetching and boot-up method
US11461041B2 (en) Storage device that receives inode address information to reduce external communication overhead
KR20210047359A (en) Zone-based reconfiguration of logical-physical address translation maps
EP2557497A1 (en) Method for improving booting of a computing device
Götze et al. Data management on non-volatile memory: a perspective

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 518057 Guangdong city of Shenzhen province Nanshan District science and Technology Park, a high-tech South TCL building A Building 8 floor

Applicant after: Shenzhen Wondershare Information Technology Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District science and Technology Park, a high-tech South TCL building A Building 8 floor

Applicant before: Shenzhen Wondershare Software Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN WONDERSHARE SOFTWARE CO., LTD. TO: SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 850000 Tibet autonomous region, Lhasa City, New District, west of the East Ring Road, 1-4 road to the north, south of 1-3 Road, Liu Dong building, east of the 8 unit 6, floor 2, No.

Patentee after: Wanxing Polytron Technologies Inc

Address before: 518057 Guangdong city of Shenzhen province Nanshan District science and Technology Park, a high-tech South TCL building A Building 8 floor

Patentee before: Shenzhen Wondershare Information Technology Co., Ltd.

CP03 Change of name, title or address