Solved

Location of default kernel modules in Solaris

Posted on 2007-12-06
4
1,590 Views
Last Modified: 2013-12-27
Hello,

When I execute 'sysdef' command in solaris, I'm seeing a lot of information on kernel drivers which are loaded by default while system booting.
I would like to know from which location these default kernel modules are getting loaded. And what is the significance of having /etc/system file?

Thanks,
Ashok
0
Comment
Question by:rdashokraj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 25 total points
ID: 20425645
Hi,

Solaris kernel modular one and modules are loaded when needed or referenced, or they can be forced to load even if not referenced.

The /etc/system file is self explaining. The location of kernel modules is set by moddir. I have pasted the lines below from system file:

* moddir:
*
*       Set the search path for modules.  This has a format similar to the
*       csh path variable. If the module isn't found in the first directory
*       it tries the second and so on. The default is /kernel /usr/kernel
*
*       Example:
*               moddir: /kernel /usr/kernel /other/modules

To force a module load you use forceload.

* forceload:
*
*       Cause these modules to be loaded at boot time, (just before mounting
*       the root filesystem) rather than at first reference. Note that
*       forceload expects a filename which includes the directory. Also
*       note that loading a module does not necessarily imply that it will
*       be installed.
*
*       Example:
*               forceload: drv/foo
0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 25 total points
ID: 20425795
The actual kernel modules themselves are located under /kernel
0
 
LVL 16

Accepted Solution

by:
Hanno P.S. earned 75 total points
ID: 20426111
Solaris looks for kernel modules by default in the following directories:
  /kernel/drv
  /usr/kernel/drv
  /platform/`uname -m`/kernel/drv

To boot a standard Solaris system, you don't need a /etc/system at all.
If you want to modify the system behavior, you may add entries to /etc/system
0
 

Author Closing Comment

by:rdashokraj
ID: 31413349
Thanking you all for your inputs.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question