Use the debian command to record CD

Source: Internet
Author: User
Use the debian command to record the CD-Linux Release Technology-Debian information. See the following for details. Create a. iso file

Once you select the file you want to copy, there are only two steps to burn the CD: Use mkisofs to create. iso, and then use cdrecord to burn these files into the disk. Run the following command to create a. iso file:

$ Mkisofs-o test. iso-Jrv-V test_disk/home/carla/
In the preceding example:

-O: name the new. iso image file (test. iso)
-J. Use Joliet naming record for compatibility with Windows
-R uses the Rock Ridge naming convention for UNIX/Linux compatibility, which makes all files public-readable.
-V sets the verbose mode for running comments when creating an image
-V provides the volume ID (test_disk), which is the name of the disk that appears in Windows Resource Manager.
The last item in the list is to select the files to be packaged into. iso (all in/home/carla)
Now, install. iso for verification. I like to create a test directory:

$ Mkdir/test_iso
$ Mount-t iso9660-o ro, loop =/dev/loop0 test. iso/test_iso
View the contents of the directory. All files should be there and can be read. Otherwise, the image is corrupted. If you burn it to the disk, you will eventually get a failed CD.


Burning Disk

Writing the image to the disk is no longer easy. First, find the SCSI address for the CD-R/RW:

$ Cdrecord-scanbus

Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jrg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-100'
Scsibus0:
0, 0, 0) 'toshanghai' 'dvd-ROM SD-M1202 ''000000' Removable CD-ROM
0, 1, 0 1) 'lite-ON ''ltr-24102B ''5s54' Removable CD-ROM
0, 2, 0 2 )*
0, 3, 0 3 )*
0, 4, 0 4 )*
0, 5, 0 5 )*
0, 6, 0 6 )*
0, 7, 0 7 )*

The first three digits of each item are the SCSI bus, device identifier, and LUN (Logical Unit Number ). (The fourth digit is the device ID .) Cdrecord requires these three numbers. In the preceding example, the CD recorder is 0, 1, and 0. Devices on the SCSI bus 0 can be abbreviated as 1, 0, that is, the first 0 is saved. This is a public convention. If there are other bus, you must specify-no shortcut.

Now write content to the drive:

$ Cdrecord-v-eject speed = 8 dev = 0, 0 test. iso
In the preceding example:

-V indicates the detailed method.
-Eject: the disk is displayed after the write task is completed.
-Speed specifies the write speed (8)
-Dev is the device number (, 0) obtained from cdrecord-scanbus)
The last one is the name of the burned image (test. iso)
This is a simple and available method for creating a disk for public distribution, because it creates a disk that can be read on any Windows or Linux system. Mkisofs itself is very suitable for creating. iso for download, and mkisofs can create file systems for many platforms. For more information, see the online help page of mkisofs.

On a very fast and memory-intensive machine, you can easily handle non-CPU-intensive tasks during the burning, but it is best not to do anything during the burning of the disk. The laser cannot be stopped first and then restarted from where it was stopped, so any interruption is fatal.

Cdrecord will try to run the recorder as quickly as possible, so you don't have to specify the speed, but you should judge how to do it based on experience. Specifying a slow speed is useful for correcting errors and running the buffer in arrears. A new drive using the burn-proof technology (the original intention of developing this technology is exactly the opposite of its current name; similarly, who takes these names ?) There will be no worries about running buffers like older drives.


Copy Disk

To directly copy content from the source disk to a recordable disk, run the following command:

$ Cdrecord-v dev = 0, 1, 0 speed = 4-isosize/dev/cd0
This command directly streams the content of the CD-ROM, that is,/dev/MCM 0, into the CD recorder dev =, 0. Do not do this on slow old machines. Direct replication is fast, but it is more prone to errors. Better practice: first copy the content of the source disk to the hard drive, and then copy the content from the hard drive to the CD recorder:

$ Mount/cdrom
$ Dd if =/dev/bq0 of =/tmp/diskfile. iso
$ Cdrecord dev = 0, 1, 0 speed = 8 fs = 8 m-v-eject-dummy/tmp/diskfile. iso
Note the two new options fs = 8 m and-dummy. Fs = 8 m defines the size of the ring Buffer: to some extent, the larger the size, the better. Remember, the interruption is fatal. If something slows down data transmission, fs = 8 m will create a buffer that is large enough to keep the recorder running. If 8 MB is not enough, you may need a better PC. On the other hand, over 8 MB is not necessarily better, because it is a waste of time to reload the MMU (Memory Management Unit) table. The default value is 4 MB.

-Dummy is an amazing option. You can use it to perform a "rehearsal" first and then take an adventure on the actual disk. The burner performs all operations but does not turn on the laser header, which gives the user the opportunity to capture errors before submitting the content to the disk.
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.