SUMMARY: can't load module: Out of memory or no room in system tables

From: Darren J. Wise <D.J.Wise_at_gre.ac.uk>
Date: Fri Jul 26 2002 - 05:09:21 EDT
Thanks to Andrew J Caines and LAW Hon Man.

Andrew forwarded me a script that he recieved from LAW Hon Man.
Which I have used successfully on a number of Solaris 8 machines.

The script is:

#!/usr/bin/ksh          
PATH=/usr/bin:/usr/sbin          
rem_drv random          
add_drv random          
modload /kernel/drv/random          
dd if=/dev/mem bs=512 count=16 2>&- | crypt $RANDOM > /dev/random    

Original question below:

On Wed, May 15, 2002 at 05:56:49PM +0100, Darren J. Wise wrote:
> Hello Managers,
> 
> I have installed the /dev/random patch 112438-01 on to an ultra5
> with 128Mb of memory. 
> 
> When I use Andrew.J.Caines script download from:
> 
> http://halplant.com:88/software/Solaris/scripts/setup_random
> 
> I get the following output:
> 
> # ./setup_random
> Patch 112438 is installed.
> Making device nodes.
> Making device links.
> Loading driver.
> can't load module: Out of memory or no room in system tables
> Priming entropy pool.
> ./setup_random[54]: /dev/random: cannot create
> ./setup_random[55]: /dev/random: cannot create
> Finished. You now have the following random devices:
> lrwxrwxrwx   1 root     other         33 May 15 17:33 /dev/random -> ../devices/pseudo/random@0:random
> lrwxrwxrwx   1 root     other         34 May 15 17:33 /dev/urandom -> ../devices/pseudo/random@0:urandom
> crw-r--r--   1 root     sys      198,  0 May 15 17:33 /devices/pseudo/random@0:random
> crw-r--r--   1 root     sys      198,  1 May 15 17:33 /devices/pseudo/random@0:urandom
> Do you want to test the new device? (y/n) y
> Running: dd if=/dev/random of=/tmp/.11175.14217 bs=512 count=1
> dd: /dev/random: open: No such device or address
> Running: strings /tmp/.11175.14217
> You should see a few lines of random garbage:
> # 
> 
> I believe this fails because of the "can't load module: Out of
> memory or no room in system tables" line.
> 
> If I use modload -p drv/random I get the same message:
> # modload -p drv/random
> can't load module: Out of memory or no room in system tables
> 
> I have checked /etc/name_to_major and there is an entry for random:
> # cat /etc/name_to_major | grep random
> random 198
> 
> Does this require a reboot, or is there away of freeing up memory or
> system table space with out rebooting?

Rgds
Darren
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Jul 26 05:13:03 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:50 EST