Re: PCMCIA cards in laptops: do they need to be mounted/unmounted when installed/removed?

2007-02-21 Thread Paul Johnson
Ken Heard wrote:

 PCMCIA cards in laptops: do they need to be mounted/unmounted when
 installed/removed like floppies, CF cards, etc.?

Only if they contain a filesystem, otherwise as long as you aren't doing
anything with the card at the time you yank it, everything should happen
automagically on semirecent Debian installs.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: PCMCIA cards in laptops: do they need to be mounted/unmounted when installed/removed?

2007-02-21 Thread Paul Johnson
Ken Heard wrote:

 Thanks everyone for the replies.  If I understand them correctly, the
 situation is as follows:
 
 PCMCIA cards can be hot plugged and hot unplugged just like for instance
 USB devices.

Right.

 However, also like USB devices, if the PCMCIA card is or contains a
 mobile storage device, to gain access to the storage on the device it
 has to be mounted.  Likewise, before such a PCMCIA card, like USB
 storage devices, is removed, it should be unmounted in the same manner.

Right.

 As it happens, I still have a PCMCIA adapter for CF cards, which is what
 was used to connect CF cards to laptops before the days of USB ports on
 laptops.  So I put a CF card in it and inserted it into a PCMCIA slot.
pcccardctl ident returned:
 
 product info: HITACHI, FLASH, 5.0, 
manfid: 0x0007, 0x
function: 4 (fixed disk)
 
 Dmesg however told me much more.  It produced the following:
 
 Probing IDE interface ide2...
 hde: Hitachi XX.V.3.4.0.0, CFA DISK drive
 ide2 at 0x100-0x107,0x10e on irq 10
 hde: max request size: 128KiB
 hde: 2002896 sectors (1025 MB) w/1KiB Cache, CHS=1987/16/63
   hde: hde1
 ide-cs: hde: Vpp = 0.0
 
 Sure enough, I found a directory called /dev/hde1.  By creating
 directory /media/pccfcard and running mount -t vfat /dev/hde1
 /media/pccfcard I had complete access to the cf card.  I then added an
 appropriate line to /etc/fstab, which I will test after the next time I
 boot my laptop.

I would doublecheck the fstab(5) manpage to make sure you don't try to
automount any filesystem that you don't intend to have connected each and
every time the machine boots.

http://ursine.ca/cgi-bin/dwww?type=runmanlocation=fstab/5

 It is interesting that the adapter manufacturer is identified as
 Hitachi; whereas the adapter is labelled Sandisk.

That's actually not that unusual.  Much (most?) hardware is manufactured by
one company, but distributed, labelled and sold as another brand.

 I also noticed that pccardctl includes the commands insert and eject.
 Since the cards can be hot inserted and removed, I wonder why have these
 two commands.

Scripts that are automatically called when a device is inserted or ejected. 
Just because it acts like magic doesn't mean it is.  :o)




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: PCMCIA cards in laptops: do they need to be mounted/unmounted when installed/removed?

2007-02-19 Thread Chris Lale

Ken Heard wrote:

PCMCIA cards in laptops: do they need to be mounted/unmounted when
installed/removed like floppies, CF cards, etc.?
  


No need to mount/umount a PCMCIA wireless network card. When I remove my 
running RT2500 card in Etch, dmesg shows


   pccard: card ejected from slot 0
   ACPI: PCI interrupt for device :02:00.0 disabled

When I reinsert it:

   pccard: CardBus card inserted into slot 0
   ACPI: PCI interrupt :02:00.0[A] - Link [LNKA] - GSI 11 (level, 
low) - IRQ 11

   rt2500 1.1.0 CVS 2005/07/10 http://rt2x00.serialmonkey.com
   PCI: Setting latency timer of device :02:00.0 to 64

and my wireless connection is restored automagically.

--
Chris.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: PCMCIA cards in laptops: do they need to be mounted/unmounted when installed/removed?

2007-02-19 Thread Chris Bannister
On Sat, Feb 17, 2007 at 01:40:30PM -0500, Ken Heard wrote:
 PCMCIA cards in laptops: do they need to be mounted/unmounted when
 installed/removed like floppies, CF cards, etc.?

Not usually, but I suppose what type of card it is. I have a modem
PCMCIA card which I just release whenever I feel like it. But if its
some sort of storage device (if there is such a thing) then you *may*
lose data.

Also, how do you actually unmount one?

-- 
Chris.
==
Don't forget to check that your /etc/apt/sources.lst entries point to 
etch and not testing, otherwise you may end up with a broken system once
etch goes stable.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: PCMCIA cards in laptops: do they need to be mounted/unmounted when installed/removed?

2007-02-19 Thread Ken Heard

Thanks everyone for the replies.  If I understand them correctly, the
situation is as follows:

PCMCIA cards can be hot plugged and hot unplugged just like for instance
USB devices.

