Linux IDE CD-RW disc recorder Installation notes

Source: Internet
Author: User

Now the medium-grade CD recorder CD-R and CD-RW is getting cheaper and cheaper, a variety of brand types of CD recorder has become a lot of friends home computer standard peripherals. Installing and using CD-R and CD-RW in WINDOWS is really very easy, but in Linux platform want to play around the CD-RW disc recorder, it is not a simple thing, do not believe, then you will first take a look at the small series of Linux IDE CD-RW disc recorder Installation notes.
Before explaining in detail how to install and use the IDE interface CD-RW in a Linux operating system, let me tell you about my history of playing a general CD-ROM disc drive in Linux. It was also funny to say that it was 99 years since xiaobian first came into contact with and learned Linux. At that time, he first played TurboLinux 4.0. At that time I bought three sets of TURBO Linux4.0 CD and a Linux entry book on his own K6233, 32 MB, 4.3 GB, 24 x CD-ROM computer to practice Linux. Linux is successfully installed on the hard disk and can coexist with Windows 98. Of course, after N hard lessons about partition data loss ). After installing Linux, I found that Linux does not know how to use the optical drive. I learned from my friends that the optical drive in the Linux operating system was to be loaded, so I loaded the optical drive according to the methods described in books and magazines, but it was always impossible to succeed. Fortunately, I am unwilling to use Linux without a optical drive. after a winter vacation, I finally found out why I could not use the optical drive correctly. I used to learn about Linux, note the case sensitivity when using Linux commands.
This is the most impressive lesson I learned when I started Linux. Now let's talk about how to install the CD-RW burner for the IDE interface in Linux. As a cheap data storage device, the CD-RW Burner with IDE interface is widely welcomed by domestic users and small and medium-sized companies. At present, the low-end IDE interface CD-RW recorder than the SCSI interface disc recorder is much cheaper, performance is good. Friends who are familiar with hardware and Linux know that it is easier to install the SCSI interface CD-RW under Linux, because it involves some issues of Linux kernel. In general, the support of kernel for the SCSI interface is better than that of the IDE interface. Even so, we can solve some problems in the kernel through the following methods when installing the IDE interface CD-RW recorder in Linux.
Installation:
Taking installing HP's 9030 IDE CD-RW disc recorder as an example, first we need to figure out the parameters of HP 9030, from its labeled 10X4X32 CD-RW we can know that this is a 10-speed write CD-R disc, 3-speed write CD-RW disc, 32 Speed Read take CD-ROM data disc recorder. This recorder has good performance. We can connect the 9030 IDE CD-RW disc recorder to the slave disk interface provider on the computer motherboard. The 10 Gb hard disk uses the master disk interface. My computer is configured as Athlon 700,128 MB, AMD Viper chipset.
To better illustrate the problem, the following software and hardware environment already exist on this computer, and the operation is in good condition:
1. Linux has been fully installed on the computer. The Linux versions used are Mandrake 7.2 and 2.2.17 kernel.
2. the kernel is in the/usr/src/Linux directory.
3.9030 IDE CD-RW disc recorder hardware installation is complete, and the computer can correctly identify the 9030 IDE CD-RW disc recorder model. About the CD-RW hardware installation process and method of general readers can be correctly installed, here not to mention.
4. In addition to the 9030 IDE CD-RW disc recorder on the computer, there are no other CD-ROM disc drives
5. There is no SCSI device on the computer
Step 1: recompile the Kernel

