From owner-freebsd-usb@FreeBSD.ORG Wed Oct 22 23:02:23 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 693211065684 for ; Wed, 22 Oct 2008 23:02:23 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id CB9008FC13 for ; Wed, 22 Oct 2008 23:02:22 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A4368.dip.t-dialin.net [84.154.67.104]) (authenticated bits=0) by flat.berklix.org (8.13.8/8.13.8) with ESMTP id m9MMSJ2P079454; Thu, 23 Oct 2008 00:28:20 +0200 (CEST) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id m9MMS9RF099924; Thu, 23 Oct 2008 00:28:09 +0200 (CEST) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id m9MMRlOF084446; Thu, 23 Oct 2008 00:27:52 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200810222227.m9MMRlOF084446@fire.js.berklix.net> To: johannes-maria@t-online.de From: "Julian Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://berklix.com In-reply-to: Your message "Wed, 22 Oct 2008 16:51:20 +0200." <48FF3DE8.5FED859B@t-online.de> Date: Thu, 23 Oct 2008 00:27:47 +0200 Sender: jhs@berklix.org Cc: freebsd-usb@freebsd.org Subject: Re: mounting an MP3 player? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 23:02:23 -0000 Hi, Reference: > From: Johannes-Maria Kaltenbach > Roland Smith wrote: > [...] > > > # file -s /dev/da* > > > /dev/da0: writable, no read permission > > > /dev/da2: writable, no read permission > > > /dev/da3: writable, no read permission > > > /dev/da4: writable, no read permission > > > > Looking into the source code for the file command, this is an indication > > that the file command cannot open the files, even with the correct > > permissions. > > the permission is 660 for all this /dev/da#-files Likely that excludes you as you are not owner or in same group. > > I guess that this device has some quirks that need to be addressed in > > the driver. Maybe you can find more help on the freebsd-usb list. BTW some mp3 players eg mine http://berklix.com/~jhs/txt/clipman/ seem to detect the power on the cable, & then turn on or off, & then devd see what the player has done, & itself removes devices or recreates (& if so with permissions that dont suit). Solutions include to move power switch of mp3 player to force on or off whatever, & on BSD end, either work as root, or hack the devd.conf so modes or ownership of device allow access to normal users. Beware if mp3 player decides to power down, that can cause DOS FS to disappear, mounts to fail, that if they were in use, might cause a crash, I reckon I've experienced that. Best experiment first on a spare BSD box, not a main server others rely on. Cheers, Julian -- Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com Mail plain ASCII text. HTML & Base64 text are spam. www.asciiribbon.org