Use Linux Backup Windows

xiaoxiao2021-03-06  50

Use the powerful backup tool TAR program under Linux to back up Windows, not only easy to operate, backup, restore speed, but also compress. As long as the Linux partition space is large enough, how much backed up is to be backed up. According to my personal test, TAR can compress the original file to the original 62% ~ 64%, and more importantly, save the backup on the Linux partition and do not have to worry about viral infection. The premise used to use this method is to install Linux and Windows dual operating systems, and there is enough space under the Linux partition to save backups (Linux must operate smoothly and well must have idle spaces in the size of 20% to 30%. I Use the Red Hat 7.3 reserved space to 4GB). I suggest that it is best to install Windows and Linux immediately back up Windows. Use Linux backups Windows specific operations as follows. Create a Windows and Backup Directory first start from Linux, then go to Linux virtual terminal CXTERM, KONSOLE, or RXVT, run the following code in the root directory:

#mkdir / MNT / Windows

Create a Windows Mount Directory:

#mkdir ./backup

Note that these two operations are performed in the root directory. Then create a backup file directory, "./" means the current directory. Mount Windows partitions run the following code to mount the Windows partition:

#mount -t vfat / dev / hda1 / mnt / window

Among them, the -t parameter of MOUNT is to specify the type of the desired mounted file system, and the vfAT represents the FAT32 of Windows to be hosted, and / dev / hda1 is the partition where Windows is located, and can be determined according to the actual situation of the system. Go to / MNT / Windows directory run the following code to enter the / mnt / windows directory:

#CD / MNT / Windows

Use the LS -LF command to see if this directory has a file and directory of Windows. If you don't see it, you can return to the / root directory to re-attach it. This step is mainly to verify that the file system is well hung. Note that the file system to be hung must have / root privileges. Backup system runs the following code backup system:

#CD / MNT / WINDOWS /

#tar zcvf ./backup/windows.tar.gz. /*

At this time, detailed backup information will appear on the virtual terminal, and the backup end will see the red Windows.tar.gz backup file in the / backup directory. At this time, look at it a lot than the original file. Restore Backup Repeat The first three steps into the / mnt / windows directory delete the original system:

#RM -RF. /

This reduces the system:

# TAR ZXVF / ROOT / BACKUP/Windows.tar.gz

Note that the restore path must be correct. You can go to Windows backup after restart. After many trials, this method is more reliable, but sometimes some "small things", such as "Show Desktop" (or other taskbar shortcuts) and "My Pictures" in the "My Pictures". Back up shortcuts under Windows / Application Data / Microsoft / Internet Explorer / Quick LANCH, in advance, back up images under My Documents / My Pictures, and then resolve the problem after recovering.

转载请注明原文地址:https://www.9cbs.com/read-82332.html

New Post(0)