CN103207816A - Linux system repairing method - Google Patents
Linux system repairing method Download PDFInfo
- Publication number
- CN103207816A CN103207816A CN2013101182623A CN201310118262A CN103207816A CN 103207816 A CN103207816 A CN 103207816A CN 2013101182623 A CN2013101182623 A CN 2013101182623A CN 201310118262 A CN201310118262 A CN 201310118262A CN 103207816 A CN103207816 A CN 103207816A
- Authority
- CN
- China
- Prior art keywords
- disk
- linux
- partition table
- backup
- 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.)
- Pending
Links
Images
Abstract
The invention discloses a Linum system repairing method. The method includes following steps: A, providing a physical server and installing a Linum system, backing up a master boot sector related information onto other systems or equipment; B, zero-setting a partition table of a system disc to simulate a scene where a Linux server in a production environment may damage the partition table duo to virus or accidental shutdown of the system; and C, restoring an operation system and disc data by repairing the partition table of the system disc. By the Linux system repairing method, failure of the Linux system can be effectively repaired, so that system safety and data safety of the Linux server are guaranteed, restoring time of the Linux system is shortened, and usability of the Linux system is improved. The Linum system repairing method is suitable for Linux systems such as RedHat, Debian, SUSE and Gentoo.
Description
Technical field
The present invention relates to computing machine and areas of information technology, be specifically related to a kind of linux system restorative procedure.
Background technology
Linux is with characteristics such as its free, good security, reliable security of system and openings, won the favor of vast enterprise and be extensive use of, but the safety of platform is not equal to the safety of data, Linux in use, owing to reasons such as unusual shutdown or infection viruses, cause hard disk DPT(Disk Partition Table, i.e. partition table) damage, thereby loss of data or damage in the disk cause tremendous loss.
MBS(Master Boot Sector, i.e. disk Master boot sector), the effect of MBS checks that DPT is whether correct and to differentiate which subregion be bootable subregion, and when EOP (end of program) the start-up routine of this subregion is called in internal memory and carried out.Boot load(start-up code), DPT and subregion end mark please refer to shown in Figure 1ly, MBS is made of three parts:.
DPT has recorded the quantity of subregion, and file system type, initial, end sector reach information such as whether becoming active partition.If because virus, maloperation or use subregion software cause partition table to damage, system can't start, can't the reading disk data.At this moment, if want to make system to reach the standard grade again, need reinstall operating system, reinstall application software, backed up data before importing again, and do security hardening, often need to spend the time of a few hours.If there be not Backup Data early stage, gently then cause certain economic loss, heavy then will allow enterprise be absorbed in the bankruptcy crisis.
This shows that MBS is recording the relevant information of hard disk itself and the size and location information of each subregion of hard disk, is the important entrance of data message, and after main bootstrap program, the DPT of system disk damage, system can't start, and data also can't read.
Summary of the invention
For addressing the above problem, the object of the present invention is to provide a kind of linux system restorative procedure, can effectively repair the linux system fault, guarantee security of system and data security.
For achieving the above object, technical scheme of the present invention is:
A kind of linux system restorative procedure comprises the steps:
A, a physical server is provided and linux system is installed, backup device disk Master boot sector (Master Boot Sector) relevant information is to other system or equipment;
B, the partition table zero setting of system disk, may and cause the ruined scene of partition table because of the unexpected shutdown of virus or system with the Linux server of imitation in the production environment;
C, the partition table by the repair system disk are with recovery operation system and data in magnetic disk.
Further, recover before the hard disk partition table, need the information of backup partition table earlier, generally use the USB external equipment to come the partition table of backup host hard disk, insert USB device at main frame, the current disk unit of the system of checking.
Further, repairing the disk partition table comprises the steps:
The USB device of backup before the carry;
Repair the partition table of disk unit sda by backup file;
Confirm that disk partition is resumed, can show disk partition information.
Linux system restorative procedure of the present invention can be repaired the linux system fault effectively, security of system and the data security of Linux server have not only been guaranteed, shortened linux system release time simultaneously, improve the linux system availability, be applicable to linux systems such as Red Hat, Debian, SUSE and Gentoo.
Description of drawings
The structural representation of Fig. 1 disk Master boot sector;
Fig. 2 schematic flow sheet of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
Please refer to shown in Figure 2ly, a kind of linux system restorative procedure comprises the steps:
A, a physical server is provided and linux system is installed, backup device disk Master boot sector (Master Boot Sector) relevant information is to other system or equipment;
B, the partition table zero setting of system disk, may and cause the ruined scene of partition table because of the unexpected shutdown of virus or system with the Linux server of imitation in the production environment;
C, the partition table by the repair system disk are with recovery operation system and data in magnetic disk.
The specific implementation process is as follows:
Prepare the main frame that (SuSE) Linux OS is housed, at first check the current disk unit of system, and use the USB external equipment to come backup host system disk Master boot sector; Secondly, with the zero setting of system disk partition table, make the system can not normal boot, data can't read, and simulation Linux server is because the unexpected shutdown of virus or system and cause the ruined scene of partition table; Then, Red Hat Linux 6.1 fixing discs are put into main frame, the USB device of backup is restarted main frame afterwards before inserting simultaneously, and selecting CD-ROM is first guiding device, starts the partition table of repairing disk unit SDA; Whether at last, restarting the host acknowledgement system can normal boot, and data can normally read.
Wherein, recover before the hard disk partition table, need the information of backup partition table earlier, generally use the USB external equipment to come the partition table of backup host hard disk, insert USB device at main frame, the current disk unit of the system of checking.In the embodiment of the invention, the function that adopts is as follows:
[root@ray /]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xaa2afde7
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 51202047 25497600 7 HPFS/NTFS/exFAT
/dev/sda3 51202048 71682047 10240000 7 HPFS/NTFS/exFAT
/dev/sda4 71682048 976773167 452545560 5 Extended
/dev/sda5 71684096 72093695 204800 83 Linux
/dev/sda6 72095744 235935743 81920000 83 Linux
Disk /dev/sdb: 2002 MB, 2002780160 bytes
38 heads, 38 sectors/track, 2708 cylinders, total 3911680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6b736964
Device Boot Start End Blocks Id System
/dev/sdb1 2048 3911679 1954816 6 FAT16
The function of carry USB device is:
[root@ray /]# mount /dev/sdb1 /run/media/
And the function of backup host system disk Master boot sector is:
[root@ray /]# dd if=/dev/sda of=/mnt/sda.mbr bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000777948 s, 658 kB/s
The zero setting of system disk partition table, the function that the ruined phenomenon of simulation partition table is taked is as follows:
[root@ray /]# dd if=/dev/zero of=/dev/sda bs=1 count=64 skip=446
64+0 records in
64+0 records out
64 bytes (64 B) copied, 0.00160668 s, 39.8 kB/s
Check the partition information on the host disk sda, because partition table zero setting can not show the partition information of disk this moment, concrete function is as follows:
[root@ray /]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xaa2afde7
Device
Described step 12: it is specific as follows to repair the disk partition table:
At first, the USB device of backup before the carry, the function that adopts is as follows:
bash-4.1# mount /dev/sdb1 /usb
bash-4.1# ls /usb
lost+found sda.mbr
Then, repair the partition table of disk unit sda by backup file, the function that adopts is as follows:
bash-4.1# dd if=/usb/sda.mbr of=/dev/sda bs=1 count=64 skip=446
64+0 records in
64+0 records out
64 bytes (64 B) copied, 0.038358 s, 4.6 kB/s
At last, confirm that disk partition is resumed, can show disk partition information.
The present invention has repaired the linux system fault effectively by repairing MBS (Master Boot Sector, i.e. disk Master boot sector) relevant information, has improved security of system and data security.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (3)
1. a linux system restorative procedure is characterized in that, comprises the steps:
A, a physical server is provided and linux system is installed, backup device disk Master boot sector relevant information is to other system or equipment;
B, the partition table zero setting of system disk, may and cause the ruined scene of partition table because of the unexpected shutdown of virus or system with the Linux server of imitation in the production environment;
C, the partition table by the repair system disk are with recovery operation system and data in magnetic disk.
2. linux system restorative procedure as claimed in claim 1, it is characterized in that: recover before the hard disk partition table, need the information of backup partition table earlier, generally use the USB external equipment to come the partition table of backup host hard disk, insert USB device at main frame, the current disk unit of the system of checking.
3. linux system restorative procedure as claimed in claim 2 is characterized in that, repairs the disk partition table and comprises the steps:
The USB device of backup before the carry;
Repair the partition table of disk unit sda by backup file;
Confirm that disk partition is resumed, can show disk partition information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101182623A CN103207816A (en) | 2013-04-08 | 2013-04-08 | Linux system repairing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101182623A CN103207816A (en) | 2013-04-08 | 2013-04-08 | Linux system repairing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103207816A true CN103207816A (en) | 2013-07-17 |
Family
ID=48755045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101182623A Pending CN103207816A (en) | 2013-04-08 | 2013-04-08 | Linux system repairing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103207816A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104035837A (en) * | 2013-10-29 | 2014-09-10 | 浪潮电子信息产业股份有限公司 | Method for backing up isomorphic/isomerous UNIX/Linux host on line |
CN105117259A (en) * | 2015-09-07 | 2015-12-02 | 浪潮(北京)电子信息产业有限公司 | Installation method and system of linux operating system |
CN105138431A (en) * | 2015-08-27 | 2015-12-09 | 厦门市美亚柏科信息股份有限公司 | Linux system back-up and restoring method |
CN106844105A (en) * | 2017-01-26 | 2017-06-13 | 郑州云海信息技术有限公司 | A kind of Linux system backup and reduction method under USB flash disk guiding |
CN107402849A (en) * | 2017-07-31 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of method of backup and recovery based on K UX systems |
CN107423157A (en) * | 2017-07-31 | 2017-12-01 | 北京雷石天地电子技术有限公司 | A kind of hard disk hanging method, module and operating system |
CN107632774A (en) * | 2016-07-13 | 2018-01-26 | 深圳市大迈科技有限公司 | Repair the method and device of disk carry |
CN113110955A (en) * | 2021-04-15 | 2021-07-13 | 山东英信计算机技术有限公司 | System disk repair method, storage medium and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010054130A1 (en) * | 2000-06-20 | 2001-12-20 | Francois Cunchon | Computing machine with hard stop-tolerant disk file management system |
CN1549131A (en) * | 2003-05-06 | 2004-11-24 | 联想(北京)有限公司 | Repair method for computer operation system |
CN102541685A (en) * | 2011-11-16 | 2012-07-04 | 中标软件有限公司 | Linux system backup method and Linux system repair method |
CN102567136A (en) * | 2010-12-15 | 2012-07-11 | 研祥智能科技股份有限公司 | Backup and recovery method of computer system, device and computer system |
CN102819469A (en) * | 2012-07-04 | 2012-12-12 | 北京奇虎科技有限公司 | Method and system for recovering operating system |
CN102955706A (en) * | 2011-08-30 | 2013-03-06 | 比亚迪股份有限公司 | Installing method and boot loading method for dual operation system |
-
2013
- 2013-04-08 CN CN2013101182623A patent/CN103207816A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010054130A1 (en) * | 2000-06-20 | 2001-12-20 | Francois Cunchon | Computing machine with hard stop-tolerant disk file management system |
CN1549131A (en) * | 2003-05-06 | 2004-11-24 | 联想(北京)有限公司 | Repair method for computer operation system |
CN102567136A (en) * | 2010-12-15 | 2012-07-11 | 研祥智能科技股份有限公司 | Backup and recovery method of computer system, device and computer system |
CN102955706A (en) * | 2011-08-30 | 2013-03-06 | 比亚迪股份有限公司 | Installing method and boot loading method for dual operation system |
CN102541685A (en) * | 2011-11-16 | 2012-07-04 | 中标软件有限公司 | Linux system backup method and Linux system repair method |
CN102819469A (en) * | 2012-07-04 | 2012-12-12 | 北京奇虎科技有限公司 | Method and system for recovering operating system |
Non-Patent Citations (1)
Title |
---|
祝珍泉: ""Linux 灾难恢复"", 《IBM HTTP://WWW.IBM.COM/DEVELOPERWORKS/CN/LINUX/L-CN-DISA-RECOV/》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104035837A (en) * | 2013-10-29 | 2014-09-10 | 浪潮电子信息产业股份有限公司 | Method for backing up isomorphic/isomerous UNIX/Linux host on line |
CN105138431A (en) * | 2015-08-27 | 2015-12-09 | 厦门市美亚柏科信息股份有限公司 | Linux system back-up and restoring method |
CN105117259A (en) * | 2015-09-07 | 2015-12-02 | 浪潮(北京)电子信息产业有限公司 | Installation method and system of linux operating system |
CN107632774A (en) * | 2016-07-13 | 2018-01-26 | 深圳市大迈科技有限公司 | Repair the method and device of disk carry |
CN106844105A (en) * | 2017-01-26 | 2017-06-13 | 郑州云海信息技术有限公司 | A kind of Linux system backup and reduction method under USB flash disk guiding |
CN107402849A (en) * | 2017-07-31 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of method of backup and recovery based on K UX systems |
CN107423157A (en) * | 2017-07-31 | 2017-12-01 | 北京雷石天地电子技术有限公司 | A kind of hard disk hanging method, module and operating system |
CN107402849B (en) * | 2017-07-31 | 2020-11-27 | 苏州浪潮智能科技有限公司 | Backup and recovery method based on K-UX system |
CN113110955A (en) * | 2021-04-15 | 2021-07-13 | 山东英信计算机技术有限公司 | System disk repair method, storage medium and device |
CN113110955B (en) * | 2021-04-15 | 2022-12-27 | 山东英信计算机技术有限公司 | System disk repair method, storage medium and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103207816A (en) | Linux system repairing method | |
US10296423B2 (en) | System and method for live virtual incremental restoring of data from cloud storage | |
US20090222496A1 (en) | System and Method for Virtualizing Backup Images | |
CN104216793A (en) | Application program backing up and restoring method and device | |
CN107918568B (en) | Method for preventing Linux system from failing to restart | |
US9823976B2 (en) | Optimization to permit block based incremental backup across system reboot or crash | |
CN104751062A (en) | Method and device improving operation system reliability | |
CN105022678A (en) | Data backup method and apparatus for virtual machine | |
WO2017143843A1 (en) | Metadata recovery method and device | |
CN111258666A (en) | Reading method and device of computer file, computer system and storage medium | |
US9256372B2 (en) | Storage device and method of controlling storage device | |
CN102495812A (en) | Hard disk data protection and recovery method of Linux platform | |
CN102207905A (en) | System recovery method, storage media controller and storage system | |
US20160124816A1 (en) | Computing device and method for recovering bios of computing device | |
CN103559059A (en) | Quick medium-free upgrading method for Linux system | |
CN102262589A (en) | Application server for realizing copying of hard disc driver, and method | |
KR100853941B1 (en) | Multimedia storage device and data recovering method of the device | |
CN110795155B (en) | System starting method and device, electronic equipment and storage medium | |
US9665310B2 (en) | Storage control apparatus, storage control system, and control method | |
CN105893172A (en) | Hard disk data recovery method and system | |
US20160004607A1 (en) | Information processing apparatus and information processing method | |
CN102831032A (en) | Repair system and method for master boot record of hard disc | |
CN111858175A (en) | Method and equipment for backing up cloud platform data based on mobile storage device | |
US9971659B1 (en) | Memory programming providing corruption protection | |
CN101071396A (en) | Method for setting system reset reason monitoring information and monitoring method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130717 |
|
WD01 | Invention patent application deemed withdrawn after publication |