include('/home/users/hman/www/include/header.inc') ?>
rdev [ -rsvh ] [ -o offset ] [ image [ value [ offset ] ] ] rdev [ -o offset ] [ image [ root_device [ offset ] ] ] swapdev [ -o offset ] [ image [ swap_device [ offset ] ] ] ramsize [ -o offset ] [ image [ size [ offset ] ] ] vidmode [ -o offset ] [ image [ mode [ offset ] ] ] rootflags [ -o offset ] [ image [ flags [ offset ] ] ]
In a bootable image for the Linux kernel, there are several pairs of bytes which specify the root device, the video mode, the size of the RAM disk, and the swap device. These pairs of bytes, by default, begin at offset 504 (decimal) in the kernel image:
rdev will change these values.
Typical values for the image parameter, which is a bootable Linux kernel image, are as follows:
When using the rdev, or swapdev commands, the root_device or swap_device parameter are as follows:
For the ramsize command, the size parameter specifies the size of the RAM disk in kilobytes.
For the rootflags command, the flags parameter contains extra information used when mounting root. Currently the only effect of these flags is to force the kernel to mount the root filesystem in readonly mode if flags is non-zero.
For the vidmode command, the mode parameter specifies the video mode:
If the value is not specified, the image will be examined to determine the current settings.
The user interface is cumbersome, non-intuitive, and should probably be re-written from scratch, allowing multiple kernel image parameters to be changed or examined with a single command.
If LILO is used, rdev is no longer needed for setting the root device and the VGA mode, since these parameters that rdev modifies can be set from the LILO prompt during a boot. However, rdev is still needed at this time for setting the RAM disk size. Users are encouraged to find the LILO documentation for more information, and to use LILO when booting their systems.
Originally by Werner Almesberger (almesber@nessie.cs.id.ethz.ch) Modified by Peter MacDonald (pmacdona@sanjuan.UVic.CA) rootflags support added by Stephen Tweedie (sct@dcs.ed.ac.uk)