CN102339244A - System backup and restoration technology based on virtual partition - Google Patents

System backup and restoration technology based on virtual partition Download PDF

Info

Publication number
CN102339244A
CN102339244A CN2010102396753A CN201010239675A CN102339244A CN 102339244 A CN102339244 A CN 102339244A CN 2010102396753 A CN2010102396753 A CN 2010102396753A CN 201010239675 A CN201010239675 A CN 201010239675A CN 102339244 A CN102339244 A CN 102339244A
Authority
CN
China
Prior art keywords
sector
backup
disk
partition
subregion
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.)
Pending
Application number
CN2010102396753A
Other languages
Chinese (zh)
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.)
SHANGHAI ZHISHUI SOFTWARE TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI ZHISHUI SOFTWARE TECHNOLOGY 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 SHANGHAI ZHISHUI SOFTWARE TECHNOLOGY Co Ltd filed Critical SHANGHAI ZHISHUI SOFTWARE TECHNOLOGY Co Ltd
Priority to CN2010102396753A priority Critical patent/CN102339244A/en
Publication of CN102339244A publication Critical patent/CN102339244A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a system backup and restoration technology based on a virtual partition. In the invention, during backup of a system partition, additional partitions and continuous disk space are not needed, so that system backup operation is extremely convenient. In the technology, disk idle sectors are searched from the tail part of a data storage partition which is specified by a user or the tail part of a disk to the front side automatically; in order to prevent individual small partitions on the tail part from being completely occupied, the idle sector occupied by each partition is not more than 80 percent of a partition idle sector according to a principle, clusters corresponding to the sectors are marked as bad clusters, respective sector distribution sheets are established, and backup files are stored, so that the problems of necessity of a second sector for backup and frequently insufficient disk space are solved, and the backup files are difficultly damaged by manual labor or viruses; simultaneously, a disk startup sector is modified, and a restoring system partition is selected before system loading when a system is started.

Description

