Red Hat ENTERPRISE LINUX 3 System Administration Manual page 44

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

28
devlabel add -d
<
For example, to add the symbolic link
following command:
devlabel add -d /dev/hdb1 -s /dev/work
If the command was successful, the following is displayed:
Created symlink /dev/work -> /dev/hdb1
Added /dev/work to /etc/sysconfig/devlabel
To add a device name for a device based on a UUID, use the following syntax:
devlabel add -u
<
To use
to retrieve the UUID for a device (or to make sure it has one), use the following
devlabel
command:
devlabel printid -d
The symbolic link names must be unique. If an existing link already exists when an attempt is made
to add it, the configuration file is not modified, and the following is displayed:
The file /dev/work already exists.
Failure. Could not create a symlink.
To remove a symbolic link from the
devlabel remove -s
The entry is removed from the configuration file, and the symbolic link is deleted.
To determine the status of the
devlabel status
It returns output similar to the following:
lrwxrwxrwx
1 root
lrwxrwxrwx
1 root
7.1.1. Hotplug Devices
A program called hotplug performs actions when a system event, such as hardware being added or
removed, takes place while the system is running. For example, if a USB hard drive or a USB media
card reader is attached to the system,
file (
/var/log/messages
When a PCI, USB, or IEEE 1394 (also known as FireWire) device is plugged in, the
also restart
devlabel
as
), and optionally it can automatically mount the storage device.
/dev/usbcard
After inserting the USB card reader into the USB port of the computer, issue the following command
as root (where
/dev/sda1
defined device name to use):
devlabel add -d /dev/sda1 -s /dev/usbcard --automount
device
-s
symlink
>
<
/dev/work
uuid
-s
symlink
>
<
device
<
>
devlabel
symlink
<
>
symbolic links, use the following command:
devlabel
9 Apr 29 13:20 /dev/work -> /dev/hdb1
9 Apr 29 13:41 /dev/tcf -> /dev/hda1
hotplug
) and loads the proper kernel modules so the device works.
so that the removable storage media receives a user-defined device name (such
is the device name for the media card and
Chapter 7. User-Defined Device Names
>
to represent the
>
list, use the following command:
notifies users by logging a message in the system log
partition, use the
/dev/hdb1
hotplug
is the user-
/dev/usbcard
scripts

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 3 and is the answer not in the manual?

Table of Contents