Can not open '/dev/sg0' - attach failed.

Can not open '/dev/sg0' - attach failed.

Post by Norbert Wol » Thu, 27 Mar 2003 18:40:13



On Wed, 26 Mar 2003 21:00:22 +0530

Quote:> cdrecord error
> ==============

> scsibus: 1 target: 0 lun: 0
> Cannot open '/dev/sg0'

> lsmod

> Module                  Size  Used by
> sg                     26688   0
> ide-scsi                8352   0
> ide-cd                 26848   0
> cdrom                  27232   0  [ide-cd]

High !

Your cdrom-Module seems to use the ide-cd-driver, so cdrecord's lib which needs
SCSI-emulation for IDE-Drives (I think your CD-RW is an IDE-one ?) cannot work.

You need to load the sr-Driver (Driver for SCSI-CDRoms) instead of the
ide-cd-driver.

Regards,

        Norbert

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Can not open '/dev/sg0' - attach failed.

Post by Felipe Alfaro Solan » Thu, 27 Mar 2003 20:50:22



> On Wed, 26 Mar 2003 21:00:22 +0530

> > cdrecord error
> > ==============

> > scsibus: 1 target: 0 lun: 0
> > Cannot open '/dev/sg0'

> > lsmod

> > Module                  Size  Used by
> > sg                     26688   0
> > ide-scsi                8352   0
> > ide-cd                 26848   0
> > cdrom                  27232   0  [ide-cd]

> High !

> Your cdrom-Module seems to use the ide-cd-driver, so cdrecord's lib which needs
> SCSI-emulation for IDE-Drives (I think your CD-RW is an IDE-one ?) cannot work.

> You need to load the sr-Driver (Driver for SCSI-CDRoms) instead of the
> ide-cd-driver.

Maybe he should boot the kernel with "hdx=ide-scsi" appended to force
using IDE-SCSI emulation on his CD-RW drive.

Another possibility is reconfiguring cdrecord to use "ATAPI=" or
"/dev/hdx" device naming conventions, thus using ATAPI instead of
IDE-SCSI. I have been doing this as IDE-SCSI in 2.5 is not stable
enough.

Quote:

> ______________________________________________________________________
>        Felipe Alfaro Solana
>    Linux Registered User #287198
> http://counter.li.org

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. What is the difference between /dev/sg0, /dev/scd0 /dev/hdd and /dev/cdrom ?

Hi people.

I'm trying to debug a problem that I'm having with my CDROM player and
cdparanoia.  They crash talking to each other.

What is the difference between accessing the cdrom via /dev/sg0,
/dev/scd0, /dev/cdrom and /dev/hdd ?

/dev/cdrom is a link, right ?  It is a hard or soft link ?  How would I
point it to something else ?

cdparanoia needs to access the CDROM via a scsi interface.  In order for
that to work, one needs to turn OFF ATAPI CDROM support in the kernel and
turn on general scsi and CDROM scsi support.

Right now my /dev/cdrom device points to /dev/scd0.  Given that cdparanoia
needs a scsi interface, shouldn't this point to /dev/sg0 ?

Furthermore, grub load the following: hdd=ide-scsi.  That means that the
IDE ATAPI CDROM drive will be accessed using the scsi interface, right ?
Could I not point /dev/cdrom to /dev/hdd ?

Thanks,
Nobody

2. Mounting a flopp disk

3. Dev's Dev's Dev's

4. Requesting opinions on C2 security

5. sox: Can't open output file '/dev/dsp': No such device

6. dump levels

7. tape: can't open '/dev/rStp0': No such device or address

8. FACE Interface

9. It's not bad canned meat...

10. BOOTP doesn't work - fails trying to open /dev/inet/route

11. ``Driver not attached'' (prtconf)

12. 4.8 startx can't open /dev/io (or /dev/mem)