unknown option "MAXUSERS"

Dmitry M. skif at psoft.lviv.ua
Sat Feb 19 09:18:34 GMT 2005


On Friday 18 February 2005 10:52, Jamie Novak wrote:
> On 02/17, Dmitry M. rearranged the electrons to read:
> > -bash-2.05b# config MYKERNEL
> > MYKERNEL: unknown option "MAXUSERS"
>
> It's probably because "maxusers" is a lowercase-only option in the
> config, right along with the ident, machine, and cpu lines. Change it to
> lowercase and you should be fine.
>
> Also, from the handbook:
>
>  Note: As of FreeBSD 4.5, setting MAXUSERS to 0 in your
>  kernel configuration file will choose a reasonable default
>  value based on the amount of RAM present in your system.
>
> In 5.x and beyond, I believe the option is omitted entirely, even in
> GENERIC.
>
> Hope that helps.
>
> -Jamie

I forgot to add that it is FreeBSD 5.3 kernel :)

As yopu can see I haven't "MAXUSERS" or "maxusers" option in MYKERNEL file:
----------------------------------------
-bash-2.05b# pwd
/usr/src/sys/i386/conf
-bash-2.05b# ls -la
total 72
drwxr-xr-x   2 root  wheel    512 Feb 18 04:05 .
drwxr-xr-x  13 root  wheel    512 Feb 18 02:36 ..
-rw-r--r--   1 root  wheel   9798 Oct 24 21:02 GENERIC
-rw-r--r--   1 root  wheel   1982 Apr  2  2004 GENERIC.hints
-rw-r--r--   1 root  wheel   9798 Feb 18 04:05 GENERIC2
lrwxr-xr-x   1 root  wheel     22 Feb 18 02:40 MYKERNEL 
-> /root/kernels/MYKERNEL
-rw-r--r--   1 root  wheel    120 Feb 27  2003 Makefile
-rw-r--r--   1 root  wheel  33470 Oct 24 21:02 NOTES
-rw-r--r--   1 root  wheel    469 Jul 13  2004 OLDCARD
-rw-r--r--   1 root  wheel   1763 Oct 12 02:59 PAE
-rw-r--r--   1 root  wheel    218 Oct 23 23:04 SMP
-rw-r--r--   1 root  wheel   3991 Jul 26  2002 gethints.awk
-bash-2.05b# grep "MAXUSERS" *
-bash-2.05b# grep "maxusers" *
-bash-2.05b# config MYKERNEL
MYKERNEL: unknown option "MAXUSERS"
-bash-2.05b#
----------------------------------------
The same problem I have with GENERIC2 (copy of GENERIC) and GENERIC too:
----------------------------------------
-rw-r--r--   1 root  wheel   9798 Oct 24 21:02 GENERIC
-rw-r--r--   1 root  wheel   9798 Feb 18 04:05 GENERIC2
----------------------------------------
-bash-2.05b# config GENERIC2
GENERIC2: unknown option "MAXUSERS"
-bash-2.05b# config GENERIC
GENERIC: unknown option "MAXUSERS"
-bash-2.05b#
----------------------------------------
Even if I tried to add
maxusers 0
or 
MAXUSERS 0
in MYKERNEL it didn't work.

If I try to use second metod:
-----------------------------------------
-bash-2.05b# cd /usr/src
-bash-2.05b# make buildkernel KERNCONF=MYKERNEL
make: don't know how to make buildkernel. Stop
-bash-2.05b#
-----------------------------------------

Any ideas?

Thank you in any case. :)
Skif.

PS: Also as you can see there is a lot of other persons who have these 
problems:

http://www.google.com/search?hl=ru&q=unknown+option+
%22MAXUSERS%22&btnG=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA&lr=
and
http://www.google.com/search?hl=ru&q=don%27t+know+how+to+make+buildkernel.
+Stop&btnG=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA&lr=


More information about the freebsd-questions mailing list