Re: Getting CDRW to work in Debian

2003-12-01 Thread Bob Proulx
Walter Dnes wrote:
   I have a DVD (hdc) and a CDRW (hdd) on a machine.  The only defined
 mount is /cdrom, which is actually the DVD.  In Redhat, I simply added
 append=hdc=ide-scsi hdd=ide-scsi to lilo.conf, ran lilo and re-boot
 and both of them worked as did cdrecord.  This does not work in Debian
 (2.4.18-bf2.4).

That should be enough for Debian as well.  (shrug)  Works for me.

 Further Googling suggested that I add a line to modules.conf.
 Looking at modules.conf, I saw dire warnings against manual editing,
 and that I was to use update-modles instead.  According to the
 manpage, I'm supposed to create a file in /etc/modutils.

Change references of modules.conf to /etc/modules instead.

Here are my instructions for setting up a CD-RW drive on Debian.   
Perhaps they will help.  This sets up a very particular configuration.
You will have to adapt it for your installation.  

Note that these instructions match a tuned modular kernel such as
kernel-image-2.4.20-2-k7.  The bf24 kernel should have all of the
modules compiled in and should work.  But I don't use that kernel
myself and so can't say for sure.  And I have seen problems with
module conflicts being completely unresolvable when trying to compile
everything into the kernel statically.  Take 'autofs' and 'autofs4' as
an example, you need a modular kernel to get the fixed autofs4.
Besides you probably want the tuned, modular kernel anyway.  So that
might be your first task, to update to an appropriate modular kernel
first.  See the previous postings about using 'modconf' or similar
method to install your network and sound drivers.

Bob

Setting up a CD-RW drive

I am going to assume that the CD-ROM is on a master IDE device and
that the CD-RW is a slave IDE device on the same cable since that is a
typical configuration.  In order to use the CD writer it must appear
as a SCSI device. In that case you might as well treat both of the
devices as SCSI for consistency.

First you need the kernel to load the ide-scsi module at boot time.
Put the name of that driver in /etc/modules.

In /etc/modules place the following:

  ide-scsi

Note for pure SCSI disk based systems.  In an IDE based system the
ide-probe-mod and ide-mod drivers will have been loaded during the
initial part of the boot.  But in a SCSI based system there is no need
for those drivers.  Unless you have an IDE CD writer in which case you
will need them and they will not be automatically detected for
inclusion in an initrd.  Therefore you will need to add these drivers
explicitly in the /etc/modules file.  Thanks George Robbert for
providing this information.  Note that in 2.4.22 ide-probe became
ide-detect.  Thanks Brian Weaver for providing this information.

  ide-probe-mod
  ide-scsi

The ide-scsi module can only adapt an IDE device to a SCSI if it has
not already been grabbed by the normal IDE layer.  Therefore the
kernel must be instructed to load the ide-scsi driver for these
devices at boot time such that the ide-scsi driver will be loaded
first.  After modifying the /etc/lilo.conf file you will need to run
lilo and you will need to reboot.  (Or edit grub's menu.lst and run
update-grub for grub users.)

In /etc/lilo.conf place the following:

  append=hdc=ide-scsi hdd=ide-scsi

The hdc device is your master device which I am assuming will be your
CD-ROM device.  The hdd device is your slave device which I am
assuming will be your CD-RW device.

Test your configuration using cdrecord -scanbus.  It should be able to
see your CD devices.

  cdrecord -scanbus

At this point things are configured for the kernel to handle the
devices correctly as SCSI devices.  Now we set up the rest of the
system to know about these.  Typically on Linux systems the device is
aliased as a symlink in /dev.  Remove any previous aliases.  Create
new aliases for the new devices.

  rm -f /dev/cdrom
  rm -f /dev/cdrw
  ln -s /dev/scd0 /dev/cdrom
  ln -s /dev/scd1 /dev/cdrw

