Siege Lion on the Way (iii) Linux (30)---disc writing tool

Source: Internet
Author: User

First, the basic steps:

1. Use the MKISOFS command to build the data you want to back up into a mirrored file.

2. Use the Cdrecord command to burn the image file to a disc or DVD.

Second, mkisofs: New Image file

Mkisofs [-0 image file] [-RV] [-m file] files to be backed up ... [-V vol] Graft-point isodir=systemdir ...

Parameter description:

-O: Specify the image file later

-r: More information can be recorded by Rockridge generating file data that supports Unix/linux.

-V: Show build process

-M file:-m to exclude the meaning of the file

-V Vol: New volume.

-graft-point:graft has the meaning of passing or transplanting.

Example 1, mkisofs-r-v-o/tem/system.img/root/home;

In this way, all directory files are placed in the top-level directory of the image file, that is, the/root and/home directories do not exist in System.img, and the files in both directories are placed directly in the top-level directory of the image file.

Example 2, Mkisofs-r-V "linux_file"-o/tem/system.img-m/home/lost+found-graft-point/root=/root/home=/home;

In such a way, the files in/root and/home will exist in the corresponding folder respectively.

Third, Cdrecord: Disc burning tool

Cdrecord-scanbus Dev=ata; <== Query Burner (early way), I tried unsuccessfully.

Cdrecord-scanbus; <== this way instead of the above way. View the recorder coordinates.

Cdrecord-v Dev=x,y,z Blank=[fast|all]

Cdrecord-v Dev=x,y,z-format; <== only for DVD+RW format

Cdrecore-v dev=x,y,z [available parameters function] File.iso

Example:

Cdrecord-v dev=1,0,0 Fs=8m-data-sao driveropts=burnfree/tmp/system.img;

Iv. other common compression and backup tools:

1, DD:

DD if= "input file" of= "Output File" bs= "Block Size" count= "number";

BS if not specified, the default is 512 bytes.

Example:

DD IF=/ETC/PASSWD Of=/tmp/passwd.back;

DD If=/dev/hac of=/tmp/mbr.back bs=512 count=1;

2, Cpio: Can back up anything, including equipment files (temporarily do not understand)

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.