
306
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Linux’s /dev/MAKEDEV utility is useful for creating one or more
devices of a given type in a single command.
Options
--help
Print usage information and exit.
-m mode, --mode=mode
Set the file mode of the device, as with chmod. The default
mode is a=rw unless you have chosen other settings via
umask.
--version
Print version information and exit.
mkraid
mkraid [options] devices
System administration command. Set up RAID array devices as
defined in the /etc/raidtab configuration file. mkraid can be used to
initialize a new array or upgrade older RAID device arrays for the
new kernel. Initialization will destroy any data on the disk devices
used to create the array.
Options
-c file, --configfile file
Use file instead of /etc/raidtab.
-f, --force
Initialize the devices used to create the RAID array even if they
currently have data.
-h, --help
Print a usage message and then exit.
-o, --upgrade
Upgrade an older array to the current kernel’s RAID version.
Preserve data on the old array.
-V, --version
Print version information and then exit.
mkswap
mkswap [options] device
System administration command. Prepare swapspace on device:a
disk partition or a prepared file. This command can create old and
new style swap areas. The older style provides backward compati-
bility with 2.2 kernels, ...