Create mount points for these devices.  These could go anywhere on
your filesystem.  Typically on Debian they will be mounted in / as
/cdrom and /cdrw.  However another common convention is to mount these
under /mnt as /mnt/cdrom and /mnt/cdrw.  For now I will go with the
Debian default and show them in /cdrom and /cdrw.

  mkdir -p /cdrom /cdrw

Configure those device nodes and mount points in your filesystem table
so that they can be easily mounted.  The configuration shown here
allows any user to mount and unmount these devices as themself and
root capability is not needed.

In /etc/fstab place the following:

  /dev/cdrom  /cdrom  iso9660 ro,user,noauto  0   0
  /dev/cdrw   /cdrw   iso9660 ro,user,noauto  0   0

You may be questioning the 'ro' option, read-only, in the cdrw entry
in the above fstab.  That is because when mounting the disk like this
it looks like a cdrom and is not writable using this method.  When
mounting it as a filesystem it is being mounted as a cdrom device
only.  

Re: Getting CDRW to work in Debian

2003-12-01 Thread csj
On 30. November 2003 at 9:39PM -0500,
Walter Dnes [EMAIL PROTECTED] wrote:

 On Sun, Nov 30, 2003 at 07:52:01AM -0500, Paul Morgan wrote
 
  Create a file in /etc/modutils containing the following:
  
  options ide-cd ignore=\hdc hdd\
  alias scd0 sr_mod
  alias scd1 sr_mod
  pre-install sg modprobe ide-scsi
  pre-install sr_mod modprobe ide-scsi
 
   I think I may have screwewd up somewhere on the setup.  Here
 are a few excerpts from /var/log/dmesg
 
 ide-floppy driver 0.97.sv
 modprobe: modprobe: Can't locate module ide-cd
 hdc: driver not present

Maybe the driver isn't compiled as a module.  Since ide-cd isn't
available, maybe just specifying the hdc=ide-scsi (and
forgetting all about the non-existent ide-cd module) in lilo
would do the trick (I'm not sure because I'm using grub).


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Getting CDRW to work in Debian

2003-12-01 Thread Walter Dnes
On Mon, Dec 01, 2003 at 02:24:47AM -0700, Bob Proulx wrote

 Here are my instructions for setting up a CD-RW drive on Debian.   
 Perhaps they will help.  This sets up a very particular configuration.
 You will have to adapt it for your installation.  

ELVIS
Thank you, thank you, thank you verrry verrry much.
/ELVIS

  It's working now.

 In /etc/modules place the following:
 
   ide-scsi

  This appears to be the critical item I was missing.

 Test your configuration using cdrecord -scanbus.  It should be able to
 see your CD devices.
 
   cdrecord -scanbus

m450:~# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'HITACHI ' 'DVD-ROM GD-5000 ' '0110' Removable CD-ROM
0,1,0 1) 'SONY' 'CD-RW  CRX100E  ' '1.0m' 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) *

   ln -s /dev/scd0 /dev/cdrom
   ln -s /dev/scd1 /dev/cdrw

  I used the names /dev/dvdrom and /dev/cdrw, mounted on /dvdrom and
/cdrw, respectively.  Otherwise, I followed your instructions to the
letter.  Thanks again.

-- 
Walter Dnes [EMAIL PROTECTED]
Email users are divided into two classes;
1) Those who have effective spam-blocking
2) Those who wish they did


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Getting CDRW to work in Debian

2003-11-30 Thread Paul Morgan
On Sun, 30 Nov 2003 01:08:04 -0500, Walter Dnes wrote:

   I have a DVD (hdc) and a CDRW (hdd) on a machine.  The only defined
 mount is /cdrom, which is actually the DVD.  In Redhat, I simply added
 append=hdc=ide-scsi hdd=ide-scsi to lilo.conf, ran lilo and re-boot
 and both of them worked as did cdrecord.  This does not work in Debian
 (2.4.18-bf2.4).  Further Googling suggested that I add a line to
 modules.conf.  Looking at modules.conf, I saw dire warnings against
 manual editing, and that I was to use update-modles instead.  According
 to the manpage, I'm supposed to create a file in /etc/modutils.  There
 are, however, no examples whatsoever.  Can somebody who's gotten a
 similar setup running please post their files? Thanks.
 
   Alternatively, there's supposed to be undocumented native support for
 ATAPI devices in cdrecord; has anybody figured that out?

