You are not logged in.

#1 2003-11-06 07:56:22

jedthehumanoid
Member
From: Chicago, Il
Registered: 2003-07-28
Posts: 19

scsi-emulation problem

ok, i'm trying to setup scsi emulation and i getting kind of frustrated.  first off, let me let you know what i've done so far:

in /etc/rc.conf:

MODULES=(scsi_mod sg)

in /etc/modules.conf:

alias scsi_hostadapter ide-scsi

and finally in /boot/grub/menu.lst:

# (0) Arch Linux
title Arch Custom [/boot/vmlinuz.custom]
root (hd0,1)
kernel (hd0,0)/vmlinuz.custom root=/dev/discs/disc0/part2 ro hdc=ide-scsi apm=power-off

--------------------------------------------------------------------------------------------------------

now in the tail end of dmesg it reads:
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: PHILIPS   Model: DVDRW1208         Rev: 1.34
  Type:   CD-ROM                             ANSI SCSI revision: 02
Linux Tulip driver version 0.9.15-pre12 (Aug 9, 2002)
PCI: Found IRQ 11 for device 00:0f.0
PCI: Sharing IRQ 11 with 00:0d.0
eth0: ADMtek Comet rev 17 at 0xe000, 00:04:5A:73:F8:3D, IRQ 11.
eth0: no IPv6 routers present
cdrom: open failed.
cdrom: open failed.
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
UDF-fs DEBUG lowlevel.c:57:udf_get_last_session: XA disk: no, vol_desc_start=0
UDF-fs DEBUG super.c:1421:udf_read_super: Multi-session=0
UDF-fs DEBUG super.c:410:udf_vrs: Starting at sector 16 (2048 byte sectors)
UDF-fs DEBUG super.c:437:udf_vrs: ISO9660 Primary Volume Descriptor found
UDF-fs DEBUG super.c:434:udf_vrs: ISO9660 Boot Record found
UDF-fs DEBUG super.c:440:udf_vrs: ISO9660 Supplementary Volume Descriptor found
UDF-fs DEBUG super.c:446:udf_vrs: ISO9660 Volume Descriptor Set Terminator found
UDF-fs: No VRS found
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module  1.0-4363  Sat Apr 19 17:46:46 PDT 2003
PCI: Found IRQ 5 for device 00:09.0
Crystal 4280/46xx + AC97 Audio, version 1.28.32, 13:25:50 Oct 30 2003
cs46xx: Card found at 0xf6106000 and 0xf6000000, IRQ 5
cs46xx: Voyetra (5053:3357) at 0xf6106000/0xf6000000, IRQ 5
ac97_codec: AC97 Audio codec, id: CRY20 (Cirrus Logic CS4297A rev B)


so now for cdrecord:

[root@thompson root]# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
[root@thompson root]# exit


i don't understand why scanbus is doing this.  permission denied!?  i'm root wtf more do you want!? :shock:  can someone give me a hint as to what it's really trying to say.....

thanks in advance....

Offline

#2 2003-11-06 15:42:17

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: scsi-emulation problem

You probably want to load the other scsi modules.  sr_mod, sg, sd_mod (I can never remember which one I need so I just load them all).  The ide device exists as a scsi device, but doesn't have any scsi driver loaded to interface with it.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#3 2003-11-06 16:20:18

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: scsi-emulation problem

well i load ide-scsi sr_mod sd_mod and sg via rc.conf and then have the grub entry for my drive.

i dunno if i need them but i have not had permission issues at all so you may wanna try it.


AKA uknowme

I am not your friend

Offline

#4 2003-11-06 17:03:57

jedthehumanoid
Member
From: Chicago, Il
Registered: 2003-07-28
Posts: 19

Re: scsi-emulation problem

ok, i loaded the other modules and that got rid of the DEBUG lines in dmesg.  however, cdrecord was still giving me that error, so i got rid of the line i had in modules,conf and setup rc.conf to load the ide-scsi module and still it gives me that error.

Offline

#5 2003-11-06 17:37:17

jedthehumanoid
Member
From: Chicago, Il
Registered: 2003-07-28
Posts: 19

Re: scsi-emulation problem

ok, i removed cdrtools* from /var/cache/pacman/pkg, then did a pacman -S cdrtools so that it would install from a new download.  afterwards, cdrecord -scanbus reacts as expected.  thanks for the guidance.....

Offline

#6 2003-11-06 19:02:29