A kind of system backup and reduction technique based on virtual partition
Technical field:
The present invention relates to backup of a kind of computer disk subregion and recovery technology, especially to the transparent backup and the recovery of operating system.The present invention need not enter system in the time of recovery system, also do not need boot disk, directly before loading system, adds startupoptions, and acquiescence is a start-up system, can select recovery system here.
Background technology:
Existing a lot of about the invention of system backup, characteristics are respectively arranged, but panesthesia not very perfect; Not being that the part operation system version is not supported, is exactly often to point out hard drive space to back up subregion inadequately or not, and when recovering; Some needs boot disk, and some need enter system and select to recover just passable, though some invention is can start through BIOS to recover; But complicated operation, and will on disk, set up and hide subregion, the system partitioning list structure revised.
The present invention has adopted the virtual partition technology first, makes backup and recovery become very convenient and practical.
Summary of the invention:
The present invention adopts a kind of based on the virtual partition standby system, need not other subregion, also need not continuous disk space; Be very easy to system backup operation, the present invention is through from the store data subregion afterbody of user's appointment or search for the disk free sector forward from the disk afterbody automatically, for fear of the indivedual little subregions of afterbody by absorb; Principle is that each subregion utilizes free sector to be no more than 80% of this subregion free sector; These sectors corresponding bunch be labeled as bad bunch, sets up the sector allocation table of oneself, the preservation backup file; So not only thoroughly solved the not enough difficult problem of disk space that backup must have second subregion and often run into; And the file of backup also is not easy by craft or virus damage, revises disk simultaneously and starts the sector, adds startupoptions; In the time of system start-up, selective reduction system partitioning before loading system;
1, system backup process;
Fig. 1 is the system backup process flowchart.
As shown in the figure, beginning standby system subregion (1) detects earlier the system (2) that whether backed up, as just not beginning standby system, otherwise will select whether to continue backup, perhaps withdraws from, will be earlier front Backup Data deletion (4) as continuing backup.
To calculate the size (5) that needs Backup Data when beginning to back up earlier; Select then to backup to specified partition or have system to deposit (6) automatically; Select specified partition to create virtual partition header (7) at the afterbody of this subregion; Begin to search for forward free sector (9) at the subregion afterbody then, the free sector of distributing to virtual partition can not surpass 80% of the current free sector of this subregion, if current subregion free sector not enough (11); Will begin to distribute from the disk afterbody, otherwise just directly backup completion (13).
If begin to distribute virtual partition from the disk afterbody, there are not enough free sector can use (12) at last, then abandon backup, the backup that logs off is like the enough just directly backup completion (13) in space.
2, virtual partition structural information
The virtual partition header structure:
backupasm_boot?struc
Backinfo_mark db ' h11 '; Sign
Backinfo_disk db 80h; Which piece disk
Backuptype db 0; 0 backup 1 is backed up 2 again and is recovered
Backinfo_status db 0; 0 begins operation, and 1 is operating, and 3 deletion actions are accomplished in 2 operations
Boot_startpos dd 0; Virtual partition first sector position
Backinfo_tnums dd 0; The sector number that needs backup
Backinfo_tnums1 dd 0; The sector number that has backed up
Backinfo_t1 dd 0; The evil idea that has backed up bunch marked index sector number
Backinfo_t2 dd 0; The new and old sector index sector number that has backed up
Backinfo_sval dd 0; Back up the successfully time
Backinfo_soupos dd 0; The partition data deposit position that backs up
Backinfo_desitem_type db 0; Deposit the type of virtual partition
Backinfo_desitem_item db 50dup (0); The partitioned file system information
Backinfo_main_offset dw 0; Virtual sectors guiding main code is deposited the place
Backinfo_main_len db 0; Take sector length
Backinfo_mbr_offset dw 0; Original system MBR MBR
Backinfo_mbr_len db 1; Take sector length
Backinfo_newmbr_offset dw 0; New MBR
Backinfo_newmbr_len db 1; Take sector length
Backinfo_backup_offset dw 0; The standby system code is deposited the place
Backinfo_backup_len db 0; Take sector length
Backinfo_restory_offset dw 0; The recovery system code is deposited the place
Backinfo_restory_len db 0; Take sector length
backinfo_pagefile_offset dw?0
backinfo_pagefile_len db?1
backupasm_boot?ends
Except that keeping above structure, also have following information in first sector of virtual partition:
The sector begin chain of virtual partition: the institute that keeps this virtual sectors has living space;
The evil idea that has backed up bunch marked index sector begin chain; Make a sector index chain preservation to all spaces that have been labeled as bad bunch;
The new and old sector index sector begin chain that has backed up: all original sector datas that will back up with newly deposit sector position and make index sector chain and preserve.
3, system reducing step
Start the sector through revising disk in the time of system backup, in the time of system start-up, selective reduction system partitioning before loading system can be accomplished restoring operation.

Claims (2)

1. system backup and reduction technique based on a virtual partition is characterized in that, comprising:
The present invention adopts a kind of based on virtual partition standby system subregion; Need not other subregion, also need not continuous disk space, be very easy to the system backup operation; The present invention is through from the store data subregion afterbody of user's appointment or search for the disk free sector forward from the disk afterbody automatically; By absorb, principle is that each subregion utilizes free sector to be no more than 80% of this subregion free sector for fear of the indivedual little subregions of afterbody, these sectors corresponding bunch be labeled as bad bunch; Set up the sector allocation table of oneself; Preserve backup file, so not only thoroughly solved the not enough difficult problem of disk space that backup must have second subregion and often run into, and the file of backup is not easy also by craft or virus damage.
2. virtual partition as claimed in claim 1 is characterized in that, comprising:
Need not revise disk partition information, just come out a sector branch part idle in one or more subregions, simultaneously corresponding bunch being labeled as badly bunch in this part sector; In this part sector, create the sector allocation table, construct the virtual partition information of oneself, preserve recovery routine and the system backup information of starting; Whole process need not be revised disk partition table information; And virtual partition is other program inaccessibles, avoided the destruction of artificial damage and virus, and is safer.
CN2010102396753A 2010-07-29 2010-07-29 System backup and restoration technology based on virtual partition Pending CN102339244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102396753A CN102339244A (en) 2010-07-29 2010-07-29 System backup and restoration technology based on virtual partition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102396753A CN102339244A (en) 2010-07-29 2010-07-29 System backup and restoration technology based on virtual partition

Publications (1)

Publication Number Publication Date
CN102339244A true CN102339244A (en) 2012-02-01

