[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

installing cdwriter with ide-scsi



I am failing to make a new IDE CD-writer work on a good stable Debian 
server and feel I'm out of ideas.  Reading threads on this and other 
lists and FAQs and HOWTOs, many dating back way before my kernel, is 
taking further astray I think so a big plea for help.  I've given as 
much detail as I can below but I'm also happy for anyone who has got 
this working with stable and 2.4.18 kernel to ignore what follows and 
just lob in suggestions that I'll explore!

Thanks,

Chris

P.S. Here's the detail on the system:

Machine is K6 with a bunch of scsi and IDE drives of varying ages.  
Version is woody up to date with major security upgrades etc. and 
running kernel 2.4.18-1-k6.  I've added:
	append="hdc=ide-scsi"
and run /sbin/lilo and IDE channel 2 which was working fine with an 
old IDE drive that I've dumped now has only the brand new AOPEN 
cdwriter and finds it fine as kern.log shows:
  Oct 25 18:50:04 www kernel: Kernel command line: auto
    BOOT_IMAGE=Linux ro root=801 hdc=ide-scsi
  Oct 25 18:50:04 www kernel:     ide1: BM-DMA at 0xf008-0xf00f, BIOS 
    settings: hdc:pio, hdd:pio
  Oct 25 18:50:04 www kernel: hdc: AOPEN 52X24X52 CD-RW 1.07
    20030404, ATAPI CD/DVD-ROM drive
Oct 25 18:50:04 www kernel: ide-cd: ignoring drive hdc

I'm invoking ide-scsi with this in /etc/modutils:

# First (as per debian-user list traffic)
# get the ide-cd drive not to latch onto /dev/hdc
options ide-cd ignore=hdc
#
#
# set up an alias for /dev/scd0 to load sr_mod
alias scd1 sr_mod
#
#
# Now get ide-cd followed by ide-scsi loaded before the scsi drivers
pre-install sg          modprobe ide-scsi
pre-install sr_mod      modprobe ide-scsi
pre-install ide-scsi    modprobe ide-cd

and I ran update-modules and lsmod now shows:
  Module                  Size  Used by    Not tainted
  isofs                  24064   0  (autoclean)
  ip_nat_irc              2336   0  (unused)
  ip_nat_ftp              2912   0  (unused)
  iptable_nat            12820   2  [ip_nat_irc ip_nat_ftp]
  ip_conntrack_irc        2432   0  (unused)
  ip_conntrack_ftp        3168   0  (unused)
  ip_conntrack           12756   3  [ip_nat_irc ip_nat_ftp    
       iptable_nat ip_conntrack_irc ip_conntrack_ftp]
  iptable_filter          1728   0  (autoclean) (unused)
  ip_tables              10368   4  [iptable_nat iptable_filter]
  ide-disk                6560   2  (autoclean)
  ide-probe-mod           7968   0  (autoclean)
  sr_mod                 11800   0
  st                     25812   0  (unused)
  sg                     27940   0
  smc-ultra               5024   1
  8390                    5952   0  [smc-ultra]
  isa-pnp                27784   0  [smc-ultra]
  ide-scsi                7424   0
  ide-cd                 26048   0
  cdrom                  27072   0  [sr_mod ide-cd]
  ide-mod               129036   2  [ide-disk ide-probe-mod ide-scsi  
     ide-cd]
  rtc                     5368   0  (autoclean)
  ext2                   30304   6  (autoclean)
  sd_mod                 10428  10  (autoclean)
  ext3                   56224   0  (autoclean)
  jbd                    34840   0  (autoclean) [ext3]
  aic7xxx               103648   5  (autoclean)
  scsi_mod               84792   6  (autoclean) [sr_mod st sg ide-    
    scsi sd_mod aic7xxx]
  unix                   13316 101  (autoclean)

(I've listed it in full as I think there may be too many ide handlers 
there.)

The old (defective) scsi-cdwriter still loads fine and reads CDs fine 
but cdrecord can't see the ide one.  cdrecord -scanbus shows only the 
true scsi devices and cdrecord -v dev=ATAPI: -scanbus gives:
  Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg      
       Schilling
  TOC Type: 1 = CD-ROM
  WARNING: device not valid, trying to use default target...
  scsidev: 'ATAPI:'
  devname: 'ATAPI'
  scsibus: 0 target: 6 lun: 0
  cdrecord: No such file or directory. Cannot open 'ATAPI'. Cannot    
     open SCSI driver.
  cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure   
   you are root.

cat /proc/scsi/scsi only shows the true SCSI devies
cat /proc/scsi/ide-scsi/1 (the only file there) shows only a standard 
strapline (I guess):
  SCSI host adapter emulation for IDE ATAPI devices

I'm baffled.  PSYCTC: Psychotherapy, Psychology, Psychiatry, 
Counselling
   and Therapeutic Communities; practice, research, 
   teaching and consultancy.
Chris Evans & Jo-anne Carlyle
http://psyctc.org/ Email: chris@psyctc.org



Reply to: