]>
Commit | Line | Data |
---|---|---|
6dbe3af9 KZ |
1 | /* |
2 | ||
3 | rdev.c - query/set root device. | |
4 | ||
5 | ------------------------------------------------------------------------- | |
6 | ||
7 | Date: Sun, 27 Dec 1992 15:55:31 +0000 | |
8 | Subject: Re: rdev | |
9 | From: almesber@nessie.cs.id.ethz.ch (Werner Almesberger) | |
10 | To: Rik Faith <faith@cs.unc.edu> | |
11 | ||
12 | There 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 | ||
26 | Date: 11 Mar 92 21:37:37 GMT | |
27 | Subject: rdev - query/set root device | |
28 | From: almesber@nessie.cs.id.ethz.ch (Werner Almesberger) | |
29 | Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH | |
30 | ||
31 | With all that socket, X11, disk driver and FS hacking going on, apparently | |
32 | nobody has found time to address one of the minor nuisances of life: set- | |
33 | ting the root FS device is still somewhat cumbersome. I've written a little | |
34 | utility which can read and set the root device in boot images: | |
35 | ||
36 | rdev accepts an optional offset argument, just in case the address should | |
37 | ever move from 508. If called without arguments, rdev outputs an mtab line | |
38 | for the current root FS, just like /etc/rootdev does. | |
39 | ||
40 | ramsize sets the size of the ramdisk. If size is zero, no ramdisk is used. | |
41 | ||
42 | vidmode sets the default video mode at bootup time. -1 uses default video | |
43 | mode, -2 uses menu. | |
44 | ||
45 | ------------------------------------------------------------------------- | |
46 | ||
47 | Sun Dec 27 10:42:16 1992: Minor usage changes, faith@cs.unc.edu. | |
48 | Tue Mar 30 09:31:52 1993: rdev -Rn to set root readonly flag, sct@dcs.ed.ac.uk | |
49 | Wed 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 |