Family

ID=45514986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102396753A Pending CN102339244A (en) 2010-07-29 2010-07-29 System backup and restoration technology based on virtual partition

Country Status (1)

Country Link
CN (1) CN102339244A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436734A (en) * 2017-07-28 2017-12-05 郑州云海信息技术有限公司 The logical partition implementation method and device of a kind of solid-state disk
CN113495806A (en) * 2020-03-20 2021-10-12 宇龙计算机通信科技(深圳)有限公司 Method, device, storage medium and terminal for recovering user data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1109979C (en) * 1999-01-12 2003-05-28 李增胜 Method for quick protection and recovery for hard disc data of computer
CN1831701A (en) * 2005-03-11 2006-09-13 北京共创开源软件有限公司 Operation system protection method based on virtual file system
CN1858714A (en) * 2005-11-07 2006-11-08 珠海金山软件股份有限公司 Method for preventing and resolving data from lossing
KR20090006928A (en) * 2007-07-13 2009-01-16 주식회사 가자아이 Method for restoration and backup of computer system
CN101546295A (en) * 2008-03-24 2009-09-30 上海梅山钢铁股份有限公司 Method for backing up and restoring data based on computer hard disc partitions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1109979C (en) * 1999-01-12 2003-05-28 李增胜 Method for quick protection and recovery for hard disc data of computer
CN1831701A (en) * 2005-03-11 2006-09-13 北京共创开源软件有限公司 Operation system protection method based on virtual file system
CN1858714A (en) * 2005-11-07 2006-11-08 珠海金山软件股份有限公司 Method for preventing and resolving data from lossing
KR20090006928A (en) * 2007-07-13 2009-01-16 주식회사 가자아이 Method for restoration and backup of computer system
CN101546295A (en) * 2008-03-24 2009-09-30 上海梅山钢铁股份有限公司 Method for backing up and restoring data based on computer hard disc partitions

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436734A (en) * 2017-07-28 2017-12-05 郑州云海信息技术有限公司 The logical partition implementation method and device of a kind of solid-state disk
CN113495806A (en) * 2020-03-20 2021-10-12 宇龙计算机通信科技(深圳)有限公司 Method, device, storage medium and terminal for recovering user data

Similar Documents

Publication Publication Date Title
US10911065B2 (en) Computer system and method including selectively compressing data files and directories based on an operator indication and representing the amount of available free space
CN104166606B (en) File backup method and main storage device
CN101923448B (en) Method for reading and writing conversion layer of NAND flash memory
CN107111450A (en) The disk partition splicing and equilibrium again carried out using partition table
CN105938457B (en) Filter method, device and the data reading system of data
CN102439565B (en) Method and device for starting recovery
CN103164490B (en) A kind of efficient storage implementation method of not fixed-length data and device
CN102707990A (en) Container based processing method, device and system
CN102779080B (en) Method for generating snapshot, method and device for data recovery by using snapshot
CN106484323A (en) A kind of loss equalizing method of solid-state storage and system
CN107919977B (en) Online capacity expansion and online capacity reduction method and device based on Paxos protocol
JP2011039805A5 (en)
US20210103502A1 (en) Recovery of In-Memory Databases From Log Records
CN101266565A (en) Data backup process and device
CN109918234B (en) Metadata recovery method, device, equipment and medium based on SSD
CN111857890B (en) Service processing method, system, device and medium
JP2014521176A (en) Index construction method, search method, search device, and search system
CN102004769A (en) File management method, equipment and memory system
CN103268270A (en) Method and device for managing snapshot
CN101206595A (en) Method for snapping magnetic disc using snap index
CN105573788B (en) The method and apparatus of patch processing and the method and apparatus for generating patch
CN102339244A (en) System backup and restoration technology based on virtual partition
CN102955787A (en) Using method for file directory table, file writing method and main circuit board, CPU (central processing unit) and external storage applying same
CN103544069A (en) Fault-tolerant multiple startup system disk created with one area for multiple purposes
CN109213453A (en) A kind of disk management method and relevant apparatus

Legal Events

Date Code Title Description
DD01 Delivery of document by public notice

Addressee: Hu Zhishui

Document name: Notification of Passing Examination on Formalities

C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120201