Use GHOST to create a UNIX System Backup System

Source: Internet
Author: User
Use GHOST to create a UNIX System Backup System-general Linux technology-Linux technology and application information. The following is a detailed description. During the sco unix operating system installation, when partitioning, the system automatically retains 65 channels for startup and diagnosis, instead of allocating them to UNIX partitions. If you use GHOST to copy the disk, the 65 channels are automatically added to the UNIX partition, which causes some applications to fail. Therefore, in practice, we should use another method provided by GHOST for cloning: partition to partition.
1. Connect the source disk of the sco unix System and the blank target disk as the second hard disk.
2. First, partition the target disk to make it exactly the same as the partition in the source disk. There are two specific methods:
(1.exe use aefdisk.exe. It is a disk partitioning program under DOS. It supports all partition formats and can create and delete any partition formats currently known. Run the Aefdisk command after booting the system with the DOS disk. If you want to create a gb sco unix partition on the second hard disk and activate the boot partition, enter the following command:
Aefdisk 2/pri: 1200: 63: 1 (2 indicates the second hard disk, 63 indicates the UNIX partition, and 1 indicates the Partition Number)
Aefdisk 2/activate: 1 (activate boot partition)
(2) Start the system as Root and enter the UNIX System of the source disk. type the Fdisk command to operate the/dev/rhd00 device, that is, the source disk. Display the partition table by number 1, and write down the start position and end position of the UNIX partition. Then return to the command status and install the second hard disk.
3. Use one of the above (1) and (2) Methods to complete the partition and then shut down. Start the computer and run GHOST on the DOS disk. Select Partition to Partition under Local. Select the source partition and target partition with the mouse. GHOST will give a warning, confirm it again, and press the "Yes" button to start the copy process.
Use GHOST again
Step 1: Use GHOST. GHO Image File
1. The hard disk in the DOS partition is connected to the source disk of the sco unix system to be backed up on the same machine. The former is used as the second hard disk and used to store image files.
2. start the machine, boot it with a DOS disk, run GHOST (version 5.0 or later), select "Local"> "Partition"> "To Image ", specify the disk and file name of the source partition and the image file respectively (such as Unix. gho), select the high compression ratio and confirm, then GHOST starts to work.
Step 2: Use GHOST to restore the backup system. Example:
1. the sco unix partition in the source disk of the backup system is 1.2 GB (if you do not know the size, you can see the size of the source UNIX partition from the generated image file description when running GHOST ), create a 1.2 gb sco unix partition on the target disk and activate the boot partition (same as above ).
2. Connect the hard disk with an image file (assuming Unix. gho) to the target disk and use the target disk as the second hard disk. Boot the system with a DOS disk and run GHOST. Select "Local"> "Partition"> "From Image" respectively, and specify the Unix Image file name. gho and the target partition are 1.2 GB, and GHOST starts to restore the image file.
Use dd AND cpio commands
This method can be used to copy and create UNIX system backups between hard disks with different UNIX partition sizes. The above GHOST requires that the UNIX partition of the target disk is larger than the source disk capacity or the two are equal, however, this method is slower than using GHOST.
1. Connect the source disk of the sco unix System and the blank target disk as the second hard disk. Start the system, enter the Root user of the source disk, add a hard disk rhd10, perform UNIX partitioning on the target hard disk as needed, and activate the boot partition (same as above ), the following operations are performed in the SCO Open Server Release 5.0.4 environment.
2. Run the dd command to swap the sco unix hard disk Bootstrap program from the source disk to the target disk.
# Dd if =/dev/hd0a of =/dev/hdla bs = 1024 count = 40
3. Use the divvy command to create an installable File System on the target disk.
# Divvy-im/dev/rhdla
4. Run the divvy command to view and modify the internal partition name.
# Divvy/dev/rhdla
5. Install the target boot file system on the source disk and copy its content.
# Mount/dev/aa/mnt
# Cd/stand
# Find.-print | cpio-pdumv/mnt
# Umount/mnt
6. Install the target root file system on the source disk and copy its content.
# Mount/dev/cc/mnt
# Find/-mount print | cpio-pdumv/mnt
7. Create a file system installation point in the target root file system.
# Cd/mnt
# Mkdir mnt stand; chmod 755 mnt stand; chgrp bin mnt stand
# Umount/mnt
In this way, the UNIX system is successfully backed up. Note the following when using this method:
(1) The UNIX partition space created in the target hard disk should be able to accommodate the system in the UNIX partition of the source disk.
(2) Some encryption software may include encryption information in the primary Boot Sector, boot block, and super block. The copied software may not work properly and should be installed.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.