JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Devices and File Systems     Oracle Solaris 10 1/13 Information Library
search filter icon
search icon

Document Information

Preface

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

Comparison of Manual and Automatic Mounting

Overview of Accessing Removable Media

Managing Removable Media (Tasks)

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

23.  UFS Backup and Restore Commands (Reference)

Index

Managing Removable Media (Overview)

The following information is described in this section:

Removable Media Features and Benefits

The Oracle Solaris release gives users and software developers a standard interface for dealing with removable media. Removable media services provide the following benefits:

vold is Managed by the Service Management Facility (SMF)

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

Volume Management (vold) Improvements

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

Comparison of Manual and Automatic Mounting

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

Steps
Manual Mounting
Automatic Mounting
1
Insert media.
Insert media.
2
Become superuser.
For USB diskettes, use the volcheck command.
3
Determine the location of the media device.
Removable media services automatically perform many of the tasks that are required to manually mount and work with removable media.
4
Create a mount point.
5
Make sure you are not in the mount point directory.
6
Mount the device and use the proper mount options.
7
Exit the superuser account.
8
Work with files on media.
Work with files on media.
9
Become superuser.
10
Unmount the media device.
11
Eject media.
Eject media.
12
Exit the superuser account.

Overview of Accessing 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

Access File Systems With This Path
Access Raw Data With This Path
/floppy/floppy0
/vol/dev/aliases/floppy0
/floppy/floppy1
/vol/dev/aliases/floppy1
/cdrom/cdrom0
/vol/dev/aliases/cdrom0
/cdrom/cdrom1
/vol/dev/aliases/cdrom1
/rmdisk/rmdisk0 or

/rmdisk/rmdisk1

/vol/dev/aliases/rmdisk0 or

/vol/dev/aliases/rmdisk1

/pcmem/pcmem0
/vol/dev/aliases/pcmem0

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:

/dev/dsk/c5t0d0p0

USB diskette

/dev/dsk/c4t0d3p0

CF card in a USB card reader

/dev/dsk/c2t0d0s2

DVD-ROM

/dev/dsk/c3t0d0p0

Removable USB disk