Solved

Location of default kernel modules in Solaris

Posted on 2007-12-06
4
1,565 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
Comment Utility
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
Comment Utility
The actual kernel modules themselves are located under /kernel
0
 
LVL 16

Accepted Solution

by:
Hanno Schröder earned 75 total points
Comment Utility
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
Comment Utility
Thanking you all for your inputs.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now