Note: Here describes the re-compile the Kernel method is for the installation of the IDE CD-RW disc recorder and the compilation, not suitable for other occasions, if you want to know more details to compile the Kernel method, please refer to other professional articles or books.
The biggest problem we encounter in Linux is that Linux always treats our ATAPI/IDE CD-RW device as a SCSI device, which of course is not what we expected. In order for Linux to correctly identify our ATAPI/IDE CD-RW devices, we had to perform manual modifications on the kernel.
Open the Kernel configuration menu and use "make xconfig, make menuconfig"). Then, modify the kernel according to the following data. Note that you must back up the original kernel before modifying the kernel, to prevent unexpected failures in restoring the original stable system:
1. "Block Devices" menu
Close "IDE CD-ROM Support"
Open "SCSI emulation support"
2. "SCSI Support" menu
Open "SCSI support"
Open "include SCSI CD-ROM drivers"
Open "SCSI generic support"
Save the new kernel after modification.
Step 2: View information
After kernel modification is completed, restart the computer with the new kernel. If the computer can be started smoothly, Linux can boot normally with the new kernel, which is the best thing. When starting, do not forget to observe whether the recorder of our IDE interface is recognized correctly. However, during the startup process, the corresponding parameters are displayed for a very short period of time. Generally, the corresponding system information cannot be seen in a timely manner.
Log on to Linux as a Super User, and run the dmesg | more command on the terminal to view detailed system startup information. There is a piece of information about the SCSI device. The purpose of modifying the kernel is to let the Linux system identify the devices with IDE interfaces as SCSI devices. If the following information is displayed, it indicates that the emulation mode of SCSI has taken effect.
Scsi0: SCSI host adapter emulation for ide atapi devices
Scsi: 1 host.
Vendor: HP Model: CD-Writer + 9300 Rev: 1.0b
Type: CD-ROM ansi scsi revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
From the above information, we can easily see that the Linux system has used the CD drive device of the IDE interface as the SCSI interface, the model of the HP 9030 IDE CD-RW CD recorder installed on the computer, the manufacturer and other information can be correctly recognized by the Linux system. It can be said that this HP 9030 IDE CD-RW disc recorder in the Linux operating system is basically installed and debugged successfully.
Go to the KDE graphic user interface and learn more about the HP 9030 IDE CD-RW disc recorder in the system. Linux maps the new CD-RW to a SCSI device for use, in Linux, this HP 9030 IDE CD-RW disc recorder is default to/dev/cd0. The connection to the original CD-ROM drive/dev/cdrom should be changed to pointing to the SCSI device, remember that the IDE CD-ROM is no longer supported in Linux using the compiled new kernel, unless you change the kernel back.
Go to the/dev directory and use the ln-sf/dev/cd0/dev/cdrom command to simulate SCSI into CD-RW.
Step 3: load the drive
After completing the previous two steps, Linux has used/dev/cdrom as a SCSI simulated CD-RW device. However, the HP 9030 IDE CD-RW disc recorder was not loaded at this time, and we could not read the disc data from the HP 9030 IDE CD-RW disc recorder.
We can perform a test:
1. Create a directory named:/cdtest
2. Place the data disc in the CD-RW
3. type the mount-t auto/dev/sp_0/cdtest command.
4. view the/cdtest directory to see if the CD-ROM is readable
If the CD-ROM has been properly loaded, the capacity of the disc is displayed in/cdtest. Uninstalling the CD-RW can use the umount/cdtest command.
Now, you need to edit the files in/etc/fstab. The file contains a detailed list of media that can be loaded in the system. Check whether the following line exists:
/Dev/hdc/mnt/cdrom iso9660 ro, noauto, user, exec 0 0
If yes, change it to/dev/cd0/mnt/cdrom iso9660 ro, noauto, user, exec 0 0 to change the device's point. From (/dev/hdc) to (/dev/cd0 ).
Save the modified file to/etc/fstab. Now, you can use mount/dev/cd0 or mount/dev/cdrom in the system to load the CD-RW drive.
Step 4: Install and debug the CD recording software
Complete the hardware installation and system debugging of the CD-RW driver, and then install the corresponding recording software. Unfortunately, there are not many recording software available for the disc recorder in Linux, and it is not as convenient as it is in WINDOWS. We recommend that you use cdrecord, a special software for burning data in Linux.
After installing this software, you can search for CD-R and CD-RW devices using the cdrecord-scanbus command. The specific process of using the software to burn is not required to be detailed. In some Linux operating systems, the logging software uses a GUI, which is similar to the logging software in WINDOWS. Generally, anyone familiar with the burning work in Windows can master the method of using software to burn a CD in Linux.

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.