Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux rdev command

Linux rdev command

Linux Command Reference Linux Command Reference

The Linux rdev command can be used to query/set the root device, RAM disk size, or video mode of a kernel image file.

The rdev command without any arguments outputs the /etc/mtab file line of the current root filesystem. ramsize, vidmode, and rootflags without any arguments display help information.

Syntax



rdev [-rsvh ] [-o offset ] [ image [value [ offset ] ] ]

However, depending on the parameters the user wants to set, the following approaches work 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 ] ] ]

Parameters:

Linux Command Reference Linux Command Reference