Loading ...
Sorry, an error occurred while loading the content.

RE: [linux-dell-laptops] How to get consistent device names for P CMCIA drives

Expand Messages
  • John_Hull@dell.com
    Check out the man page for devlabel, which should be installed with Fedora. It was written by Gary Lerhaupt here at Dell to resolve the exact issue that you re
    Message 1 of 4 , Jan 14, 2004
    • 0 Attachment
      Check out the man page for devlabel, which should be installed with Fedora.
      It was written by Gary Lerhaupt here at Dell to resolve the exact issue that
      you're seeing. It manages your storage devices through symlinks and will
      remap the links as the device names change, so that you can always access
      your device through the symlink instead of the specific device.


      -----Original Message-----
      From: jbuehl0001 [mailto:jbuehl0001@...]
      Sent: Wed 1/14/2004 10:37 PM
      To: linux-dell-laptops@yahoogroups.com
      Cc:
      Subject: [linux-dell-laptops] How to get consistent device names for
      PCMCIA drives
      I am running Fedora on a Latitude C640. I usually don't have the
      CDROM in the bay when I boot and if I insert a PCMCIA ide device it
      shows up as /dev/hdc1. If I happen to boot with the CDROM in, it gets
      detected on boot and an ide1 channel is created. If I then insert the
      PCMCIA device it shows up as /dev/hde1 because the PCMCIA ide channel
      gets created as ide2.

      How can I get the device designation for the PCMCIA device to be the
      same regardless of whether the CDROM is there or not? It seems that
      if I can force a CDROM device to always be defined on ide1 instead of
      auto detected that could solve it, but I haven't had much luck finding
      out which config file to do this in.

      Also, has anyone figured out hot swapping for the CDROM? I saw some
      posts a couple of months ago on the subject, but no resolution.

      Thanks.


      --------------------------------------------------------------
      Please post your X config files in the group links or database
      To unsubscribe, email: linux-dell-laptops-unsubscribe@yahoogroups.com
      FAQ: http://www.whacked.net/ldl/faq

      Yahoo! Groups Links

      To visit your group on the web, go to:
      http://groups.yahoo.com/group/linux-dell-laptops/

      To unsubscribe from this group, send an email to:
      linux-dell-laptops-unsubscribe@yahoogroups.com

      Your use of Yahoo! Groups is subject to:
      http://docs.yahoo.com/info/terms/
    • Sudhakar Govindavajhala
      good to see some dell folks on this list! makes me more enthusiastic about getting dell laptops. :-) i hope you people have plans to give more linux support.
      Message 2 of 4 , Jan 14, 2004
      • 0 Attachment
        good to see some dell folks on this list! makes me more enthusiastic about
        getting dell laptops. :-) i hope you people have plans to give more linux
        support. atleast provide drivers in the least. :-)


        sudhakar.



        On Thu, 15 Jan 2004 John_Hull@... wrote:

        > Check out the man page for devlabel, which should be installed with Fedora.
        > It was written by Gary Lerhaupt here at Dell to resolve the exact issue that
        > you're seeing. It manages your storage devices through symlinks and will
        > remap the links as the device names change, so that you can always access
        > your device through the symlink instead of the specific device.
        >
        >
        > -----Original Message-----
        > From: jbuehl0001 [mailto:jbuehl0001@...]
        > Sent: Wed 1/14/2004 10:37 PM
        > To: linux-dell-laptops@yahoogroups.com
        > Cc:
        > Subject: [linux-dell-laptops] How to get consistent device names for
        > PCMCIA drives
        > I am running Fedora on a Latitude C640. I usually don't have the
        > CDROM in the bay when I boot and if I insert a PCMCIA ide device it
        > shows up as /dev/hdc1. If I happen to boot with the CDROM in, it gets
        > detected on boot and an ide1 channel is created. If I then insert the
        > PCMCIA device it shows up as /dev/hde1 because the PCMCIA ide channel
        > gets created as ide2.
        >
        > How can I get the device designation for the PCMCIA device to be the
        > same regardless of whether the CDROM is there or not? It seems that
        > if I can force a CDROM device to always be defined on ide1 instead of
        > auto detected that could solve it, but I haven't had much luck finding
        > out which config file to do this in.
        >
        > Also, has anyone figured out hot swapping for the CDROM? I saw some
        > posts a couple of months ago on the subject, but no resolution.
        >
        > Thanks.
        >
        >
        > --------------------------------------------------------------
        > Please post your X config files in the group links or database
        > To unsubscribe, email: linux-dell-laptops-unsubscribe@yahoogroups.com
        > FAQ: http://www.whacked.net/ldl/faq
        >
        > Yahoo! Groups Links
        >
        > To visit your group on the web, go to:
        > http://groups.yahoo.com/group/linux-dell-laptops/
        >
        > To unsubscribe from this group, send an email to:
        > linux-dell-laptops-unsubscribe@yahoogroups.com
        >
        > Your use of Yahoo! Groups is subject to:
        > http://docs.yahoo.com/info/terms/
        >
        >
        >
        > --------------------------------------------------------------
        > Please post your X config files in the group links or database
        > To unsubscribe, email: linux-dell-laptops-unsubscribe@yahoogroups.com
        > FAQ: http://www.whacked.net/ldl/faq
        >
        > Yahoo! Groups Links
        >
        > To visit your group on the web, go to:
        > http://groups.yahoo.com/group/linux-dell-laptops/
        >
        > To unsubscribe from this group, send an email to:
        > linux-dell-laptops-unsubscribe@yahoogroups.com
        >
        > Your use of Yahoo! Groups is subject to:
        > http://docs.yahoo.com/info/terms/
        >
        >

        Sudhakar.



        Sudhakar Govindavajhala Department of Computer Science
        Graduate Student, Princeton University
        Ph : (c) +1 609 273 8407 (o) +1 609 258 1798
        http://www.cs.princeton.edu/~sudhakar
      • jbuehl0001
        Thanks. That definitely addresses the problem. I mapped /dev/hdc1 to /dev/compactflash and devlabel finds it if it moves to /dev/hde1. There s still an issue
        Message 3 of 4 , Jan 15, 2004
        • 0 Attachment
          Thanks. That definitely addresses the problem. I mapped /dev/hdc1 to
          /dev/compactflash and devlabel finds it if it moves to /dev/hde1.

          There's still an issue with it working during boot. devlabel is being
          called by rc.sysinit, however there seems to be a timing problem with
          the pcmcia devices getting started by the time it is called. I get an
          error when the device tries to get automounted. This was happening
          before I started using devlabel.

          Jan 15 08:03:33 ozzy kernel: Linux Kernel Card Services 3.1.22
          Jan 15 08:03:33 ozzy kernel: options: [pci] [cardbus] [pm]
          Jan 15 08:03:33 ozzy kernel: PCI: Found IRQ 11 for device 02:01.0
          Jan 15 08:03:33 ozzy kernel: PCI: Sharing IRQ 11 with 02:01.1
          Jan 15 08:03:33 ozzy kernel: PCI: Found IRQ 11 for device 02:01.1
          Jan 15 08:03:33 ozzy kernel: PCI: Sharing IRQ 11 with 02:01.0
          Jan 15 08:03:33 ozzy kernel: PCI: Found IRQ 11 for device 02:03.0
          Jan 15 08:03:33 ozzy kernel: PCI: Sharing IRQ 11 with 00:1f.5
          Jan 15 08:03:33 ozzy kernel: PCI: Sharing IRQ 11 with 00:1f.6
          Jan 15 08:03:33 ozzy kernel: Yenta IRQ list 06b8, PCI irq11
          Jan 15 08:03:33 ozzy kernel: Socket status: 30000010
          Jan 15 08:03:33 ozzy kernel: Yenta IRQ list 06b8, PCI irq11
          Jan 15 08:03:33 ozzy kernel: Socket status: 30000006
          Jan 15 08:03:33 ozzy kernel: Yenta IRQ list 0000, PCI irq11
          Jan 15 08:03:33 ozzy kernel: Socket status: 30000010
          Jan 15 08:03:33 ozzy kernel: ti113x: Routing card interrupts to PCI
          Jan 15 08:03:34 ozzy pcmcia: cardmgr.
          Jan 15 08:03:34 ozzy cardmgr[3625]: starting, version is 3.1.31
          Jan 15 08:03:34 ozzy rc: Starting pcmcia: succeeded
          Jan 15 08:03:34 ozzy mount: mount: special device /dev/compactflash
          does not exist
          Jan 15 08:03:34 ozzy netfs: Mounting other filesystems: failed
          Jan 15 08:03:35 ozzy cardmgr[3625]: watching 3 sockets
          Jan 15 08:03:35 ozzy cardmgr[3625]: Card Services release does not match
          Jan 15 08:03:35 ozzy kernel: cs: IO port probe 0x0c00-0x0cff: clean.
          Jan 15 08:03:35 ozzy kernel: cs: IO port probe 0x0100-0x04ff:
          excluding 0x290-0x297 0x378-0x37f 0x4d0-0x4d7Jan 15 08:03:35 ozzy
          kernel: cs: IO port probe 0x0a00-0x0aff: clean.
          Jan 15 08:03:35 ozzy kernel: cs: memory probe 0xa0000000-0xa0ffffff:
          clean.
          Jan 15 08:03:35 ozzy cardmgr[3625]: socket 0: ATA/IDE Fixed Disk
          Jan 15 08:03:35 ozzy apmd[3652]: Version 3.0.2 (APM BIOS 1.2, Linux
          driver 1.16)
          Jan 15 08:03:35 ozzy apmd: apmd startup succeeded
          Jan 15 08:03:35 ozzy cardmgr[3625]: executing: 'modprobe ide-cs'
          Jan 15 08:03:37 ozzy kernel: hdc: , CFA DISK drive
          Jan 15 08:03:37 ozzy cardmgr[3625]: executing: './ide start hdc'
          Jan 15 08:03:38 ozzy kernel: ide2: ports already in use, skipping probe
          Jan 15 08:03:38 ozzy kernel: ide1 at 0x100-0x107,0x10e on irq 3
          Jan 15 08:03:38 ozzy autofs: automount startup succeeded
          Jan 15 08:03:38 ozzy kernel: hdc: attached ide-disk driver.
          Jan 15 08:03:38 ozzy cardmgr[3625]: + cannot stat /dev/compactflash:
          No such file or directory
          Jan 15 08:03:38 ozzy kernel: hdc: task_no_data_intr: status=0x51 {
          DriveReady SeekComplete Error }
          Jan 15 08:03:38 ozzy smartd[3697]: smartd version 5.21 Copyright (C)
          2002-3 Bruce Allen
          Jan 15 08:03:38 ozzy kernel: hdc: task_no_data_intr: error=0x04 {
          DriveStatusError }
          Jan 15 08:03:38 ozzy kernel: hdc: 257024 sectors (132 MB) w/0KiB
          Cache, CHS=1004/8/32
          Jan 15 08:03:38 ozzy kernel: hdc: hdc1
          Jan 15 08:03:38 ozzy kernel: ide_cs: hdc: Vcc = 3.3, Vpp = 0.0

          I'm guessing, but it looks like the pcmcia startup gets kicked off,
          but the devlabel and mounting stuff is happening in a different thread
          concurrently before the devices are ready. After the system is booted
          I can type the command "devlabel restart" and it creates the symlink
          and automounts the volume just fine.

          --- In linux-dell-laptops@yahoogroups.com, John_Hull@d... wrote:
          > Check out the man page for devlabel, which should be installed with
          Fedora.
          > It was written by Gary Lerhaupt here at Dell to resolve the exact
          issue that
          > you're seeing. It manages your storage devices through symlinks and will
          > remap the links as the device names change, so that you can always
          access
          > your device through the symlink instead of the specific device.
          >
          >
          > -----Original Message-----
          > From: jbuehl0001 [mailto:jbuehl0001@y...]
          > Sent: Wed 1/14/2004 10:37 PM
          > To: linux-dell-laptops@yahoogroups.com
          > Cc:
          > Subject: [linux-dell-laptops] How to get consistent device names for
          > PCMCIA drives
          > I am running Fedora on a Latitude C640. I usually don't have the
          > CDROM in the bay when I boot and if I insert a PCMCIA ide device it
          > shows up as /dev/hdc1. If I happen to boot with the CDROM in, it gets
          > detected on boot and an ide1 channel is created. If I then insert the
          > PCMCIA device it shows up as /dev/hde1 because the PCMCIA ide channel
          > gets created as ide2.
          >
          > How can I get the device designation for the PCMCIA device to be the
          > same regardless of whether the CDROM is there or not? It seems that
          > if I can force a CDROM device to always be defined on ide1 instead of
          > auto detected that could solve it, but I haven't had much luck finding
          > out which config file to do this in.
          >
          > Also, has anyone figured out hot swapping for the CDROM? I saw some
          > posts a couple of months ago on the subject, but no resolution.
          >
          > Thanks.
          >
          >
          > --------------------------------------------------------------
          > Please post your X config files in the group links or database
          > To unsubscribe, email: linux-dell-laptops-unsubscribe@yahoogroups.com
          > FAQ: http://www.whacked.net/ldl/faq
          >
          > Yahoo! Groups Links
          >
          > To visit your group on the web, go to:
          > http://groups.yahoo.com/group/linux-dell-laptops/
          >
          > To unsubscribe from this group, send an email to:
          > linux-dell-laptops-unsubscribe@yahoogroups.com
          >
          > Your use of Yahoo! Groups is subject to:
          > http://docs.yahoo.com/info/terms/
        • jbuehl0001
          I have been messing around with the startup order of services and it is working, but it s not pretty. I removed the call to devlabel in rc.sysinit and created
          Message 4 of 4 , Jan 17, 2004
          • 0 Attachment
            I have been messing around with the startup order of services and it
            is working, but it's not pretty.

            I removed the call to devlabel in rc.sysinit and created a separate
            service script in init.d that gets called towards the end of the boot
            sequence - /rc5.d/S60devlabel. I was still getting errors before
            pcmcia because kudzu tries to mount filesystems so I just disabled
            kudzu. Now I'm down to the error that comes out of updfstab that is
            called by pcmcia.

            The other problem that I haven't addressed yet is if the pcmcia device
            is mounted when I shutdown or reboot there is a long delay because
            pcmcia is disabled before the volume is unmounted which occurs in
            killall. Why? It seems like a lot of service scripts mess with the
            filesystem at inappropriate times. I would think that ones like kudzu
            and pcmcia which are concerned with low level hardware should run
            early in the startup process and late in the shutdown process, and be
            independent of functions that assume that the devices are valid.

            Does anyone know of a mailing list where this type of stuff is being
            developed? I'm having trouble finding resources that address it.

            --- In linux-dell-laptops@yahoogroups.com, "jbuehl0001"
            <jbuehl0001@y...> wrote:
            > Thanks. That definitely addresses the problem. I mapped /dev/hdc1 to
            > /dev/compactflash and devlabel finds it if it moves to /dev/hde1.
            >
            > There's still an issue with it working during boot. devlabel is being
            > called by rc.sysinit, however there seems to be a timing problem with
            > the pcmcia devices getting started by the time it is called. I get an
            > error when the device tries to get automounted. This was happening
            > before I started using devlabel.
            >
            > Jan 15 08:03:33 ozzy kernel: Linux Kernel Card Services 3.1.22
            > Jan 15 08:03:33 ozzy kernel: options: [pci] [cardbus] [pm]
            > Jan 15 08:03:33 ozzy kernel: PCI: Found IRQ 11 for device 02:01.0
            > Jan 15 08:03:33 ozzy kernel: PCI: Sharing IRQ 11 with 02:01.1
            > Jan 15 08:03:33 ozzy kernel: PCI: Found IRQ 11 for device 02:01.1
            > Jan 15 08:03:33 ozzy kernel: PCI: Sharing IRQ 11 with 02:01.0
            > Jan 15 08:03:33 ozzy kernel: PCI: Found IRQ 11 for device 02:03.0
            > Jan 15 08:03:33 ozzy kernel: PCI: Sharing IRQ 11 with 00:1f.5
            > Jan 15 08:03:33 ozzy kernel: PCI: Sharing IRQ 11 with 00:1f.6
            > Jan 15 08:03:33 ozzy kernel: Yenta IRQ list 06b8, PCI irq11
            > Jan 15 08:03:33 ozzy kernel: Socket status: 30000010
            > Jan 15 08:03:33 ozzy kernel: Yenta IRQ list 06b8, PCI irq11
            > Jan 15 08:03:33 ozzy kernel: Socket status: 30000006
            > Jan 15 08:03:33 ozzy kernel: Yenta IRQ list 0000, PCI irq11
            > Jan 15 08:03:33 ozzy kernel: Socket status: 30000010
            > Jan 15 08:03:33 ozzy kernel: ti113x: Routing card interrupts to PCI
            > Jan 15 08:03:34 ozzy pcmcia: cardmgr.
            > Jan 15 08:03:34 ozzy cardmgr[3625]: starting, version is 3.1.31
            > Jan 15 08:03:34 ozzy rc: Starting pcmcia: succeeded
            > Jan 15 08:03:34 ozzy mount: mount: special device /dev/compactflash
            > does not exist
            > Jan 15 08:03:34 ozzy netfs: Mounting other filesystems: failed
            > Jan 15 08:03:35 ozzy cardmgr[3625]: watching 3 sockets
            > Jan 15 08:03:35 ozzy cardmgr[3625]: Card Services release does not match
            > Jan 15 08:03:35 ozzy kernel: cs: IO port probe 0x0c00-0x0cff: clean.
            > Jan 15 08:03:35 ozzy kernel: cs: IO port probe 0x0100-0x04ff:
            > excluding 0x290-0x297 0x378-0x37f 0x4d0-0x4d7Jan 15 08:03:35 ozzy
            > kernel: cs: IO port probe 0x0a00-0x0aff: clean.
            > Jan 15 08:03:35 ozzy kernel: cs: memory probe 0xa0000000-0xa0ffffff:
            > clean.
            > Jan 15 08:03:35 ozzy cardmgr[3625]: socket 0: ATA/IDE Fixed Disk
            > Jan 15 08:03:35 ozzy apmd[3652]: Version 3.0.2 (APM BIOS 1.2, Linux
            > driver 1.16)
            > Jan 15 08:03:35 ozzy apmd: apmd startup succeeded
            > Jan 15 08:03:35 ozzy cardmgr[3625]: executing: 'modprobe ide-cs'
            > Jan 15 08:03:37 ozzy kernel: hdc: , CFA DISK drive
            > Jan 15 08:03:37 ozzy cardmgr[3625]: executing: './ide start hdc'
            > Jan 15 08:03:38 ozzy kernel: ide2: ports already in use, skipping probe
            > Jan 15 08:03:38 ozzy kernel: ide1 at 0x100-0x107,0x10e on irq 3
            > Jan 15 08:03:38 ozzy autofs: automount startup succeeded
            > Jan 15 08:03:38 ozzy kernel: hdc: attached ide-disk driver.
            > Jan 15 08:03:38 ozzy cardmgr[3625]: + cannot stat /dev/compactflash:
            > No such file or directory
            > Jan 15 08:03:38 ozzy kernel: hdc: task_no_data_intr: status=0x51 {
            > DriveReady SeekComplete Error }
            > Jan 15 08:03:38 ozzy smartd[3697]: smartd version 5.21 Copyright (C)
            > 2002-3 Bruce Allen
            > Jan 15 08:03:38 ozzy kernel: hdc: task_no_data_intr: error=0x04 {
            > DriveStatusError }
            > Jan 15 08:03:38 ozzy kernel: hdc: 257024 sectors (132 MB) w/0KiB
            > Cache, CHS=1004/8/32
            > Jan 15 08:03:38 ozzy kernel: hdc: hdc1
            > Jan 15 08:03:38 ozzy kernel: ide_cs: hdc: Vcc = 3.3, Vpp = 0.0
            >
            > I'm guessing, but it looks like the pcmcia startup gets kicked off,
            > but the devlabel and mounting stuff is happening in a different thread
            > concurrently before the devices are ready. After the system is booted
            > I can type the command "devlabel restart" and it creates the symlink
            > and automounts the volume just fine.
            >
            > --- In linux-dell-laptops@yahoogroups.com, John_Hull@d... wrote:
            > > Check out the man page for devlabel, which should be installed with
            > Fedora.
            > > It was written by Gary Lerhaupt here at Dell to resolve the exact
            > issue that
            > > you're seeing. It manages your storage devices through symlinks
            and will
            > > remap the links as the device names change, so that you can always
            > access
            > > your device through the symlink instead of the specific device.
            > >
            > >
            > > -----Original Message-----
            > > From: jbuehl0001 [mailto:jbuehl0001@y...]
            > > Sent: Wed 1/14/2004 10:37 PM
            > > To: linux-dell-laptops@yahoogroups.com
            > > Cc:
            > > Subject: [linux-dell-laptops] How to get consistent device names for
            > > PCMCIA drives
            > > I am running Fedora on a Latitude C640. I usually don't have the
            > > CDROM in the bay when I boot and if I insert a PCMCIA ide device it
            > > shows up as /dev/hdc1. If I happen to boot with the CDROM in, it gets
            > > detected on boot and an ide1 channel is created. If I then insert the
            > > PCMCIA device it shows up as /dev/hde1 because the PCMCIA ide channel
            > > gets created as ide2.
            > >
            > > How can I get the device designation for the PCMCIA device to be the
            > > same regardless of whether the CDROM is there or not? It seems that
            > > if I can force a CDROM device to always be defined on ide1 instead of
            > > auto detected that could solve it, but I haven't had much luck finding
            > > out which config file to do this in.
            > >
            > > Also, has anyone figured out hot swapping for the CDROM? I saw some
            > > posts a couple of months ago on the subject, but no resolution.
            > >
            > > Thanks.
            > >
            > >
            > > --------------------------------------------------------------
            > > Please post your X config files in the group links or database
            > > To unsubscribe, email: linux-dell-laptops-unsubscribe@yahoogroups.com
            > > FAQ: http://www.whacked.net/ldl/faq
            > >
            > > Yahoo! Groups Links
            > >
            > > To visit your group on the web, go to:
            > > http://groups.yahoo.com/group/linux-dell-laptops/
            > >
            > > To unsubscribe from this group, send an email to:
            > > linux-dell-laptops-unsubscribe@yahoogroups.com
            > >
            > > Your use of Yahoo! Groups is subject to:
            > > http://docs.yahoo.com/info/terms/
          Your message has been successfully submitted and would be delivered to recipients shortly.