It is currently Tue, 21 May 2013 16:28:55 GMT



 
Author Message
 Problems running cdrecord -scanbus
Hi,

    Thanks very much for your help so far.

    I installed the cdrecord package - no problem. Note my Linux admin
knowledge encompasses RPM installation only.

    Now the next problem. I have read the documentation that was installed
into /usr/shar/doc by the cdrecord rpm and read the author's (Jorg
Schilling) Web site - but can't find the problem described.

I don't think cdrecord is being passed the right parameter - or there is
something else missing. This is best explained by me
showing the script I am trying to run, then the result of running
"cdrecord -scanbus" from the shell prompt. I am running this under root.

Script first:

[root@AMD500-Linux /crltemp]# cat cdwr-driver
test `whoami` = 'root' || echo "You must be root to execute the commands."
    cdrecord -scanbus > /dev/null
    if ! (pidof kerneld || test -f "/proc/sys/kernel/modprobe"); then
        echo "Neither kerneld nor kmod are running to automatically load
modules".
    fi
    report_no_autoload() {
        echo "Ensure the module $1 is loaded automatically next time."
    }
    if test ! -f "/proc/scsi/scsi"; then
        report_no_autoload scsi_mod  &&  insmod scsi_mod
    fi
    if ! grep "^........ sg_" /proc/ksyms > /dev/null; then
        report_no_autoload sg  &&  insmod sg
    fi
    if ! grep "^........ sr_" /proc/ksyms > /dev/null; then
        report_no_autoload sr_mod  &&  insmod sr_mod
    fi
    if ! grep "^........ loop_" /proc/ksyms > /dev/null; then
        report_no_autoload loop  &&  insmod loop
    fi
    if ! grep iso9660 /proc/filesystems > /dev/null; then
        report_no_autoload iso9660  &&  insmod iso9660
    fi
    echo "The following is only needed for IDE/ATAPI CD-writers."
    if ! grep ide-scsi /proc/ide/drivers > /dev/null; then
        report_no_autoload ide-scsi  &&  insmod ide-scsi

Next the result of running the command interactively:

[root@AMD500-Linux /crltemp]# cdrecord -scanbus
Cdrecord 1.9 (i686-pc-linux-gnu) Copyright (C) 1995-2000 J?rg Schilling
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are
root.
[root@AMD500-Linux /crltemp]#

Thanks,

Clive

news:slrn9l0qjr.184.nitro@Zenith.starcenter...



 Fri, 02 Jan 2004 16:34:57 GMT   
 Problems running cdrecord -scanbus

Your CD Recorder is not a SCSI Cd and/or the ide-scsi layer is not
installed. So the CD is not recognized as a SCSI one.

In a nutshell: if you have a IDE CD recorder, you need to tell the
IDE driver to leave it alone (parameter hdX=ide-scsi in LILO), then
you need SCSI CD Rom support in the kernel.

See the CD-Writing-HOWTO that is a lot clear about that.

Davide



 Fri, 02 Jan 2004 17:24:34 GMT   
 Problems running cdrecord -scanbus
On Mon, 16 Jul 2001 09:34:57 +0100, clive_l...@onetel.net.uk
[snip]
[snip]

Forget that script.

First check if the necessary devices are available in /dev:
        ~$ ls /dev/scd*
        ~$ ls /dev/sg*
        ~$ ls /dev/loop*
If those are available, then proceed.

Now make sure that ide-scsi is loaded. If you're using a stock-kernel, you
probably need to load the appropriate module:
        ~# modprobe ide-scsi
See if the module is really loaded
        ~$ lsmod

Otherwise, recompile the kernel so it holds de scsi-emulation and support for
scsi-cdroms.

Next, make sure the following line is available in each section of
/etc/lilo.conf (section == from "image="... till the next "image=")
        append=" hd?=ide-scsi"
with ? being the appropriate letter of your CD-RW-drive [1]

Rerun lilo, reboot and run "cdrecord -scanbus". If ide-scsi isn't
automatically loaded, run "modprobe ide-scsi".

[1]     a       primary master
        b       primary slave
        c       secondary master
        d       secondary slave
--
 SwifT                     -    Key-ID CDBA2FDB
 LUG: http://www.lugwv.be  -    http://www.keyserver.net



 Fri, 02 Jan 2004 17:49:11 GMT   
 Problems running cdrecord -scanbus
Davide,

    Thanks for your suggestions.

    I originally started on the HOWTO - but I found it very light on the
problems I encountered. I found Feenberg's document much better for the
particular problem I faced - and I made much more progress using it. I think
his material should be absorbed pretty much wholesale into the HOWTO.

Clive
news:9iubsg$l6bmn$1@ID-18487.news.dfncis.de...



 Sat, 03 Jan 2004 03:07:49 GMT   
 Problems running cdrecord -scanbus

This is a sign that your cdrom is not properly set up for SCSI emulation.  
The easiest way to do that is to make sure that ATAPI cdrom support is NOT
compiled as a built-in (it can be a module) and that you build in SCSI
emulation, SCSI support, and SCSI generic support (SCSI cdrom support can
be a module).  Then your cdrom should appear as an SCSI device when you
boot and should appear when you 'cat /proc/scsi/scsi'.

Once you get that working, make sure that the /dev/cdrom symlink points to
/dev/scd0 (assuming that you have no other SCSI cdroms).  However, for
recording you would point to /dev/sg0 or whatever id,bus,lun cdrecord
-scanbus lists.

--
David Efflandt  http://www.de-srv.com/



 Sat, 03 Jan 2004 12:20:24 GMT   
 
   [ 5 post ] 

Similar Threads

1. cdrecord problems (cdrecord -scanbus returning error). Please help

2. cdrecord -scanbus problem

3. cdrecord -scanbus

4. cdrecord -scanbus doesn't show everything

5. cdrecord -scanbus

6. cdrecord -scanbus doesn't work

7. LM9.0 & cdrecord -scanbus

8. cdrecord -scanbus skips scsibus0?

9. cdrecord -scanbus: "Cannot open SCSI driver"

10. cdrecord -scanbus


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software