Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2008 16:47:45 +0200
From:      Polytropon <freebsd@edvax.de>
To:        EdwardKing <zhangsc@neusoft.com>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: How to visit U disk?
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Aug 2008 08:39:43 +0800, EdwardKing <zhangsc@neusoft.com> wrote:
> Then I use dmesg:
> $dmesg | grep ^da
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0:<USB NAND FLASH DISK 0.20> 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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080814164745.e5aec5ec.freebsd>