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)

# Volfs support of removable media devices
support nomedia

# Labels supported
label cdrom cdrom
label dos floppy rmdisk pcmem
label sun floppy rmdisk pcmem

# Devices to use
use cdrom drive /dev/rdsk/c*s2 cdrom%d
use floppy drive /dev/rdiskette[0-9] floppy%d
use pcmem drive /dev/rdsk/c*s2 pcmem%d forceload=true
use rmdisk drive /dev/rdsk/c*s2 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: