Find the answer to your Linux question:
Results 1 to 8 of 8
Hello everybody, I have a hard problem. I'm trying to get my CRD-8482B, ATAPI CD/DVD-ROM drive work with scsi emulation. I can't mount the cdrom drive unless I do a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    20

    CDROM w/ scsi emulation can't be mounted


    Hello everybody,

    I have a hard problem. I'm trying to get my CRD-8482B, ATAPI CD/DVD-ROM drive work with scsi emulation. I can't mount the cdrom drive unless I do a manual insmod on the scsi_mod, sg, sr_mod drivers. I am using Debian Woody on a 2.4.18-686 kernel
    (I get a error saying /cdrom is not a valid drive or something like that)
    When the modules are loaded manually everything works but having to do this is irritating ofcourse

    I have never used scsi emulation but I really think it's funny this won't work.
    I have added the modules to /etc/modules

    Can anybody tell me what's going wrong ?

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Just add "alias block-major-11 sr_mod" to /etc/modules.conf. What did you mean when you said that you have added them to /etc/modules?

  3. #3
    Just Joined!
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    20
    Sorry for the long time before I reply - but I thought I had the settings enabled to get a message when a reply was posted.
    Anyway, I added the line now.

    I've got this in /etc/modules:

    Code:
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file should contain the names of kernel modules that are
    # to be loaded at boot time, one per line.  Comments begin with
    # a "#", and everything on the line after them are ignored.
    
    unix
    af_packet
    dmfe
    hid
    usb-uhci
    emu10k1
    # scsi emulation
    scsi_mod
    sg
    sr_mod
    loop
    iso9660
    ide-scsi
    I didn't test wether the change solves the problem - I'm going to try soon and I'll let you know wether this has solved my problems.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    20
    The added line didn't do the job... but maybe I added it at the wrong place ?
    To be sure, I add the code here:
    Code:
    ### This file is automatically generated by update-modules"
    #
    # Please do not edit this file directly. If you want to change or add
    # anything please take a look at the files in /etc/modutils and read
    # the manpage for update-modules.
    #
    ### update-modules: start processing /etc/modutils/0keep
    # DO NOT MODIFY THIS FILE!
    # This file is not marked as conffile to make sure if you upgrade modutils
    # it will be restored in case some modifications have been made.
    #
    # The keep command is necessary to prevent insmod and friends from ignoring
    # the builtin defaults of a path-statement is encountered. Until all other
    # packages use the new `add path'-statement this keep-statement is essential
    # to keep your system working
    keep
    
    ### update-modules: end processing /etc/modutils/0keep
    
    ### update-modules: start processing /etc/modutils/actions
    # Special actions that are needed for some modules
    
    # The BTTV module does not load the tuner module automatically,
    # so do that in here
    post-install bttv insmod tuner
    post-remove bttv rmmod tuner
    
    
    ### update-modules: end processing /etc/modutils/actions
    
    ### update-modules: start processing /etc/modutils/aliases
    # Aliases to tell insmod/modprobe which modules to use 
    
    # Uncomment the network protocols you don't want loaded:
    # alias net-pf-1 off		# Unix
    # alias net-pf-2 off		# IPv4
    # alias net-pf-3 off		# Amateur Radio AX.25
    # alias net-pf-4 off		# IPX
    # alias net-pf-5 off		# DDP / appletalk
    # alias net-pf-6 off		# Amateur Radio NET/ROM
    # alias net-pf-9 off		# X.25
    # alias net-pf-10 off		# IPv6
    # alias net-pf-11 off		# ROSE / Amateur Radio X.25 PLP
    # alias net-pf-19 off		# Acorn Econet
    
    alias char-major-10-175	agpgart
    alias char-major-10-200	tun
    alias char-major-81	bttv
    alias char-major-108	ppp_generic
    alias /dev/ppp		ppp_generic
    alias tty-ldisc-3	ppp_async
    alias tty-ldisc-14	ppp_synctty
    alias ppp-compress-21	bsd_comp
    alias ppp-compress-24	ppp_deflate
    alias ppp-compress-26	ppp_deflate
    
    # Crypto modules (see http://www.kerneli.org/)
    alias loop-xfer-gen-0	loop_gen
    alias loop-xfer-3	loop_fish2
    alias loop-xfer-gen-10	loop_gen
    alias cipher-2		des
    alias cipher-3		fish2
    alias cipher-4		blowfish
    alias cipher-6		idea
    alias cipher-7		serp6f
    alias cipher-8		mars6
    alias cipher-11		rc62
    alias cipher-15		dfc2
    alias cipher-16		rijndael
    alias cipher-17		rc5
    
    #start custom addons
           options ide-cd ignore=hdc            # tell the ide-cd module to ignore hdc
           alias scd0 sr_mod                    # load sr_mod upon access of scd0
           pre-install ide-scsi modprobe imm    # uncomment for some ZIP drives only
           pre-install sg     modprobe ide-scsi # load ide-scsi before sg
           pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
           pre-install ide-scsi modprobe ide-cd # load ide-cd   before ide-scsi
    alias block-major-11 sr_mod
    
    # end custom addons
    
    
    ### update-modules: end processing /etc/modutils/aliases
    
    ### update-modules: start processing /etc/modutils/diald
    alias tap0	ethertap
    options tap0	-o tap0 unit=0
    alias tap1	ethertap
    options tap1	-o tap1 unit=1
    
    ### update-modules: end processing /etc/modutils/diald
    
    ### update-modules: start processing /etc/modutils/nvidia-kernel
    alias /dev/nvidia* nvidia
    alias char-major-195 nvidia
    
    ### update-modules: end processing /etc/modutils/nvidia-kernel
    
    ### update-modules: start processing /etc/modutils/paths
    # This file contains a list of paths that modprobe should scan,
    # beside the once that are compiled into the modutils tools
    # themselves.
    
    
    ### update-modules: end processing /etc/modutils/paths
    
    ### update-modules: start processing /etc/modutils/ppp
    alias /dev/ppp          ppp_generic
    alias char-major-108    ppp_generic
    alias tty-ldisc-3       ppp_async  
    alias tty-ldisc-14      ppp_synctty
    alias ppp-compress-21   bsd_comp   
    alias ppp-compress-24   ppp_deflate
    alias ppp-compress-26   ppp_deflate
    
    ### update-modules: end processing /etc/modutils/ppp
    
    ### update-modules: start processing /etc/modutils/setserial
    #
    # This is what I wanted to do, but logger is in /usr/bin, which isn't loaded
    # when the module is first loaded into the kernel at boot time!
    #
    #post-install serial /etc/init.d/setserial start | logger -p daemon.info -t "setserial-module reload"
    #pre-remove serial /etc/init.d/setserial stop | logger -p daemon.info -t "setserial-module uload"
    #
    alias /dev/tts          serial
    alias /dev/tts/0        serial
    alias /dev/tts/1        serial
    alias /dev/tts/2        serial
    alias /dev/tts/3        serial
    post-install serial /etc/init.d/setserial modload > /dev/null 2> /dev/null
    pre-remove serial /etc/init.d/setserial modsave  > /dev/null 2> /dev/null
    
    ### update-modules: end processing /etc/modutils/setserial
    
    ### update-modules: start processing /etc/modutils/arch/i386
    alias parport_lowlevel parport_pc
    alias char-major-10-144 nvram
    alias binfmt-0064 binfmt_aout
    alias char-major-10-135 rtc
    
    ### update-modules: end processing /etc/modutils/arch/i386
    I hope you can help me !

    regards,

    Joris

  6. #5
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Quote Originally Posted by jhuizer
    Code:
    pre-install ide-scsi modprobe imm
    I'm not sure if this is why it fails, but do you really have a parallell port ZIP driver?

    Run modprobe -c and verifythat everythings looks right. Also check for any kernel or modprobe messages in /var/log/messages when you try to access to CD ROM.

  7. #6
    Just Joined!
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    20
    I wasn't so sure the IOMEGA zip drive was parralell (though I allready thought so) so I tried: when I remove the
    pre-install ide-scsi modprobe imm
    the cdrom mounts without a problem - and the IOMEGA can't be mounted anymore

    When I tried mouning cdroms before doing so, I got this from /var/log/messages:
    Code:
    Apr 14 19:39:02 debian kernel: imm: Version 2.05 (for Linux 2.4.0)
    Apr 14 19:39:02 debian kernel: Uniform CD-ROM driver unloaded
    After the change (and a reboot - that is neccesary with hardware stuff right ?) I get, when mounting ZIPs :
    Code:
    Apr 14 19:44:06 debian kernel: hdd4: bad access: block=0, count=1
    Apr 14 19:44:06 debian kernel: end_request: I/O error, dev 16:44 (hdd), sector 0
    Apr 14 19:44:06 debian kernel: FAT: unable to read boot sector
    So I guess your assumptions were correct: imm is causing problems.
    Can you please tell me what to do? Is it possible to mount the ZIP without using imm ?

  8. #7
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    and a reboot - that is neccesary with hardware stuff right ?
    Rebooting is never necessary, unless you want to boot a new kernel. Just reloading all the related modules would have been enough.

    Anyhow. Try loading the modules manually in different orders, and see if any specific order works.

  9. #8
    Just Joined!
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    20
    As I'm really not getting what's exactly going wrong with the imm, I currently stopped trying and changed back to the situation without scsi.

    However, I'm planning to buy a LiteOn CD RW. You'll find the info at http://www.liteonit.com/english/new_...p-rw522452.htm

    I'm affraid that one will cause me to fix scsi again... I hope it won't be such a pain as the combo CD-R / IOMEGA but...

    So, in short - I'll probably repost here unless I'm very lucky

    thanks for your help,

    Joris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •