You are not logged in.

#1 2003-02-12 00:29:35

JDawson
Member
Registered: 2003-01-16
Posts: 28

SCSI emulation with 2.4.21pre4 kernel...

Hey Everyone,

I know this may sound dumb, but i cannot find scsi-emulation in this kernel.  I look under "Block Device" and its not in there and i have also looked in the "ATA/IDE....." and cannot find it.  Anyone who can help please reply.

Thanx

Offline

#2 2003-02-12 02:37:22

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: SCSI emulation with 2.4.21pre4 kernel...

but its there i got mine setup take a look at mi config
routty.dhis.org/config


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#3 2003-02-12 03:30:07

JDawson
Member
Registered: 2003-01-16
Posts: 28

Re: SCSI emulation with 2.4.21pre4 kernel...

I see that you have some scsi support under your configuration, but i need emulation support for my cd-rw drive?  Not sure i have never opened a scsi file like that..

n/m i figured out that i need scsi support also smile thank you

Offline

#4 2003-02-12 05:42:48

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

Re: SCSI emulation with 2.4.21pre4 kernel...

have you tried using the config file from /usr/abs/base/kernel/ ? i would imagine it would work and then you can trim out what you don't want.


AKA uknowme

I am not your friend

Offline

#5 2003-02-12 13:22:43

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: SCSI emulation with 2.4.21pre4 kernel...

tel me someting does your cdrw is ide or scsi ?
if its ide you need scsi emulation
just pass te option to the lilo conf


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#6 2003-02-12 14:53:44

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: SCSI emulation with 2.4.21pre4 kernel...

here had this to your lilo.conf
append = "hdd=ide-scsi "
please remenber my cdrw is hdd yours maybe other keep that in mind


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#7 2003-02-12 16:25:04

JDawson
Member
Registered: 2003-01-16
Posts: 28

Re: SCSI emulation with 2.4.21pre4 kernel...

not sure where to add that to my lilo.conf file but under my /proc/scsi directory i have a ide-scsi directory that has a file call 0 in it.  When i less that file it says:

SCSI host adapter emulation for IDE ATAPI devices

Not sure if thats enough or not...i can't get gcombust to find my drive...how would you find out where it is for example i tried 0,2,0 and 0,6,0 but neither worked.  I looked in the pci file to see if it would tell me but only teh nic, vid, sound, chipset, and ide were in there.

Offline

#8 2003-02-12 17:09:34

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

Re: SCSI emulation with 2.4.21pre4 kernel...

first put the append line in your lilo.conf file just above the read-only line.
if you are unsure of the "hdx" designation then just run dmesg and it will give you a drive letter designation for your burner.

then reboot and su to root

then :

cdrecord -scanbus should give you your device location (likely 0,0,0 or 0,1,0 depending on just how many scsi drives you have)


AKA uknowme

I am not your friend

Offline

#9 2003-02-12 20:07:04

JDawson
Member
Registered: 2003-01-16
Posts: 28

Re: SCSI emulation with 2.4.21pre4 kernel...

I don't have a scsi drive it is just a cd-rw in my laptop.  Do i still need to setup the lilo.conf file?  I am not sure why i would need this in the lilo.conf file?  I am completely confused  roll

Offline

#10 2003-02-12 23:29:29

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

Re: SCSI emulation with 2.4.21pre4 kernel...

yes it does still need to be setup for any burner if you do not have the line in lilo.conf you drive will basically not be detected as a burning device as no scsi emulation is assigned to it. here is a look at my lilo.conf

image=/boot/vmlinuz
        label=arch
        root=/dev/discs/disc0/part1
        append="hdd=ide-scsi"
        read-only

add the line (please note that if this is the only cd drive in the computer your line would likely be append="hdc=ide-scsi"). run lilo and reboot. then run "cdrecord -scanbus" (without quotes) and your drive should be listed like so:

root@ArchLinux:/home/sarah/Arch/unofficial/network/urlview> cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
scsibus0:
        0,0,0     0) 'TEAC    ' 'CD-W524E        ' '1.0B' Removable CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *

EDIT: all burners require scsi emulation regardless of whether they are ide or usb devices. even in other OSes burners are emulated scsi devices.


AKA uknowme

I am not your friend

Offline

#11 2003-02-13 00:25:21

BluPhoenyx
Member
Registered: 2002-12-23
Posts: 239

