Note
Any configuration changes made using the
echo
command disappear when the
system is restarted. To make configuration changes take effect after the system
is rebooted, refer to
Section 4, “Using the
sysctl
Command”
.
The
/proc/sys/
directory contains several subdirectories controlling different aspects of a
running kernel.
3.9.1.
/proc/sys/dev/
This directory provides parameters for particular devices on the system. Most systems have at
least two directories,
cdrom/
and
raid/
. Customized kernels can have other directories, such
as
parport/
, which provides the ability to share one parallel port between multiple device
drivers.
The
cdrom/
directory contains a file called
info
, which reveals a number of important CD-ROM
parameters:
CD-ROM information, Id: cdrom.c 3.20 2003/12/17
drive name:
hdc
drive speed:
48
drive # of slots:
1
Can close tray:
1
Can open tray:
1
Can lock tray:
1
Can change speed:
1
Can select disk:
0
Can read multisession:
1
Can read MCN:
1
Reports media changed:
1
Can play audio:
1
Can write CD-R:
0
Can write CD-RW:
0
Can read DVD:
0
Can write DVD-R:
0
Can write DVD-RAM:
0
Can read MRW:
0
Can write MRW:
0
Can write RAM:
0
This file can be quickly scanned to discover the qualities of an unknown CD-ROM. If multiple
CD-ROMs are available on a system, each device is given its own column of information.
Various files in
/proc/sys/dev/cdrom
, such as
autoclose
and
checkmedia
, can be used to
control the system's CD-ROM. Use the
echo
command to enable or disable these features.
Chapter 5. The proc File System
74
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......