From owner-freebsd-questions@FreeBSD.ORG Sat Nov 5 13:38:27 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB9EC16A41F for ; Sat, 5 Nov 2005 13:38:27 +0000 (GMT) (envelope-from jamesoff@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 519C543D46 for ; Sat, 5 Nov 2005 13:38:27 +0000 (GMT) (envelope-from jamesoff@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so58388nzo for ; Sat, 05 Nov 2005 05:38:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fRQbrGNvJP0IkH7jyWBnKs0/z7k/lHbhtGpeqEy6Hf2W3tP812GJHI8zEDb12awU0CT9vXYs+zT22IqmWKBHZWErWTj1YVQKSqLzerXbL9NdJ6pRUsfP325BzQmjzK801vZOcmZ1lA8R7RDm40P/IenLQ7qsUADZwKUYMlQxvvo= Received: by 10.36.224.13 with SMTP id w13mr1052184nzg; Sat, 05 Nov 2005 05:38:26 -0800 (PST) Received: by 10.36.108.19 with HTTP; Sat, 5 Nov 2005 05:38:26 -0800 (PST) Message-ID: <720051dc0511050538g44ae95f1l1d7962058f383235@mail.gmail.com> Date: Sat, 5 Nov 2005 13:38:26 +0000 From: James Seward To: edward In-Reply-To: <436BCDEF.2050709@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4363DE04.4010206@wanadoo.fr> <720051dc0510291436n6fb44acdy9423723ae4086425@mail.gmail.com> <436BCDEF.2050709@wanadoo.fr> Cc: freebsd-questions@freebsd.org Subject: Re: Mounting an iPod X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2005 13:38:27 -0000 On 11/4/05, edward wrote: > Assistance welcome, James. I finally gave up trying to mount the iPod as > an HFS+ device and reformated it in FAT32. Now I can mount it and access > its content (I use mount -t msdos /dev/da0s2 /mnt/ipod). > However, I can unmount it using umount /mnt/ipod, but I'm not quite sure > how to get it to understand its not connected anymore. I wouldn't mind > taking a look at the scripts you mentionned early on. > "The camcontrol utility can cause a loss of data and/or system crashes > if used improperly. Even expert users are encouraged to exercise > caution when using this command. Novice users should stay away from > this utility" says the man page. With such an invitation, I can't wait > to get my hands into this one :). > Thanks, > Edward Here's my script, which I put in /usr/local/bin. You will have to change the mount point and device for camcontrol to suit your setup. You may also want to change permissions on things in /dev so that you can do this as a user. Don't forget that you need to change passN and xpt0, not just the da device. Look in /etc/devfs.conf to see how to make the chanages stick, and change the vfs.usermount sysctl to 1. I based my setup of this on the various documents out there about user-mounting CDs. ---CUT--- #!/bin/sh case "$1" in start) echo "Mounting ipod..." mount /ipod ;; stop) echo "Ejecting ipod..." umount /ipod && camcontrol eject 0:0 ;; *) echo "" echo "Usage: `basename $0` { start | stop }" echo "" exit 64 ;; esac ---CUT--- I just modified one of the rc scripts to make it :) Now I can do "ipod start" and "ipod stop" to mount and umount/eject it. On a sort of related note, anyone had problems with gtkpod reporting double the free space on the ipod? "df" and my iPod agree about the free space, but gtkpod says that double that amount is free. I've had this on 5.4 and 6.0 and on both i386 and amd64.