From owner-freebsd-questions@FreeBSD.ORG Fri Feb 2 21:41:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E60E16A407 for ; Fri, 2 Feb 2007 21:41:59 +0000 (UTC) (envelope-from nospam@dgmm.net) Received: from lon-mail-1.gradwell.net (lon-mail-1.gradwell.net [193.111.201.125]) by mx1.freebsd.org (Postfix) with ESMTP id 67CFE13C46B for ; Fri, 2 Feb 2007 21:41:58 +0000 (UTC) (envelope-from nospam@dgmm.net) Received: from lon-mail-1.gradwell.net ([193.111.201.125] helo=webmaker country=GB ident=dave#pop3^dgmm#net) by lon-mail-1.gradwell.net with esmtpa (Gradwell gwh-smtpd 1.243) id 45c3a690.9f31.30b for freebsd-questions@freebsd.org; Fri, 2 Feb 2007 21:01:04 +0000 (envelope-sender ) From: Dave To: freebsd-questions@freebsd.org Date: Fri, 2 Feb 2007 21:01:02 +0000 User-Agent: KMail/1.9.1 References: <86zm7xl6sj.fsf@Bacalao.shenton.org> In-Reply-To: <86zm7xl6sj.fsf@Bacalao.shenton.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702022101.02831.nospam@dgmm.net> Subject: Re: Easy USB-drive automounter and "filemanager" for nontechies? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dave01@dgmm.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2007 21:41:59 -0000 On Friday 02 February 2007 00:52, Chris Shenton wrote: > I'm a longtime FreeBSD user but my S.O. just barely uses the machines > -- Pine and Firefox mostly. Doesn't even know she has a homedir or > that there's a bunch of stuff in it. > > She now has a digital recorder with a 1GB CF card that interfaces to > computers with a USB cable and she needs to get files off of. She can > plug it into USB OK but -- as her sysadm -- I have to mount it and > copy the files off, then unmount. > > I'm looking for something like she'd get on a Mac or PC: > > 1. a way to automount the USB 'drive' when she plugs in > 2. a visual filemanager or some other friendly way for her to see > files and copy them off so she can mail them or whatnot. > 3. a way to safely unmount the USB device when she's done > > I'm starting to play with the user-priv mounting, then will look at > telling usbd to mount the drive when it sees it... Is this is the > right technical solution? > > I've got no idea about friendly GUI/filemanager with drag-n-drop or > other easy way to get files off. She's using simple olde FVWM2 now > and I'd prefer not to load up a massive GUI like KDE or Gnome. I just > don't know what's out there, being a command line dinosuar myself. > > Any recommendations? > > Thanks. Not specifically what you are asking for but you might consider a shell script behind a desktop/menu icon to mount the device, sync the files with a directory on the HDD and then unmount it. That way she doesn;t have to worry about pulling it while it's mounted amd can work in the "safe" environment of the HDD. Something like: (cobbled up from a couple of scripts I use, could use more error trapping) #find and mount device camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00 > /dev/null 2>&1 if [ "$?" -eq "0" ]; then dev=`camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00 | grep -o 'da[0-9][0-9]*'` if [ `df | grep $dev | grep -o 'da[0-9][0-9]*'` ]; then echo MP3Player already mounted else mount_msdosfs /dev/${dev} /home/dave/mp3player ; echo Mounted MP3Player to ~/mp3player as /dev/${dev} fi else echo MP3Player not plugged in fi #sync directory with device rsync -rv --ignore-existing --delete /home1/audiobooks/0mp3/ ~/mp3player #unmount device if [ `df | grep mp3player | grep -o 'da[0-9][0-9]*'` ]; then umount ~/mp3player ; i=1 ; echo MP3Player safely un-mounted fi