1 .\" Copyright 1992, 1993 Rickard E. Faith (faith@cs.unc.edu)
2 .\" May be distributed under the GNU General Public License
3 .\" Changes from sct@dcs.ed.ac.uk added Sat Oct 9 09:54:00 1993.
4 .TH RDEV 8 "20 November 1993" "Linux 0.99" "Linux Programmer's Manual"
6 rdev \- query/set image root device, swap device, RAM disk size, or video mode
9 .BR "rdev [ \-rsvh ] [ \-o " offset " ] [ " image " [ " value " [ " offset " ] ] ]"
10 .BR "rdev [ \-o " offset " ] [ " image " [ " root_device " [ " offset " ] ] ]"
11 .BR "swapdev [ \-o " offset " ] [ " image " [ " swap_device " [ " offset " ] ] ]"
12 .BR "ramsize [ \-o " offset " ] [ " image " [ " size " [ " offset " ] ] ]"
13 .BR "vidmode [ \-o " offset " ] [ " image " [ " mode " [ " offset " ] ] ]"
14 .BR "rootflags [ \-o " offset " ] [ " image " [ " flags " [ " offset " ] ] ]"
17 .\" " for emacs hilit19
22 line for the current root file system.
24 .BR swapdev ", " ramsize ", " vidmode ", and " rootflags
25 print usage information.
27 In a bootable image for the Linux kernel, there are several pairs of bytes
28 which specify the root device, the video mode, the size of the RAM disk,
29 and the swap device. These pairs of bytes, by default, begin at offset 504
30 (decimal) in the kernel image:
35 (500 and 502 Reserved)
44 will change these values.
46 Typical values for the
48 parameter, which is a bootable Linux kernel image, might be:
61 .BR rdev ", or " swapdev
63 .IR root_device " or " swap_device
64 parameter might be something like:
80 parameter specifies the size of the RAM disk in kilobytes.
86 parameter contains extra information used when mounting root.
87 Currently the only effect of these flags is to force the kernel to
88 mount the root filesystem in readonly mode if
96 parameter specifies the video mode:
103 0 = as if "0" was pressed at the prompt
104 1 = as if "1" was pressed at the prompt
105 2 = as if "2" was pressed at the prompt
106 n = as if "n" was pressed at the prompt
112 is not specified, the
114 will be examined to determine the current settings.
144 For historical reasons, there are two methods for specifying alternative
145 values for the offset.
147 The user interface is cumbersome, non-intuitive, and should probably be
148 re-written from scratch, allowing multiple kernel image parameters to be
149 changed or examined with a single command.
153 is no longer needed for setting the root device and the VGA mode, since
154 these parameters that
156 modifies can be set from the LILO prompt during a boot. However,
158 is still needed at this time for setting the RAM disk size. Users are
159 encouraged to find the LILO documentation for more information, and to use
160 LILO when booting their systems.
163 Originally by Werner Almesberger (almesber@nessie.cs.id.ethz.ch)
164 Modified by Peter MacDonald (pmacdona@sanjuan.UVic.CA)
165 rootflags support added by Stephen Tweedie (sct@dcs.ed.ac.uk)