Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 1995 00:34:32 -0500 (EST)
From:      Wankle Rotary Engine <wpaul@skynet.ctr.columbia.edu>
To:        nate@trout.sri.MT.net (Nate Williams)
Cc:        shatz@interlog.com, jcargill@cs.wisc.edu, freebsd-hackers@FreeBSD.org
Subject:   Re: BSD install problem. (was Re: forwarded message from Kevin Flewitt)
Message-ID:  <199502170534.AAA05497@skynet.ctr.columbia.edu>
In-Reply-To: <199502161818.LAA17153@trout.sri.MT.net> from "Nate Williams" at Feb 16, 95 11:18:58 am

next in thread | previous in thread | raw e-mail | index | archive | help
> config		kernel	root on wd0 swap on wd0 and wd1 and sd0 and sd1 and vn0 dumps on wd0
>                         ^^^^^^^^^^^
> 
> This needs to be changed to wd1 for this system.  You'll need a custom
> kernel for this box.  Maybe one of the user can build you one. 
> Unfortunately, I'm still in mid-upgrade due to my new tape-drive going
> bad the day after I got it.
> 
> To hacker folks:
> 
> Is there anyway we can change this to:
> config		kernel	root on boot swap on boot dumps on boot
> 
> Similar to what Ultrix does?
> 
> 
> Nate
> 
> 

No, but you can do it the way SunOS does, which is just as good:

options SWAP_GENERIC

config   kernel  swap generic

I managed to get swapgeneric.c working properly some time ago (though I'm
not sure how it will react to the new disk slicing stuff that went into
the tree recently). I've been building all of my custom 2.1-Development
kernels on my test box with this configuration and it's worked great so 
far (I do this so I can use the same kernel to do diskfull and NFS
diskless booting). Not only should this do what you want, it also lets
you use the -a (RB_ASKHOWTO) flag at boot time to force the kernel to ask 
you what device you want to mount as root. (It would be nice if we could 
some day use this to mount a CD-ROM as a root fs, but I think that would 
require a cd9660_mountroot() function and Elvis only knows what else, 
unless Walnut Creek wants to start making CDs with UFS filesystems on
them.)

There's a drawback to this scheme which is that it limits you to only one 
swap device. If you want to get fancy with your swap space layout, you 
still need to build a custom kernel.

Also, 'options SWAP_GENERIC' is a kludge that has to die. Unfortunately,
killing it would require perpetrating an equally distasteful kludge on
/usr/sbin/config, which has more than enough kludges in it already. Still,
it may be the only way out.

-Bill  

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Bill Paul            (212) 854-6020 | System Manager
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Møøse Illuminati: ignore it and be confused, or join it and be confusing!
~~~~~~~~ FreeBSD 2.1.0-Development #0: Tue Feb  7 01:49:07 EST 1995 ~~~~~~~~~



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502170534.AAA05497>