Create a file in /etc/modutils containing the following:

options ide-cd ignore=\hdc hdd\
alias scd0 sr_mod
alias scd1 sr_mod
pre-install sg modprobe ide-scsi
pre-install sr_mod modprobe ide-scsi

-- 
paul

The average lifespan of a Web page today is 100 days. This is no way to
run a culture.

Internet Archive Board Chairman



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Getting CDRW to work in Debian

2003-11-30 Thread Walter Dnes
On Sun, Nov 30, 2003 at 07:52:01AM -0500, Paul Morgan wrote

 Create a file in /etc/modutils containing the following:
 
 options ide-cd ignore=\hdc hdd\
 alias scd0 sr_mod
 alias scd1 sr_mod
 pre-install sg modprobe ide-scsi
 pre-install sr_mod modprobe ide-scsi

  I think I may have screwewd up somewhere on the setup.  Here are a few
excerpts from /var/log/dmesg

ide-floppy driver 0.97.sv
modprobe: modprobe: Can't locate module ide-cd
hdc: driver not present
/dev/hdc: No such device or address
ide-floppy driver 0.97.sv
modprobe: modprobe: Can't locate module ide-cd
hdd: driver not present
/dev/hdd: No such device or address

  I'm not a kernel hacker, but I can ./configure  make  make install
What is the procedure to set up ide-cd and make it available ?  Here are
some more excerpts from dmesg...

Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Kernel command line: auto BOOT_IMAGE=Linux ro root=301 hdc=ide-scsi hdd=ide-scsi
ide_setup: hdc=ide-scsi
ide_setup: hdd=ide-scsi

Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1420-0x1427, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0x1428-0x142f, BIOS settings: hdc:DMA, hdd:DMA
hda: Maxtor 6E040L0, ATA DISK drive
hdc: HITACHI DVD-ROM GD-5000, ATAPI CD/DVD-ROM drive
hdd: CD-RW CRX100E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=4998/255/63
ide-floppy driver 0.97.sv
Partition check:
 hda: hda1 hda2  hda5 hda6 hda7 
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077

SCSI subsystem driver Revision: 1.00
Red Hat/Adaptec aacraid driver, Aug 13 2003
DC390: 0 adapters found
3ware Storage Controller device driver for Linux v1.02.00.016.
3w-: No cards with valid units found.
request_module[scsi_hostadapter]: Root fs not mounted
request_module[scsi_hostadapter]: Root fs not mounted
i2o_scsi.c: Version 0.0.1
  chain_pool: 0 bytes @ c1206f00
  (512 byte buffers X 4 can_queue X 0 i2o controllers)


-- 
Walter Dnes [EMAIL PROTECTED]
Email users are divided into two classes;
1) Those who have effective spam-blocking
2) Those who wish they did


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Getting CDRW to work in Debian

2003-11-29 Thread Walter Dnes
  I have a DVD (hdc) and a CDRW (hdd) on a machine.  The only defined
mount is /cdrom, which is actually the DVD.  In Redhat, I simply added
append=hdc=ide-scsi hdd=ide-scsi to lilo.conf, ran lilo and re-boot
and both of them worked as did cdrecord.  This does not work in Debian
(2.4.18-bf2.4).  Further Googling suggested that I add a line to
modules.conf.  Looking at modules.conf, I saw dire warnings against
manual editing, and that I was to use update-modles instead.  According
to the manpage, I'm supposed to create a file in /etc/modutils.  There
are, however, no examples whatsoever.  Can somebody who's gotten a
similar setup running please post their files? Thanks.

  Alternatively, there's supposed to be undocumented native support for
ATAPI devices in cdrecord; has anybody figured that out?

-- 
Walter Dnes [EMAIL PROTECTED]
Email users are divided into two classes;
1) Those who have effective spam-blocking
2) Those who wish they did


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]