Linux rdev command
The Linux rdev command can be used to query/set the root device, RAM disk size, or video mode of the kernel image file.
The rdev command without any arguments will output the /etc/mtab file line of the current root file system. ramsize, vidmode, and rootflags without any arguments will display help information.
Syntax
rdev [-rsvh ] [-o offset ] [ image [value [ offset ] ] ]</p>
However, depending on the parameters the user wants to set, the following methods are used as well:
rdev [ -o offset ] [ image [ root_device [ offset ] ] ]
swapdev [ -o offset ] [ image [ swap_device [ offset ] ] ]
ramsize [ -o offset ] [ image [ size [ offset ] ] ]
videomode [ -o offset ] [ image [ mode [ offset ] ] ]
rootflags [ -o offset ] [ image [ flags [ offset ] ] ]
Options:
- -r: Makes rdev run as ramsize.
- -R: Makes rdev run as rootflags.
- -v: Makes rdev run as vidmode.
- -h: Provides help.
Linux Command Reference