Controlling Pcmcia Service

Although PCMCIA cards can be inserted or removed while using Ubuntu, be careful when using these cards. For example, do not remove a network card while connected to a remote computer. Do not pull a CompactFlash card or other storage media card (such as an IBM microdrive) while the card's file system is mounted and in useyou could corrupt the media's file system and experience data loss.

You can control a PCMCIA device from the command line and insert and remove the card without physically removing and then inserting the card. Use the cardcti command to control PCMCIA service to one or more card slots on your notebook or desktop PC with a PCMCIA adapter. The cardcti command is used to get and print information about an inserted card, suspend or resume power to a card, reset a card, perform a software insertion or removal, or to configure a card according to a particular, predefined scheme (such as using a network in the office or at home). The format of the command is cardcti command slot_number (such as 0 or 1).

For example, if you have inserted a CompactFlash card, eject the card (after unmounting its file system) using the cardcti command and its eject option, along with the card's slot number, as follows:

# cardctl eject 0

This can save power when running a notebook. When the card is needed again, you can subsequently "insert" the card like so:

# cardctl insert 0

4 PREY

Was this article helpful?

0 0

Post a comment