How to dial in linux

Source: Internet
Author: User
Article Title: how to dial in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Linux:
  
1. Compile the kernel (which can be skipped based on system conditions ).
2. Load the driver module.
3. Create image files for the iso9660 File System
4. Dial
  
By default, your Linux kernel may not support SCSI devices, but many of the recorders are connected to one scsicard. therefore, in this case, you need to re-compile the kernel to support the SCSI device, and compile it into the kernel or into a module based on the chip used by the scsicard. in addition, to facilitate testing of the image file to be burned, you should also select "loopback device support" in the block DEVICE during compilation ". finally, we need to select "SCSI generic support" to compile it into a module, which is specifically used to support the burning of a burner connected to a scsicard.
  
Then, restart the system, and the SCSI device will be detected during the startup process, because the detection is very fast and may not be clear. it doesn't matter. After logging on, run the "dmesg" command to check what the system has found. For example, a piece of information is printed on the screen:
  
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 that is printed when my system is started. If you do not see similar information, it indicates that you did not compile the chip used by the scsicard into the kernel or did not automatically load the corresponding driver module when the system was started (by preparing/etc/conf. modules loads the corresponding module at startup ). at this time, you can manually load the module. after the module is loaded into the system, the above similar information should appear. the BIOS used on my scsicard is "SYMBIOS 53C810AE", so I chose "SYM53C8XX SCSI SUPPORT" during kernel compilation and compiled it into a module. the following is a brief introduction to the above information:
  
First, it shows that the scsicard is found on the PCI slot, and then it finds the device connected to the scsicard. Its ID number is 7 and it is on scsi0.
  
After finding the device, the rest is simple. Now we need to find some software used to make the ISO Image Program burn. the software I used is cdrecord. The software is very good. It can detect connected devices on the scsicard and support multi-session burning (you can finish all the work at a time ). the mkisofs program is used to create an ISO image file. Generally, linux uses this package. The name in the redhat package is the same as the file name.
  
Suppose I have a directory to be engraved, which contains a bunch of good favorites. first, I will use the following command to create an image file in ISO format (this is not a burn, but an image will be carved at a ratio of on the hard disk ):
Mkisofs-r-o cd_image my_private/
  
"-R" indicates that all file attributes are readable to all users. "-o" is the output, and my_private is the directory where everything is to be engraved.
  
After completing the image file, you can check whether the image file is correct. In this case, you need to load the compiled loop module and use the image file as a file system "mount.
Mount-t iso9660-o ro, loop =/dev/loop0 cd_image/mnt/cdrom
  
Enter/mnt/cdrom to check whether the file is correct. the idea is that mkisofs can be used to create an image with a CD boot, which is followed by a kernel file that can be started through the "-B" parameter and "-B, its size must be 1.2, 1.44, or 2.88 MB. Its path is also relative to the my_private directory.
  
In the last step, "no disk in the world", you don't have to pay for it now. :-) now you can start to burn it with the downloaded recording software.
Here, we will briefly introduce cdrecord and some graphic burning tools. about cdrecord can be found in http://hkt.linuxberg.com this site. the following similar information can be displayed using cdrecord-scanbus:
  
Cdrecord release 1.6.1 Copyright (C) 1995-1998 J g Schilling
Scsibus0:
0 )*
1 )*
2 )*
3 )*
4 )*
5 )*
6) 'matshita ''cd-R CW-7502 ''4. 17' Removable CD-ROM
  
Find a burner with ID 7 and start it.
  
Cdrecord-v speed = 2 dev = 6, 0 cd_image
  
"Speed = 2" indicates that the speed of the dial is 2 times, and "dev = 6, 0" indicates information about the burning device. The complete format is "dev = devicename: scsibus, target, lun ", here we only have one device connected to the scsicard, so only some simple form" dev = target, lun ", where devicename is the device name corresponding to the CD-R, SCSIBUS is the SCSI bus number, and TARGET is the sixth detected. LUN refers to the logical unit number of the SCSI device. Generally, the SCSI device only supports one LUN.
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.