Go to main content

Managing Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

How to Disable or Enable Removable Media Services

Occasionally, you might want to manage media without using removable media services. This section describes how to disable and enable removable media services.

Disabling these services means that you would have to mount all media manually by using the mount command.

  1. Ensure that the media is not being used.

    If you are not sure whether you have found all users of the media, use the fuser command, see How to Determine If Removable Media Is Still in Use.

  2. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  3. Select one of the following:
    • You can disable some or all removable media features in this release:
      • To prevent volumes from mounting outside of user sessions, disable the rmvolmgr service. For example:
        # svcadm disable rmvolmgr
      • To prevent any volume management, disable the dbus, hal, and rmvolmgr services.
        # svcadm disable rmvolmgr
        # svcadm disable dbus
        # svcadm disable hal

        Disabling these services means that you would have to mount all media manually by using the mount command.

    • Enable removable media services.
      # svcadm enable rmvolmgr
      # svcadm enable dbus
      # svcadm enable hal