Re: SCSI emulation with 2.4.21pre4 kernel...

FWIW, I have never had to add the append line when using modules for this. For this to work, both the ide-cd and the scsi-emulation must be modules otherwise the ide-cdrom module gets in the way. Also, I'm not sure if it's required but I include the scsi-cd as a module also. With the kernel's PnP it should load the ide-cd module for standard cdrom and the scsi-emulation for cdrw. At least this seems to work for me.


BluPhoenyx

Offline

#12 2003-02-13 01:11:14

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

Re: SCSI emulation with 2.4.21pre4 kernel...

this is true but i believe that the kernel has ide-cd as built in and ide-scsi as module. also for people like me it is needed because my one dvdcdrom drive i chose not to scsi emulate


AKA uknowme

I am not your friend

Offline

#13 2003-02-13 02:20:19

BluPhoenyx
Member
Registered: 2002-12-23
Posts: 239

Re: SCSI emulation with 2.4.21pre4 kernel...

sarah31 wrote:

this is true but i believe that the kernel has ide-cd as built in and ide-scsi as module. also for people like me it is needed because my one dvdcdrom drive i chose not to scsi emulate

Ah well, this is why I advocate that people should build their own kernels. What works for one, may not be right for another. For myself, I prefer modules, although I wasn't always this way. I think most new users tend to shy away from using modules and building kernels. Perhaps because of lack of knowledge and/or fear of ruining things.

Is there a specific reason for not using the scsi-emulation?


BluPhoenyx

Offline

#14 2003-02-13 03:30:52

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

Re: SCSI emulation with 2.4.21pre4 kernel...

yeah i would not be able to view dvds in arch with scsi emulation on the drive as i need to use some hdparm setting to fix some controller issues. (this problem only presented it self in gentoo and arch not in debian/libranet which i used before and i have no idea why unless it is devfs related).


AKA uknowme

I am not your friend

Offline

#15 2003-02-13 06:31:23

JDawson
Member
Registered: 2003-01-16
Posts: 28

Re: SCSI emulation with 2.4.21pre4 kernel...

i will put the scsi emulation as a module now, because when i add that like into the lilo.conf file with it built into the kernel i can't use my cd drive...i will have to mess with this more tomorrow.

Thank you for all of the response smile

Offline

#16 2003-02-13 14:49:32

JDawson
Member
Registered: 2003-01-16
Posts: 28

Re: SCSI emulation with 2.4.21pre4 kernel...

So what would you suggest.  My for my laptop i have one drive which is a cd-rw/dvd combo.  just build modules for scsi-emulation and cdrom support and load them whenever i need to.  What about the lilo.conf file should i leave that line in there.  Seems like that would onerride the cdrom support.  Would i also want to modulaize the UDF support?

Offline

#17 2003-02-13 15:13:57

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

Re: SCSI emulation with 2.4.21pre4 kernel...

well i would build in both as modules just until you are sure that the dvd aspect works within scsi emulation ( it should). as for the lilo entry you could see if it works first with out then add it if you need to. don't forget to add the module loading instructions to modules.conf or rc.local though to save manual loading after booting.


AKA uknowme

I am not your friend

Offline

#18 2003-02-13 15:20:04

JDawson
Member
Registered: 2003-01-16
Posts: 28

Re: SCSI emulation with 2.4.21pre4 kernel...

Wont i need to only specify say the cd-rom support in the modules.conf file and then unload it and load the scsi-emulation when i need it?

also what would i add to the modules.conf file?

alias ide-cdrom cdrom

?????
the only thing i have ever put in there is eth0 sad

Offline

#19 2003-02-13 15:55:43

JDawson
Member
Registered: 2003-01-16
Posts: 28

Re: SCSI emulation with 2.4.21pre4 kernel...

Do i need to mount a blank cd?  I am trying to use gcombust but it says the device isn't there.  /dev/scsi/host0/bus0/target0/lun0 is there so i am not sure on how to mount this or if i need to, if so how would i go about this or add an entry into the fstab file?

Offline

#20 2003-02-13 17:07:11

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

Re: SCSI emulation with 2.4.21pre4 kernel...

first off you don't need to have ide-cd loaded unless you find the performance of your cdromm and dvd is affected in any way -- this is unlikely. your dvdcdrom should work as usual with scsi emulation always enabled.

