Skip Navigation Links | |
Exit Print View | |
Oracle Solaris 11.1 Administration: Devices and File Systems Oracle Solaris 11.1 Information Library |
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
Removable Media Considerations
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
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
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)
4. Dynamically Configuring Devices (Tasks)
5. Managing USB Devices (Tasks)
6. Using InfiniBand Devices (Overview/Tasks)
9. Administering 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)
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:
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
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.
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).
See your hardware handbook for specific instructions.
# rmformat Looking for devices...
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.
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.
# svcadm disable rmvolmgr
# 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.
# svcadm enable rmvolmgr # svcadm enable dbus # svcadm enable hal
# 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
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
# fuser -u /media
The -u displays the user of the media.
For more information, see fuser(1M).
# fuser -u -k /media
The -k option kills the processes accessing the media.
Caution - Killing the processes that are accessing the media should only be used in emergency situations. |
# pgrep process-ID
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.
# 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.