英文wiki
http://www.mepis.org/docs/en/index.php?title=G4l
需要备份的母盘最好先清空无用数据
Tips and tricks
- Before making a raw backup image, zero out the free space on the drive. This will help save space, bandwidth, and time during the imaging process. How you do this depends on the OS you are imaging:
- On Linux, you create a large file full of zeros that fills up the empty space on the drive. Then delete it. The commands are:
dd if=/dev/zero of=zerofile.0 || rm zerofile.0
- On windows, use the "blank6.exe" program supplied on the G4L disc. You run it at a command prompt like this:
D:\blank6.exe c:\
- On Linux, you create a large file full of zeros that fills up the empty space on the drive. Then delete it. The commands are:
Creating or Restoring a drive image locally
- Boot to the G4L CD. Select the newest kernel.
- Once everything loads, you will see some disclaimers. Hit "enter" until you get to a command prompt.
- Type "g4l" and hit enter to run G4L. Select "YES" to accept the disclaimer.
- Select "RAW Mode", then "Local Use"
- Select "Pick drive", then choose the drive where the image file will be saved (or where it is located, if you are restoring)
- Select "config filename".
- If you are backing up, enter the name of the image file you will create.
- If you are restoring, enter the name of the image file you want to restore.
- Begin the operation
- If you are backing up a drive/partition, select "backup". Choose the drive or partition to backup.
- If you are restoring, select "restore". Choose the drive or partition you want to restore to.
There are a few other options here for special circumstances. For instance, if you are backing up to a FAT32 or similar partition, you may want to turn on File splitting to avoid going over file size limitations. If you are backing up or restoring an NTFS partition (and only the partition, not the whole drive), you can use NTFSClone backup/restore to save time and space. You can also choose a method of compression to use on the image file; the default, lzop, is recommended.
NOTE: you must restore with the same compression setting you saved with. I recommend putting the compression method in the image file name, e.g. "myharddrive.img.lzop". Also, normal backup/restore is incompatible with NTFSClone backup/restore. If you use NTFSClone, you might want to note that in the filename as well, e.g. "myWindowsDrive.ntfs.img.lzop".