vande198
Member
From: East Lansing, MI, USA
Registered: 2003-09-12
Posts: 98

Re: scsi-emulation problem

I have a similar problem.  I set up my atapi cd-burner to the exact same specifications as above (except to hdd where my cd burner resides), and k3b gives me this error:

/usr/bin/cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
/usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
/usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
TOC Type: 1 = CD-ROM
/usr/bin/cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
/usr/bin/cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
/usr/bin/cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

Here's my cdrecord -scanbus

[root@vande198 jake]# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus1:
        1,0,0   100) 'ATAPI   ' 'CD-RW 52X24     ' 'K.GC' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *

What am I doing wrong here?

P.S. do I need kernel-scsi for scsi emulation?


"To be a Spartan is to be a philosopher much more than to be an athlete."
Plato, the <i>Protagoras</i>, 342e-343a

Offline

#7 2003-11-06 19:09:17

jedthehumanoid
Member
From: Chicago, Il
Registered: 2003-07-28
Posts: 19

Re: scsi-emulation problem

vande198 wrote:

P.S. do I need kernel-scsi for scsi emulation?

you shouldn't need the scsi kernel for scsi emulation.

Offline

#8 2003-12-06 21:02:12

gnomebox
Member
Registered: 2003-08-05
Posts: 14
Website

Re: scsi-emulation problem

My cdrecord is screwed I think, because I get this when I type 'cdrecord -scanbus'

[root@thor root]# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jrg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
[root@thor root]#

Any ideas?

I have hdd=ide-scsi in my grub menu.lst file, where hdd is my burner, and I also have ide-scsi support compiled into my kernel.

Offline

#9 2003-12-06 21:08:47

Blaasvis
Member
Registered: 2003-01-17
Posts: 467

Re: scsi-emulation problem

sr_mod is loaded ?


Freedom is what i love

Offline

#10 2003-12-06 21:29:47

gnomebox
Member
Registered: 2003-08-05
Posts: 14
Website

Re: scsi-emulation problem

not that I know of...

I don't even have scsi compiled into my kernel...

Offline

#11 2003-12-06 21:58:15

Blaasvis
Member
Registered: 2003-01-17
Posts: 467

Re: scsi-emulation problem

load it then wink


Freedom is what i love

Offline

#12 2003-12-07 01:23:27

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 452
Website

Re: scsi-emulation problem

A friend of mine has an excellent page on this subject at
http://linux.sgms-centre.com/howto/cdwriting.php

HTH

Scott

Offline

#13 2003-12-07 21:34:34

gnomebox
Member
Registered: 2003-08-05
Posts: 14
Website

Re: scsi-emulation problem

I've burned cd's in linux before, I'm not stupid, but this is whats weird:

With lilo installed, having hdd=ide-scsi allows cdrecord to see the rom, but it won't burn

With grub installed, and the same hdd=ide-scsi, it can't see the rom and still won't burn

Go figure...

Offline

#14 2003-12-07 21:59:32

Blaasvis
Member
Registered: 2003-01-17
Posts: 467

Re: scsi-emulation problem

i had the same problem... i needed to load sr_mod.
i am using the standaard kernel wink

else post you lsmod output here.


Freedom is what i love

Offline

#15 2003-12-08 18:30:48

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,366
Website

Re: scsi-emulation problem

how i use a ATAPI-CDRW drive under arch (no problems)

1)
scsi-emulation:

lilo.conf
append="hdc=ide-scsi"

rc.conf
MODULES=(ide-scsi sr_mod sd_mod)

[damir@Asteraceae damir]$ cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus0:
[...some devs i dont like to post here... nothing to do with burning ... ]
scsibus1:
        1,0,0   100) 'HL-DT-ST' 'RW/DVD GCC-4240N' '0211' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *

-> i do have nothing in modules.conf and the MODULES in rc.conf is a really nice thing in arch :-)


2)
directly:
xcdroast can burn directly to ATAPI drives with cdrtools (the standard one)


The impossible missions are the only ones which succeed.

Offline

#16 2003-12-08 19:19:35

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: scsi-emulation problem

You can also check the permissions on cdrecord.  For it to run as a regular user, you're gonna want to +s it, otherwise it won't be able to make the proper ioctl calls or access the devices right.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#17 2003-12-08 21:19:35

gnomebox
Member
Registered: 2003-08-05
Posts: 14
Website

Re: scsi-emulation problem

mod_sr was right.

That got it working.

Thanks.

Offline

Board footer

Powered by FluxBB