Skip Navigation Links | |
Exit Print View | |
![]() |
System Administration Guide: Devices and File Systems Oracle Solaris 10 1/13 Information Library |
1. Managing Removable Media (Overview/Tasks)
Managing Removable Media (Overview)
Removable Media Features and Benefits
vold is Managed by the Service Management Facility (SMF)
Volume Management (vold) Improvements
Managing Removable Media (Tasks)
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
How to Determine If Removable Media Is Still in Use
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)
10. SPARC: Setting Up Disks (Tasks)
11. x86: Setting Up Disks (Tasks)
12. Configuring Oracle Solaris iSCSI Targets (Tasks)
13. The format Utility (Reference)
14. Managing File Systems (Overview)
15. Creating and Mounting File Systems (Tasks)
16. Configuring Additional Swap Space (Tasks)
17. Checking UFS File System Consistency (Tasks)
18. UFS File System (Reference)
19. Backing Up and Restoring UFS File Systems (Overview/Tasks)
20. Using UFS Snapshots (Tasks)
21. Copying Files and File Systems (Tasks)
22. Managing Tape Drives (Tasks)
The following information is described in this section:
The Oracle Solaris release gives users and software developers a standard interface for dealing with removable media. Removable media services provide the following benefits:
Automatically mounts removable media. For a comparison of manual and automatic mounting, see the following section.
Enables you to access removable media without having to become an administrator.
Allows you to give other systems on the network automatic access to any removable media on your local system. For more information, see Accessing Removable Media on a Remote System.
The volume management daemon, vold, is managed by the Service Management Facility (SMF). This means you can use the svcadm disable command to disable the following new volfs service, if appropriate:
# svcadm disable volfs
You can identify the status of the volfs service by using this command:
$ svcs volfs STATE STIME FMRI online Sep_29 svc:/system/filesystem/volfs:default
For more information, see smf(5).
You can use the svccfg command to display and to set additional vold properties. For example, you could temporarily enable vold logging to help troubleshooting a problem. For example:
# svccfg svc:> select system/filesystem/volfs svc:/system/filesystem/volfs> setprop vold/log_debuglevel=3 svc:/system/filesystem/volfs> exit # svcadm disable volfs # svcadm enable volfs
You can also use the svccfg command to display a listing of settable vold properties.
# svccfg svc:> select volfs svc:/system/filesystem/volfs> listprop vold/* vold/config_file astring vold/log_debuglevel count 3 vold/log_file astring vold/log_nfs_trace boolean false vold/log_verbose boolean false vold/root_dir astring vold/never_writeback_label boolean false svc:/system/filesystem/volfs> exit
For a description of these properties, see the vold(1M).
Device links are properly created for devices that contain no media, similar to the following:
lrwxrwxrwx 1 root root 28 Jun 13 13:09 /vol/dev/aliases/cdrom0 -> /vol/dev/rdsk/c2t2d0/nomedia
You can use the cdrw and rmformat commands to list devices that have no media when vold is running.
You can revert back to the previous vold behavior by changing the following support nomedia entry in the /etc/vold.conf file as follows:
support media
Then, restart vold. For more information, see vold.conf(4).
In addition, vold is now hot-plug aware. This improvement means that if you insert removable media, the media is automatically detected and mounted by vold. There should be no need to restart vold manually to recognize and mount a file system from any removable media device.
If you are using a legacy or non-USB diskette device, then you might need to issue the volcheck command before vold can recognize the media.
If the media is detected, but for some reason, is unmounted, then you'll need to run the following commands:
# volrmmount -i rmdisk0
Before you hot-remove a removable media device, eject the media first. For example:
# eject rmdisk0
The following table compares the steps involved in manual mounting (without removable media services) and automatic mounting (with removable media management) of removable media.
Table 1-1 Comparison of Manual and Automatic Mounting of Removable Media
|
Essentially, removable media services enable you to access removable media just as manual mounting does, but more easily and without the need for administrative access.
If your system has more than one type of removable device, see the following table for their access points.
Table 1-2 Where to Access Removable Media
|
You can use the rmmount -l command to identify mounted media on your system. For example:
# rmmount -l /dev/dsk/c5t0d0p0 rmdisk6,/media/FD-05PUB /dev/dsk/c4t0d3p0 rmdisk5,/media/223UHS-SD-MMC /dev/dsk/c2t0d0s2 cdrom1,cd1,sr1,Oracle_Solaris-11_1-AI-SPARC,/media/Oracle_Solaris-11_1-AI-SPARC /dev/dsk/c3t0d0p0 rmdisk2,/media/00JB-00CRA0
In the above output, the mounted devices are as follows:
USB diskette
CF card in a USB card reader
DVD-ROM
Removable USB disk