not sure of the modules.conf entry becaus i ended out having to load all my scsi stuff via rc.local

you cannot mount a blank cd. you may have to change your fstab entry abit. or you may need to load a few more modules. if you could post your fstab and output of lsmod it would help.

EDIT oh and you asked about udf support. it is not needed as you do not have to have it to read a dvd that is mainly for reading data dvds or for dvd burning i cannot remember which but if you just watch dvds you don't need it.


AKA uknowme

I am not your friend

Offline

#21 2003-02-14 03:41:42

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: SCSI emulation with 2.4.21pre4 kernel...

for me works just fine apending the line in lilo.conf and like sara i to use rc local to load the
ide-scsi module


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#22 2003-02-14 04:12:10

BluPhoenyx
Member
Registered: 2002-12-23
Posts: 239

Re: SCSI emulation with 2.4.21pre4 kernel...

According to my setup and the output of lsmod and dmesg, the kernel selects the proper module for my dvd just fine (likewise on my other system and several which I have built) without adding to the append line for lilo or modifying any startup files. The first time the drive is accessed, the kernel loads the modules needed.

I can't guarantee this for the default kernel because I build my own. If the default AL kernel has the cdrom code built into it then you will have to specify ide or scsi. You also have to consider the differences in hardware which can cause possible conflicts. But whichever methods makes you feel more secure is the proper one for you. sarah31 offered the best advice, try them out and see which one works for you. If the ide-scsi setup works without degradation in performance, go with that.


BluPhoenyx

Offline

#23 2003-02-14 16:29:42

JDawson
Member
Registered: 2003-01-16
Posts: 28

Re: SCSI emulation with 2.4.21pre4 kernel...

I have now made everything modular.  But when i do the cdrecord -scanbus i get the following output:

Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg 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

Do i need to make a link to something so it gets the scsi-driver?
Here are what lsmod shows after i do an modprobe of cdrom, ide-cd, ide-scsi and sd:

Module                  Size  Used by    Not tainted
sg                     28428   0  (autoclean) (unused)
ide-scsi               10512   0
scsi_mod               56852   2  [sg ide-scsi]
ide-cd                 32476   0
cdrom                  29600   0  [ide-cd]

Do i need to remove some of the modules before the cd-rw will work?

Here is my fstab file:
# /etc/fstab: static file system information
#
# <file system>        <dir>     <type>    <options>              <dump> <pass>

#/dev/#EXT2FS_BOOT#    /boot     ext2      defaults               0      1
#/dev/#REISERFS_ROOT#  /         reiserfs  defaults               0      0
#/dev/#EXT2FS_ROOT#    /         ext2      defaults               0      1
#/dev/#SWAP#           swap      swap      defaults               0      0
#/dev/#REISERFS_HOME#  /home     reiserfs  defaults               0      0
#/dev/#EXT2FS_HOME#    /home     ext2      defaults               0      2

/dev/cdroms/cdrom0     /mnt/cd   iso9660   ro,user,noauto,unhide  0      0
/dev/cdroms/cdrom0     /mnt/dvd  udf       ro,user,noauto,unhide  0      0
/dev/floppy/0          /mnt/fl   vfat      user,noauto,unhide     0      0
none                   /proc     proc      defaults               0      0
none                   /dev/shm  tmpfs     defaults               0      0
tmpfs                  /tmp      tmpfs     size=2G,nr_inodes=10k  0      0

/dev/discs/disc0/part7 swap swap defaults 0 0
/dev/discs/disc0/part5 / ext3 defaults 0 1
/dev/discs/disc0/part6 /home ext3 defaults 0 1
/dev/discs/disc0/part1 /boot ext3 defaults 0 1

Offline

#24 2003-02-14 16:54:26

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

Re: SCSI emulation with 2.4.21pre4 kernel...

were you root when you tried cdrecord scanbus? you must be root to do any burning until you setuid on crecord.


AKA uknowme

I am not your friend

Offline

#25 2003-02-14 17:03:43

JDawson
Member
Registered: 2003-01-16
Posts: 28

Re: SCSI emulation with 2.4.21pre4 kernel...

yes i was root?  Do i have the wrong modules loaded or something?  Awhile back i saw somthing that was saying that ide cdrom support can interfere with scsi emulation...is this true?

Offline

Board footer

Powered by FluxBB