This may helps: <http://www.genunix.org/distributions/belenix_site/binfiles/README.FSWfsmisc.txt> We've done it this way, with two simple setuid (arggh!) scripts (see below, you may have to fiddle a bit with the first line to get the correct device) so that a user can mount and unmount his own devices on a /tmp subdirectory (should probably professionally be done via HAL). Results are mixed, if you suck a lot of data, it may gets stuck, but for most simple file transfer this works on our Osol 2009.06-SU7 build.
mount_ntfs: #!/bin/bash -p #================================================================# # Mount NTFS partition on an USB disk onto /tmp/NTFS # # Needs packages FSWpart and FSWfsmisc from Belenix distribution # #----------------------------------------------------------------# # STATUS: gra 06-Sep-2010 CREATED: gra 02-Sep-2010 # #================================================================# DISK=`rmformat -l 2>/dev/null|nawk 'BEGIN{s=0};/Logical/{s=1;dev=$4;};/Bus: USB/{if(s==1){print dev}};/Bus: IDE/{s=0};'` if [ -n "$DISK" ] ; then PART=`prtpart $DISK -ldevs 2>&1| grep -v EXT2 | grep NTFS | cut -f1` if [ -n $PART ] ; then mkdir /tmp/NTFS chown $USER:$GROUP /tmp/NTFS chmod u+w /tmp/NTFS mount -F ntfs $PART /tmp/NTFS || (echo "could not mount $PART" ; rmdir /tmp/NTFS; exit 1) || exit 1 echo "mounted NTFS partition $PART on /tmp/NTFS/" else echo "no NTFS partitions on disk $DISK" fi else echo "no disk with NTFS partitions" fi umount_ntfs: #!/bin/bash -p #================================================================# # Umount NTFS partition mounted on /tmp/NTFS # # Needs packages FSWpart and FSWfsmisc from Belenix distribution # #----------------------------------------------------------------# # STATUS: gra 06-Sep-2010 CREATED: gra 02-Sep-2010 # #================================================================# /usr/bin/xumount /tmp/NTFS || (echo "could not unmount /tmp/NTFS";exit 1) || exit 1 sleep 3 rmdir /tmp/NTFS echo "unmounted NTFS partition on /tmp/NTFS" -- This message posted from opensolaris.org _______________________________________________ opensolaris-help mailing list opensolaris-help@opensolaris.org