From owner-freebsd-questions@FreeBSD.ORG Thu Aug 14 14:47:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 336781065696 for ; Thu, 14 Aug 2008 14:47:53 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id E78CF8FC19 for ; Thu, 14 Aug 2008 14:47:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-45-203.dynamic.qsc.de [92.195.45.203]) by mx01.qsc.de (Postfix) with ESMTP id E064D9027A; Thu, 14 Aug 2008 16:47:50 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id m7EElnov001735; Thu, 14 Aug 2008 16:47:50 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 14 Aug 2008 16:47:45 +0200 From: Polytropon To: EdwardKing Message-Id: <20080814164745.e5aec5ec.freebsd@edvax.de> In-Reply-To: <001601c8fda6$401007d0$3f83a8c0@neusofteaf5839> References: <004901c8fc15$cfd98130$3f83a8c0@neusofteaf5839> <20080813123421.9d297acb.freebsd@edvax.de> <001601c8fda6$401007d0$3f83a8c0@neusofteaf5839> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: How to visit U disk? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 14:47:53 -0000 On Thu, 14 Aug 2008 08:39:43 +0800, EdwardKing wrote: > Then I use dmesg: > $dmesg | grep ^da > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0:1.000MB/s transfers > da0:125MB (256000 512 byte sectors: 64H 32S/T 125C) Correct, this shows da0 is your USB disk. You just need to know which partition to access. # ls /dev/da0* will show you which entries are present. As I mentioned before, /dev/da0s1 or /dev/da0s1c should be the correct one. You can check which partitions are on da0 with this command that just does some reading (no modification): # fdisk da0 Then you tried, as suggested: > $mount -t msdosfs dev/da0s1c /mnt > mount_msdosfs: /dev/da0s1c: Operation not permitted Yes, of course. You're issuing this command from a user's shell, not as root. But because of FreeBSD's security concepts, you need to do the mount operation as root (that's why I prefixed the mount command with a # sign), so use "su" or "sudo" (sudo needs to be installed). You can, of course, enable the user to have access to the USB devices by modifying /etc/devfs.conf and setting vfs.usermount=1 in /etc/sysctl.conf. > $mount -t msdosfs dev/da0 /mnt > mount_msdosfs: /dev/da0: Operation not permitted Same reason here. You need to be root to do this. And don't complain, it's completely intended to be this way. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...