However, also like USB devices, if the PCMCIA card is or contains a
mobile storage device, to gain access to the storage on the device it
has to be mounted.  Likewise, before such a PCMCIA card, like USB
storage devices, is removed, it should be unmounted in the same manner.

As it happens, I still have a PCMCIA adapter for CF cards, which is what 
was used to connect CF cards to laptops before the days of USB ports on 
laptops.  So I put a CF card in it and inserted it into a PCMCIA slot. 
  pcccardctl ident returned:


product info: HITACHI, FLASH, 5.0, 
manfid: 0x0007, 0x
function: 4 (fixed disk)

Dmesg however told me much more.  It produced the following:

Probing IDE interface ide2...
hde: Hitachi XX.V.3.4.0.0, CFA DISK drive
ide2 at 0x100-0x107,0x10e on irq 10
hde: max request size: 128KiB
hde: 2002896 sectors (1025 MB) w/1KiB Cache, CHS=1987/16/63
hde: hde1
ide-cs: hde: Vpp = 0.0

Sure enough, I found a directory called /dev/hde1.  By creating 
directory /media/pccfcard and running mount -t vfat /dev/hde1 
/media/pccfcard I had complete access to the cf card.  I then added an 
appropriate line to /etc/fstab, which I will test after the next time I 
boot my laptop.


It is interesting that the adapter manufacturer is identified as 
Hitachi; whereas the adapter is labelled Sandisk.


I also noticed that pccardctl includes the commands insert and eject. 
Since the cards can be hot inserted and removed, I wonder why have these 
two commands.


Regards,

Ken Heard
Toronto, Canada


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: PCMCIA cards in laptops: do they need to be mounted/unmounted when installed/removed?

2007-02-19 Thread s. keeling
Ken Heard [EMAIL PROTECTED]:
  Thanks everyone for the replies.  If I understand them correctly, the
  situation is as follows:

Very good, however:

  Sure enough, I found a directory called /dev/hde1.  By creating 
  directory /media/pccfcard and running mount -t vfat /dev/hde1 
  /media/pccfcard I had complete access to the cf card.  I then added an 
  appropriate line to /etc/fstab, which I will test after the next time I 
  boot my laptop.

No need to wait.  Very few things in Unix/Linux require a reboot to
take effect.  From a prompt:

   mount /media/pccfcard

should work right away, or tell you why it didn't.

  I also noticed that pccardctl includes the commands insert and eject. 
  Since the cards can be hot inserted and removed, I wonder why have these 
  two commands.

So the hotplug/udev systems could do it for you.  cardctl showed up a
long time before hotplug and udev did.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://www.spots.ab.ca/~keeling  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.
   Spammers! http://www.spots.ab.ca/~keeling/emails.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: PCMCIA cards in laptops: do they need to be mounted/unmounted when installed/removed?

2007-02-18 Thread cga2000
On Sat, Feb 17, 2007 at 01:40:30PM EST, Ken Heard wrote:
 PCMCIA cards in laptops: do they need to be mounted/unmounted when
 installed/removed like floppies, CF cards, etc.?

mount/umount are file system management commands.

see man 8 mount .. in particular the NAME part and the first few
lines of DESCRIPTION.

NAME

  mount - mount a file system

...  

as to PC cards they are managed by the cardctl or pccardctl commands
(depending on how recent your kernel is).

see man cardctl or man pccardctl depending on how recent your
kernel is.

I happen to have a portable CD-ROM burner attached to my laptop via a PC
card.  

If in need to check the current status of that PC card (in slot) 1 I
could issue a:

# pccardctl status 1
  5V 16-bit PC Card
  function 0: [ready]

Now, after inserting a data CD in this peripheral in order to access its
contents I would have to mount the file system:

# mount -t iso9660 /dev/cdrw0 /mnt/cdrw0

I can then cd - no pun intended - to /mnt/cdrw0 and apart from the
fact that the files are necessarily read-only.. I can pretty much
process its contents as I would my home directory.

IOW, it is as if I had plugged the iso file system that lives on the
CD-ROM into an available slot of my running file system, thereby giving
myself and other users of the system access to its contents.

If on the other hand I had inserted an audio CD in the peripheral I
would not need to issue a mount command to listen to it.  And if I did
try to mount issue a mount command against the audio CD, I would get an
error informing me that the medium does not contain a file system.

To try and clarify further, I also have a PC network card in the other
pcmcia slot  of this laptop and clearly there would be no sense in
trying to mount that card.

HTH

Thanks,
cga


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



PCMCIA cards in laptops: do they need to be mounted/unmounted when installed/removed?

2007-02-17 Thread Ken Heard
PCMCIA cards in laptops: do they need to be mounted/unmounted when
installed/removed like floppies, CF cards, etc.?

Ken Heard


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]