Home > Solaris Admin > Mount USB device in solaris 10

Mount USB device in solaris 10

November 26, 2010 Leave a comment Go to comments

Notice: Solaris only support FAT/FAT32 filesystem, (NTFS can’t be mounted)

1. Check the configuration of /etc/vold.conf

# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
# ident “@(#)vold.conf  1.27    06/01/20 SMI”
# Volume Daemon Configuration file

# Database to use (must be first)
db db_mem.so

# Volfs support of removable media devices
support nomedia

# Labels supported
label cdrom label_cdrom.so cdrom
label dos label_dos.so floppy rmdisk pcmem
label sun label_sun.so floppy rmdisk pcmem

# Devices to use
use cdrom drive /dev/rdsk/c*s2 dev_cdrom.so cdrom%d
use floppy drive /dev/rdiskette[0-9] dev_floppy.so floppy%d
use pcmem drive /dev/rdsk/c*s2 dev_pcmem.so pcmem%d forceload=true
use rmdisk drive /dev/rdsk/c*s2 dev_rmdisk.so rmdisk%d (<– this line is unremarked)

# Actions
eject dev/diskette[0-9]/* user=root /usr/sbin/rmmount
eject dev/dsk/* user=root /usr/sbin/rmmount
insert dev/diskette[0-9]/* user=root /usr/sbin/rmmount
insert dev/dsk/* user=root /usr/sbin/rmmount
notify rdsk/* group=tty user=root /usr/lib/vold/volmissing -p
remount dev/diskette[0-9]/* user=root /usr/sbin/rmmount
remount dev/dsk/* user=root /usr/sbin/rmmount

# List of file system types unsafe to eject
unsafe ufs hsfs pcfs udfs

2. Restart the volfs

/etc/init.d/volmgt stop

/etc/init.d/volmgt start


# svcs -a | grep volf
online         14:46:03 svc:/system/filesystem/volfs:default
# svcadm restart  svc:/system/filesystem/volfs:default

3. The USB filesystem is mounted as the following

4061392 2549008 1512384    63%    /rmdisk/unnamed_rmdisk





Categories: Solaris Admin Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: