Solved

Location of default kernel modules in Solaris

Posted on 2007-12-06
4
1,572 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
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 Schröder 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

785 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