> From: "Benjamin J. Weiss" <[EMAIL PROTECTED]>
> Date: Thu, 17 Jul 2003 18:12:28 -0500
>
> > I've now got what I think is everything...except for one leetle
> > detail: /dev/cdrom was never created, and I haven't figured 
> > out how to identify what device to link to.
>
> Mine is linked to /dev/scd0.

Well, I worked at it later last night, and finally Got It.
For anyone reading this, here's what I had to do to get RH 9 to accept a 
PCMCIA-attached cdrom:
        0. a) In my laptop's BIOS, I told it to not auto-detect for PCMCIA, 
                but to use PCIC emulation.
            b) $> sudo mkdir /mnt/cdrom

        1. The RH install, in spite of detecting pcmcia, defaults it off.
                Edit /etc/sysconfig/pcmcia, to "yes". My laptop has an
                indsutry-std. Intel, so I added the PCIC. The result looks
                like this:
PCMCIA=yes
PCIC=i82365
PCIC_OPTS=
CORE_OPTS=

        2. I've got an old EXP CD Traveler 2020. The PCMCIA info 
                for Linux shows a couple of other EXP cards supported, 
                including another, older model of Traveler, so
           a) Open a second xterm, and do 
                        $> sudo tail -f /var/log/messages
                        This will let you see new lines appended to the
                        messages file as they occur. This way, if something
                        Not Good happens, you'll see.
           b)   Start PCMCIA: 
                        $> sudo /etc/rc.d/init.d/pcmcia start
           c)  Enter $> cardctl ident
                        What I got was 
Socket 0:
  product info: "EXP", "CD+GAME", "C2"
Socket 1:
  no product info available
           d) edit /etc/pcmcia/config as necessary. What I did was
                        to simply copy the entry for the older Traveler,
                        then change it to match the output from the last
                        command. That is, here's the original, and the
                        cloned entry:

card "EXP Traveler 620 CD-ROM"
  version "EXP", "CD+GAME", "C1"
  bind "ide-cs"
  
card "EXP Traveler 2020 CD-ROM"
  version "EXP", "CD+GAME", "C2"
  bind "ide-cs"
                        
           e) Since you've done all this editing of config files, 
                        stop PCMCIA services: 
                        $> sudo /etc/rc.d/init.d/pcmcia stop
                        and then start 'em again:
                        $> sudo /etc/rc.d/init.d/pcmcia start 

At this point, what you should see in the messages is something like this:

Jul 18 08:54:43 <yoursystemname> kernel: Linux Kernel Card Services 3.1.22
Jul 18 08:54:43 <yoursystemname> kernel:   options:  [pci] [cardbus] [pm]
Jul 18 08:54:43 <yoursystemname> kernel: Intel PCIC probe: 
Jul 18 08:54:43 <yoursystemname> kernel:   Intel i82365sl B step 
ISA-to-PCMCIA at port 0x3e0 ofs 0x00, 2 sockets
Jul 18 08:54:43 <yoursystemname> kernel:     host opts [0]: none
Jul 18 08:54:43 <yoursystemname> kernel:     host opts [1]: none
Jul 18 08:54:43 <yoursystemname> kernel:     ISA irqs (scanned) = 
3,4,5,7,9,10,15 status change on irq 15
Jul 18 08:54:44 <yoursystemname> cardmgr[4658]: starting, version is 3.1.31
Jul 18 08:54:44 <yoursystemname> cardmgr[4658]: watching 2 sockets
Jul 18 08:54:44 <yoursystemname> cardmgr[4658]: Card Services release does 
not match
Jul 18 08:54:44 <yoursystemname> kernel: cs: IO port probe 0x0c00-0x0cff: 
clean.
Jul 18 08:54:44 <yoursystemname> kernel: cs: IO port probe 0x0100-0x04ff: 
excluding 0x4d0-0x4d7
Jul 18 08:54:44 <yoursystemname> kernel: cs: IO port probe 0x0a00-0x0aff: 
clean.
Jul 18 08:54:44 <yoursystemname> kernel: cs: memory probe 0x0d0000-0x0dffff: 
clean.
Jul 18 08:54:44 <yoursystemname> cardmgr[4658]: socket 0: EXP Traveler 2020 
CD-ROM
Jul 18 08:54:44 <yoursystemname> cardmgr[4658]: executing: 'modprobe ide-cs'
Jul 18 08:54:47 <yoursystemname> kernel: hdc: OTI-911[10-3] ACE[0A.0A-08:20] 
DC24M 4S, ATAPI CD/DVD-ROM drive
Jul 18 08:54:47 <yoursystemname> kernel: ide1 at 0x320-0x327,0x32e on irq 3
Jul 18 08:54:47 <yoursystemname> kernel: ide-floppy driver 0.99.newide
Jul 18 08:54:47 <yoursystemname> kernel: ide_cs: hdc: Vcc = 5.0, Vpp = 0.0
Jul 18 08:54:47 <yoursystemname> cardmgr[4658]: executing: './ide start hdc'
Jul 18 08:55:06 <yoursystemname> kernel: ide-floppy driver 0.99.newide
Jul 18 08:55:06 <yoursystemname> kernel: hdc: attached ide-cdrom driver.
Jul 18 08:55:06 <yoursystemname> kernel: hdc: ATAPI 2X CD-ROM drive, 120kB 
Cache
Jul 18 08:55:06 <yoursystemname> kernel: Uniform CD-ROM driver Revision: 
3.12

Note that it *tells* you what device to refer to; in my case, it's hdc. Hmm, 
even as I write this, I just took a look, and the link /dev/cdrom->/dev/hdc  
seems to have been automagically added, as did the line in /etc/fstab:
/dev/cdrom   /mnt/cdrom    udf,iso9660 noauto,owner,kudzu,ro 0 0

We're done. Users can mount CD's too, not just root.

        mark "and there was much rejoicing"
-- 
"I say we take off and nuke the entire site from orbit.
 It's the only way to be sure."
                                        -- "Aliens"


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to