JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 11.1 Administration: Devices and File Systems     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Managing Removable Media (Tasks)

Managing Removable Media (Overview)

Removable Media Features and Benefits

Comparison of Manual and Automatic Mounting

Overview of Accessing Removable Media

Managing Removable Media

Removable Media Considerations

Formatting Diskettes

How to Load Removable Media

How to Format a Diskette (rmformat)

How to Create a File System on Removable Media

How to Create a File System on a DVD-RAM

How to Check a File System on Removable Media

How to Repair Bad Blocks on Removable Media

Applying Read or Write Protection and Password Protection to Removable Media

How to Enable or Disable Write Protection on Removable Media

How to Enable or Disable Read or Write Protection and Set a Password on Removable Media

Accessing Removable Media

Using Removable Media Names

Guidelines for Accessing Removable Media Data

How to Add a New Removable Media Drive

How to Disable or Enable Removable Media Services

How to Access Information on Removable Media

How to Determine If Removable Media Is Still in Use

How to Eject Removable Media

Accessing Removable Media on a Remote System

How to Make Local Media Available to Other Systems

How to Access Removable Media on Remote Systems

2.  Writing CDs and DVDs (Tasks)

3.  Managing Devices (Tasks)

4.  Dynamically Configuring Devices (Tasks)

5.  Managing USB Devices (Tasks)

6.  Using InfiniBand Devices (Overview/Tasks)

7.  Managing Disks (Overview)

8.  Managing Disk Use (Tasks)

9.  Administering Disks (Tasks)

10.  Setting Up Disks (Tasks)

11.  Configuring Storage Devices With COMSTAR (Tasks)

12.  Configuring and Managing the Oracle Solaris Internet Storage Name Service (iSNS)

13.  The format Utility (Reference)

14.  Managing File Systems (Overview)

15.  Creating and Mounting File Systems (Tasks)

16.  Configuring Additional Swap Space (Tasks)

17.  Copying Files and File Systems (Tasks)

18.  Managing Tape Drives (Tasks)

Index

Accessing Removable Media

You can access information on removable media with or without using volume management. For information on accessing information on removable media with GNOME's File Manager, see the GNOME desktop documentation.

This following procedures are described in this section:

Using Removable Media Names

Removable media is now mounted automatically in the /media directory. However, symbolic links to /media are provided from previous media mount points, /cdrom and /rmdisk, for compatibility purposes.

For example, a compact flash memory card (/dev/dsk/c4d0p0:1) is mounted as follows:

$ ls /media/memory-card-name

For example, a USB memory stick (/dev/dsk/c3t0d0s0) is mounted, as follows:

$ ls /media/U3

Guidelines for Accessing Removable Media Data

Most DVDs are formatted to the ISO 9660 standard, which is portable. So, DVDs can be mounted by volume management.

To accommodate possible different formats, a DVD is split into slices. Slices are similar in effect to partitions on hard disks. The 9660 portion is portable. If you are having trouble mounting a DVD, particularly if it is an installation DVD, make sure that its file system is appropriate for your system's architecture. For example, you can check the label on DVD.

How to Add a New Removable Media Drive

Generally, most modern bus types support hot-plugging. This means you can insert a disk in an empty slot and the system recognizes it.

For more information about hot-plugging devices, see Chapter 4, Dynamically Configuring Devices (Tasks).

  1. Become an administrator.
  2. Connect the new media drive.

    See your hardware handbook for specific instructions.

  3. Confirm that the system sees the new media drive.
    # rmformat
    Looking for devices...

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.
  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

How to Access Information on Removable Media

  1. Insert the media.

    The media is mounted after a few seconds.

  2. List the contents of the media. For example:
    # ls /media/Oracle_Solaris-11_1-AI-SPARC
    auto_install      export            proc              solarismisc.zlib
    bin               home              reconfigure       system
    boot              jack              root              tmp
    dev               mnt               sbin
    devices           platform          solaris.zlib 
  3. (Optional) Copy the file that you identified in the previous step.

Example 1-3 Accessing Information on Removable Media

This example shows how to access information on a USB memory stick.

$ ls /media/usb-name

This example shows how to access information on a DVD.

$ ls /media
Oracle_Solaris-11_1-AI-SPARC cdrom

How to Determine If Removable Media Is Still in Use

  1. Become an administrator.
  2. Identify the processes that are accessing the media.
    # fuser -u /media

    The -u displays the user of the media.

    For more information, see fuser(1M).

  3. (Optional) Kill the process accessing the media.
    # fuser -u -k /media

    The -k option kills the processes accessing the media.


    Caution

    Caution - Killing the processes that are accessing the media should only be used in emergency situations.


  4. Verify that the process is gone.
    # pgrep process-ID

How to Eject Removable Media

  1. Ensure that the media is not being used.

    Remember, media is “being used” if a shell or an application is accessing any of its files or directories. If you are not sure whether you have found all users of a DVD (for example, a shell hidden behind a desktop tool might be accessing it), use the fuser command. See How to Determine If Removable Media Is Still in Use.

  2. Eject the media.
    # eject media

    For example, for a DVD, you would do the following:

    # eject cdrom

    For example, for a USB memory stick, you would do the following:

    # eject rmdisk0

    Tip - You can view the removable device name with the eject -l command.