Operating System - HP-UX
1832594 Members
2794 Online
110043 Solutions
New Discussion

Re: Unknown/Wrong device drivers - urandom: How to correct?

 
Chew Chye Guan
Occasional Advisor

Unknown/Wrong device drivers - urandom: How to correct?

Hi,
I had the following OS 11iv2 ie 11.23.
I am trying to configure MC/SG v11.17, there was an error, with ACSL help, it was narrowed to the following ie /dev/urandom was not properly created. The following was what is in my current server (rx2620):

# ls -l /dev/*random
crw-r--r-- 1 root root 95 0x000000 Jan 2 12:23 /dev/random
crw-r--r-- 1 root root 95 0x000001 Jan 2 12:23 /dev/urandom
# lsdev | grep 95
95 -1 rng unknown
#

Notice that the lsdev for 95 is unknown, it should be pseudo.

Could someone help on how can i recreate these psuedo drivers so that it is correct?
Or what should I do? is there a fileset that I need to reload? I was told to install KRNG11i but this fileset is for 11iv1 and nothing specify about 11iv2 other than it is included in base product.

I cannot afford to reinstall the entire OS (11iv2) plse help on how I can correct the problem that I having ie unknown class instead of pseudo class?

thanks
chyeguan
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Unknown/Wrong device drivers - urandom: How to correct?

I suspect that you have a mismatched major device number or the rng driver has been removed from the kernel.

Do an lsdev and search for a character device 'rng'. If you see it then it's in the kernel (note the major device number associated with it); if not you will need to add it to the kernel.

If the driver was in the kernel but the major device numbers do not agree with those listed by ls -l (95) then (and let's pretend that thr rnd major device number is 100 rather than your 95):

rm /dev/urandom /dev/random
mknod /dev/random c 100 0x000000
mknod /dev/urandom c 100 0x000001
chmod 644 /dev/urandom /dev/random
chown root:root /dev/urandom /dev/random






If it ain't broke, I can fix that.
RAC_1
Honored Contributor

Re: Unknown/Wrong device drivers - urandom: How to correct?

i think you need to have this one isntalled.

OS-Core.RNG-DKRN B.11.23 HP-UX Strong Random Number Generator
There is no substitute to HARDWORK