chrislale@users.sourceforge.net
Revision History | ||
---|---|---|
Revision 1.0 | 14th August 2002 | Revised by: CTL |
Initial release | ||
Revision 1.1 | 28th August 2002 | Revised by: CTL |
Modified in response to comments. New sections added: "Checklist" and "Where to find out more". | ||
Revision 1.2 | 31st August 2002 | Revised by: CTL |
Modified in response to comments. |
Copyright ©2002 Chris Lale (chrislale@users.sourceforge.net). Permission is granted to copy, distribute and/or modify this document with no Invariant Sections, with no Front-Cover texts and with no Back-Cover Texts under the terms of the GNU Free Documentation License, version 1.1 or any later version, published by the Free Software Foundation. A copy of the license can be found at http://www.fsf.org/copyleft/fdl.html
If you find any errors, omissions etc, please let me know at chrislale@users.sourceforge.net
This document is written in UK English (not American English). If you spot a mistake, please check with a UK dictionary or spell-checker before contacting me! You can find a summary of English punctuation and grammar at http://www.bolton.ac.uk/webpublishing/guidelines/grammatical.html
chris@athlon:~$ su |
Password: (enter the root password) |
athlon:/home/chris# |
When you have finished, enter the exit command to resume normal user status.
athlon:/home/chris# exit |
chris@athlon:~$ |
chris@athlon:~$ su |
Password: (enter the root password) |
athlon:/home/chris# lsmod | grep scsi |
If you have the ide-scsi module, you should see a line something like this:
ide-scsi 7060 0 |
athlon:/home/chris# |
If the ide-pci module is present, you can skip the next section and move on to installing the basic software. If you do not have the ide-scsi module you must install a kernel that does have it. The next section explains how to install a different kernel.
You can skip this section if you can detect the ide-scsi module using lsmod (see SCSI emulation in the previous section). Otherwise, you must install a kernel with the ide-scsi module. The pre-compiled kernel images are supplied as .deb packages on the official CDROMs. A safe choice is kernel-image-2.2.20.
![]() | Make sure that you have an up-to-date emergency repair disc for systems such as Windows NT. |
athlon:/home/chris# mount /floppy |
athlon:/home/chris# dd if=/dev/hda of=/fd/MBR bs=512 count=1 |
athlon:/home/chris# umount /floppy |
You can restore the mbr from the floppy using this command:
athlon:/home/chris# dd if=/fd/MBR of=/dev/hda bs=446 count=1 |
You can check which pre-compiled kernels are available using apt-cache.
athlon:/home/chris# apt-cache pkgnames | grep kernel-image | more |
athlon:/home/chris# apt-get install kernel-image-2.2.20 |
A new kernel has been installed at /boot/vmlinuz-2.2.20 |
Would you like to create a boot floppy now? [No] |
Enter y if you would like to create a boot floppy, and follow the instructions.
Would you like to create a boot floppy now? [No] y |
Install a boot block using the existing /etc/lilo.conf [Yes] n |
Wipe out your old LILO configuration and make a new one? [No] y |
Do you wish to set up Linux to boot from the hard disk? [Yes] y |
Install a partition boot block on partition /dev/hda7? [Yes] y |
Make /dev/hda7 the active partition? [Yes] n |
This command un-installs the kernel image:
athlon:/home/chris# dpkg --purge --force-remove-essential kernel-image-2.2.20 |
athlon:/home/chris# apt-cache --generate search kernel-image | more |
athlon:/home/chris# apt-get install cdrecord mkisofs |
Do you want /usr/bin/cdrecord to be installed SUID root? yes |
athlon:/home/chris# adduser chris cdrom |
Install the ide-scsi module by running modconf.
athlon:/home/chris# modconf |
scsi Drivers for SCSI controller cards and classes of SCSI device Ok |
ide-scsi - SCSI emulation support OK |
Install this module in the kernel? Yes |
Enter Command-Line Arguments (leave blank) Ok |
Installation succeeded |
Please press ENTER when you are ready to continue. <enter> |
Exit Finished. Return to previous menu. Ok |
Exit Finished. Return to previous menu. Ok |
athlon:/home/chris# |
The ide-scsi module will be included in the kernel at the next boot. Re-boot the system
athlon:/home/chris# shutdown -r now |
athlon:/home/chris# dmesg | grep ATAPI |
Here is a listing of the output from my system:
hdc: PHILIPS CDRW1610A, ATAPI CDROM drive hdc: ATAPI 40X CD-ROM CD-R/RW drive, 8192kB Cache scsi0 : SCSI host adapter emulation for IDE ATAPI devices |
athlon:/home/chris# emacs /etc/lilo.conf |
My lilo.conf looked like this (but it may contain comment lines too):
boot=/dev/hda7 root=/dev/hda7 compact install=/boot/boot.b map=/boot/map vga=normal delay=20 image=/vmlinuz label = Linux read-only |
append="hdc=ide-scsi max_scsi_luns=1" |
Save the file and exit using these commands:
<F10> f s |
<F10> f e |
It should now look something like this:
boot=/dev/hda7 root=/dev/hda7 append="hdc=ide-scsi max_scsi_luns=1" compact install=/boot/boot.b map=/boot/map vga=normal delay=20 image=/vmlinuz label = Linux read-only |
The new settings will not take effect until you run lilo and reboot.
![]() | Do not forget to run LILO after making these changes. |
athlon:/home/chris# lilo |
athlon:/home/chris# shutdown -r now |
athlon:/home/chris# dmesg |
scsi0 : SCSI host adapter emulation for IDE ATAPI devices scsi : 1 host. Vendor: PHILIPS Model: CDRW1610A Rev: P1.4 Type: CD-ROM ANSI SCSI revision: 02 Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray |
athlon:/home/chris# cdrecord -scanbus |
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling Using libscg version 'schily-0.5' scsibus0: 0,0,0 0) 'PHILIPS ' 'CDRW1610A ' 'P1.4' Removable CD-ROM 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * |
athlon:/home/chris# emacs /etc/default/cdrecord |
# The default device, if not specified elsewhere # CDR_DEVICE=philips # # The default speed, if not specified elsewhere # CDR_SPEED=8 # # The default FIFO size if, not specified elsewhere # CDR_FIFOSIZE=2m # # The following definitions allow abstract device names. # They are used if the device name does not contain the # the characters ',', ':', '/' and '@' # # drive name device speed fifosize driveropts # philips= 0,0,0 8 2 "" |
Save the file and exit using these commands:
<F10> f s |
<F10> f e |
athlon:/home/chris# cdrecord dev=0,0,0 -v -toc | more |
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling TOC Type: 1 = CD-ROM Using libscg version 'schily-0.5' atapi: 1 Device type : Removable CD-ROM Version : 0 Response Format: 1 Vendor_info : 'PHILIPS ' Identifikation : 'CDRW1610A ' Revision : 'P1.4' Device seems to be: Generic mmc CD-RW. Using generic SCSI-3/mmc CD-R driver (mmc_cdr). |
Skip this section if your CD (re)writer is your second CDROM drive, and go on to making a second CDROM drive available
You need to get rid of the current (non-functional) ide "/dev/cdrom", and replace it with a symlink to the emulated SCSI "/dev/scd0".
athlon:/home/chris# cd /dev |
Rename "cdrom" rather than deleting it.
athlon:/dev# mv cdrom cdrom.old |
Create the symlink to "scd0".
athlon:/dev# ln -s scd0 cdrom |
That's it! Now test that you can read from /cdrom again. Put a data CD in the drive. Then:
athlon:/dev# mount /cdrom |
athlon:/dev# ls /cdrom |
athlon:/dev# umount /cdrom |
Skip this section if your CD (re)writer is your only CDROM drive. You should have carried out the instructions for making a single CDROM drive available. You need to create a new device ("/dev/cdrw", for example), and create a symlink to the emulated SCSI device "/dev/scd0".
athlon:/home/chris# cd /dev |
Create the symlink to "scd0".
athlon:/dev# ln -s scd0 cdrw |
The symlink does not point to anything yet. You need to set up a directory for the mount point:
athlon:/dev# cd / |
athlon:/# mkdir cdrw |
Now modify /etc/fstab:
athlon:/# emacs /etc/fstab |
Look for the existing cdrom line:
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0 |
Add a line for cdrw underneath using identical parameters.
/dev/cdrw /cdrw iso9660 ro,user,noauto 0 0 |
Your fstab should look something like this:
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> /dev/hda7 / ext2 errors=remount-ro 0 1 /dev/hda6 none swap sw 0 0 proc /proc proc defaults 0 0 /dev/fd0 /floppy auto user,noauto 0 0 /dev/cdrom /cdrom iso9660 ro,user,noauto 0 0 /dev/cdrw /cdrw iso9660 ro,user,noauto 0 0 |
That's it! Now test that you can read from /cdrom and /cdrw. Put a data CD in each drive in turn. Then:
athlon:/# mount /cdrom |
athlon:/# ls /cdrom |
athlon:/# umount /cdrom |
athlon:/# mount /cdrw |
athlon:/# ls /cdrw |
athlon:/# umount /cdrw |
athlon:/# cd /tmp |
athlon:/tmp# mkisofs -r -o home-dir.img /home/chris/ |
This may take a little while, depending on the amount of data to be imaged.
athlon:/tmp# cdrecord dev=0,0,0 -v -data home-dir.img |
athlon:/tmp# mount /cdrom |
athlon:/tmp# ls /cdrom |
athlon:/tmp# umount /cdrom |
You can now install a package like "X-CD-Roast" which runs in the X-window system.
You can install xcdroast 0.98+0alpha using apt-get:
athlon:/home/chris# apt-get install xcdroast |
For information on how to download the "testing" version of cdroast, see the "APT HOWTO" at http://www.debian.org/doc/manuals/apt-howto/index.en.html. This document explains how to use apt on-line (broadband connection recommended), or locally with downloaded files (for dial-up connections).