Subject: Re: PR 7170 -- init and /dev/console
To: None <tech-kern@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 04/29/2001 23:49:30
> Plus, in anything other than a diskless environment, if your /dev is
> toast you can't upgrade / to r/w to fix it.

Fortunately, it's not quite that bad.

# mount_mfs -s 128 swap /mnt
# mknod /mnt/sd0a b 7 0
# mount /mnt/sd0a /

...or /tmp, or whatever, instead of /mnt.  Not perfect, but good enough
to recover from some varieties of the toasted-/dev syndrome.

And as someone else pointed out, kernfs is another possible solution,
one that doesn't require knowing the major/minor number of your rootdev
(but does, of course, require kernfs in your kernel).

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B