Operating System - HP-UX
1752702 Members
6595 Online
108789 Solutions
New Discussion юеВ

Re: rdisk driver simulates a disk on the main memory error!

 
anonys
Advisor

rdisk driver simulates a disk on the main memory error!

I Compile ddk\11.23\sample-drvs\rdisk sample.
#make
#make install
cp rdisk /usr/conf/mod/rdisk
if [[ -n "rdisk.prep" ]] ; then \
cp rdisk.prep /usr/conf/mod/rdisk.prep ; \
fi
#make status
/usr/sbin/kcmodule rdisk
ERROR: The configuration 'current' does not exist.
*** Error exit code 2

Stop.

what is wrong?
thank you!
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: rdisk driver simulates a disk on the main memory error!

>ERROR: The configuration 'current' does not exist.

You may have to use the -c option in kcmodule(1M). Though the default is current.
You may want to use "kcmodule -v" to list all of the modules.
anonys
Advisor

Re: rdisk driver simulates a disk on the main memory error!

-bash-3.2# kcmodule -v
ERROR: The configuration 'current' does not exist.
Dennis Handly
Acclaimed Contributor

Re: rdisk driver simulates a disk on the main memory error!

>The configuration 'current' does not exist.

Do you have /stand/current/?
anonys
Advisor

Re: rdisk driver simulates a disk on the main memory error!

-bash-3.2# ls /stand/current/
.config README bootfs krs mod system vmunix
anonys
Advisor

Re: rdisk driver simulates a disk on the main memory error!

-bash-3.2# ls -l /stand/current/
total 115680
-rw-r--r-- 1 root root 0 May 26 17:27 .config
-rw-r--r-- 1 root root 147 May 26 17:27 README
drwxr-xr-x 3 root root 96 May 26 17:27 bootfs
drwxr-xr-x 2 root root 96 Jul 31 15:17 krs
drwxr-xr-x 2 root root 8192 Jul 31 15:16 mod
-rw-r--r-- 1 root root 3420 Jul 31 15:16 system
-rwxr-xr-x 5 root sys 59203528 Jan 30 2008 vmunix
-bash-3.2#
anonys
Advisor

Re: rdisk driver simulates a disk on the main memory error!

-bash-3.2# kcmodule -c current | grep rdisk
rdisk loaded explicit loadable, unloadable
-bash-3.2#
anonys
Advisor

Re: rdisk driver simulates a disk on the main memory error!

-bash-3.2# kcmodule -v rdisk
Module rdisk (1.0.0)
Description rdisk: HP-UX 11i v2.0 (11.23) sample rdisk driver
State loaded (as requested)
State at Next Boot loaded (as requested)
Capable loaded static unused
Depends On interface HPUX_11_23:1.0

-bash-3.2#
-bash-3.2# kconfig -a | grep rdisk
Module rdisk (1.0.0)
Description rdisk: HP-UX 11i v2.0 (11.23) sample rdisk driver
Module rdisk
Module rdisk (1.0.0)
Description rdisk: HP-UX 11i v2.0 (11.23) sample rdisk driver
Module rdisk
Module rdisk (1.0.0)
Description rdisk: HP-UX 11i v2.0 (11.23) sample rdisk driver
Module rdisk
-bash-3.2#
anonys
Advisor

Re: rdisk driver simulates a disk on the main memory error!

-bash-3.2# make uninstall
/usr/sbin/kcmodule rdisk=uninstall
WARNING: The automatic 'backup' configuration currently contains the
configuration that was in use before the last reboot of this
system.
==> Do you wish to update it to contain the current configuration
before making the requested change? y
* The automatic 'backup' configuration has been updated.
preunload
Before unloading the ramdisk driver, we need to unmount the device
umount: cannot find /dev/dsk/ramdisk in /etc/mnttab
cannot unmount /dev/dsk/ramdisk
ERROR: could not unmount ramdisk device
ERROR: The module preparation script /stand/current/mod/rdisk.prep did
not succeed. It exited with code 1.
*** Error exit code 2 (ignored)
rm -f /usr/conf/mod/rdisk /usr/conf/mod/rdisk.prep