]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/rdev.c
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / sys-utils / rdev.c
CommitLineData
6dbe3af9
KZ
1/*
2
3 rdev.c - query/set root device.
4
5-------------------------------------------------------------------------
6
7Date: Sun, 27 Dec 1992 15:55:31 +0000
8Subject: Re: rdev
9From: almesber@nessie.cs.id.ethz.ch (Werner Almesberger)
10To: Rik Faith <faith@cs.unc.edu>
11
12There are quite a few versions of rdev:
13
14 - the original rootdev that only printed the current root device, by
15 Linus.
16 - rdev that does what rootdev did and that also allows you to change
17 the root (and swap) device, by me.
18 - rdev got renamed to setroot and I think even to rootdev on various
19 distributions.
20 - Peter MacDonald added video mode and RAM disk setting and included
21 this version on SLS, called rdev again. I've attached his rdev.c to
22 this mail.
23
24-------------------------------------------------------------------------
25
26Date: 11 Mar 92 21:37:37 GMT
27Subject: rdev - query/set root device
28From: almesber@nessie.cs.id.ethz.ch (Werner Almesberger)
29Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
30
31With all that socket, X11, disk driver and FS hacking going on, apparently
32nobody has found time to address one of the minor nuisances of life: set-
33ting the root FS device is still somewhat cumbersome. I've written a little
34utility which can read and set the root device in boot images:
35
36rdev accepts an optional offset argument, just in case the address should
37ever move from 508. If called without arguments, rdev outputs an mtab line
38for the current root FS, just like /etc/rootdev does.
39
40ramsize sets the size of the ramdisk. If size is zero, no ramdisk is used.
41
42vidmode sets the default video mode at bootup time. -1 uses default video
43mode, -2 uses menu.
44
45-------------------------------------------------------------------------
46
47Sun Dec 27 10:42:16 1992: Minor usage changes, faith@cs.unc.edu.
48Tue Mar 30 09:31:52 1993: rdev -Rn to set root readonly flag, sct@dcs.ed.ac.uk
49Wed Jun 22 21:12:29 1994: Applied patches from Dave
50 (gentzel@nova.enet.dec.com) to prevent dereferencing
51 the NULL pointer, faith@cs.unc.edu
7eda085c
KZ
52