Linux under the disc burning

xiaoxiao2021-03-06  65

This article is taken from Linux Eden (

Http://www.linuxeden.com/edu/doctext.php?docid=2447)

Diagonal in Linux is divided into four songs:

1. Compile the kernel (skip it according to the system).

2. Load the corresponding drive module.

3. Making the image file of the ISO9660 file system

4.

By default, your Linux kernel may not support SCSI devices, and now a recorder is listed on an SCSI card. Therefore, in this case, you need to compile the kernel from the new core, let it support the SCSI device, and To compile it to the kernel or compile the module according to the chip used in the SCSI card. In addition, in order to facilitate the image file to be burned, you should also compile "loopback device support" in the block device. Finally, To select "SCSI Generic Support", compile it into a module, which is specifically for supporting this connection to the burner on a SCSI card.

Then, restart the system, the SCSI device will be detected during the startup process, because the detection is particularly fast, it may not be clear. There is no relationship, after logging in, use the "DMESG" command to see what is found, such as printing this on the screen. information:

Sym53c8xx: AT PCI Bus 0, Device 9, Function 0

SYM53C8XX: SETTING PCI_COMMAND_PARITY ... (FIX-UP)

SYM53C8XX: 53C810A Detected

SYM53C810A-0: REV = 0x23, base = 0xE6000000, IO_PORT = 0xE400, IRQ = 11

SYM53C810A-0: ID 7, FAST-10, PARITY CHECKING

SYM53C810A-0: RESTART (SCSI RESET).

SCSI0: SYM53C8XX - VERSION 1.3C

SCSI: 1 Host.

Vendor: Matshita Model: CD-R CW-7502 REV: 4.17

TYPE: CD-ROM ANSI SCSI Revision: 02

Of course, this is the information printed when I started my system. If you didn't see similar information, you didn't compile the SCSI card to the kernel or did not load the corresponding drive module automatically when the system starts. Formulation /etc/conf.modules loads the corresponding module when starting). This time you can manually load the module. When the module is loaded into the system, you should have the above similar information. In the SCSI card I used. The chip BIOS is "SymbiOS 53C810AE", so "SYM53C8XX SCSI Support" is selected when compiling and compiles it into a module. Let's briefly introduce the above information:

First it appears to find the SCSI card on the PCI slot, followed by, discovers the device connected to the SCSI card, which is 7, on SCSI0.

When you find the device, the rest is simple, now you need to find software for making the ISO image program burning. I use the software is CDRecord, the software is very good, it can be connected on the SCSI card Equipment, also supports Multi-session burn (allow you to be completed once again, next time). Making the ISO image file is Mkisofs, the general Linux takes this package, the name and file in the redhat Like the name.

If I have a directory that organizes a good job, there is a bunch of good collection. I first made the following command into an image file (this is not burning, just press 1: 1 on the hard disk. The things that will be engraved are not burning, just in the hard disk, pressing the proportion of 1: 1 into an image):

mkisofs -r -o cd_image my_private /

"-r" indicates that all file properties becomes readable to owner, "- o" is output, my_private is the directory where it is necessary to engrave.

After the image file is finished, it can detect it correct. At this time, it is to load the Loop module that has been compiled, and this image file is as a file system "mount".

Mount -t iso9660 -o ro, loop = / dev / loop0 CD_IMAGE / MNT / CDROM Enter / MNT / CDROM to view files correct. The idea is, using Mkisofs to make a picture with CD-ROM, this is passed -b "Parameters," - B ", which is followed by kernel files that can be activated. Its size is limited, must be 1.2 or 1.44 or 2.88MB, and its path is also relative to my_private directories.

In the last step, "There is no disk in the world", you can do a good fee. :-) Now start truly. Burning with the downloaded burn software.

Here is only a brief introduction to CDRecord, and there are some burn tools for the graphical interface. You can find it yourself. About cdrecord can be found in http://hkt.linuxberg.com this website.

CDRecord -scanbus

You can show the following similar information:

CDRecord Release 1.6.1 Copyright (C) 1995-1998 J 鲵 g Schilling

SCSIBUS0:

0) *

1) *

2) *

3) *

3) *

4) *

5) *

6) 'Matshita' 'CD-R CW-7502' '4.17' Removable CD-ROM

A recorder of the ID number is found, starting below.

CDRecord -v Speed ​​= 2 dev = 6,0 CD_IMAGE

"Speed ​​= 2" indicates that the speed is 2 times the speed, "DEV = 6, 0" indicates some information about the burning device, and the complete form is "dev = devices: scsibus, target, lun", us only one here The equipment on the SCSI card, therefore only a simple form "dev = target, LUN", where DeviceName is a device name corresponding to CD-R, SCSIBUS is the SCSI bus number, and Target is the sixth item, LUN finger. It is the logic unit number of the SCSI device, and a general SCSI device only supports a LUN.

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

New Post(0)