Archive

Posts Tagged ‘Solaris’

Mount USB device in solaris 10

November 26, 2010 Leave a comment

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

or

# 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

/vol/dev/dsk/c5t0d0/unnamed_rmdisk:c
4061392 2549008 1512384    63%    /rmdisk/unnamed_rmdisk

 

 

 

 

Advertisements
Categories: Solaris Admin Tags: