From owner-freebsd-questions@freebsd.org Tue Jan 12 11:45:14 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F784A6CAE6 for ; Tue, 12 Jan 2016 11:45:14 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17D2E1B61 for ; Tue, 12 Jan 2016 11:45:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-101-208.dynamic.qsc.de [92.195.101.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id BD91F24D04; Tue, 12 Jan 2016 12:45:04 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u0CBj3HH006727; Tue, 12 Jan 2016 12:45:04 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 12 Jan 2016 12:45:03 +0100 From: Polytropon To: Manish Jain Cc: freebsd-questions@freebsd.org Subject: Re: Is it possible to mount my microSD ? Message-Id: <20160112124503.2db376c9.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2016 11:45:14 -0000 On Tue, 12 Jan 2016 16:27:17 +0530, Manish Jain wrote: > I am on FreeBSD 10.2 (amd64). I have a Nokia 225 mobile which has a > microSD card. When I attach the mobile via USB to my computer, the > following pops in dmesg : > > umass0:6:0:-1: Attached to scbus6 > da0 at umass-sim0 bus 0 scbus6 target 0 lun 0 > da0: Removable Direct Access SCSI device > da0: Serial Number 537907604942000 > da0: 1.000MB/s transfers > da0: 3796MB (7774208 512 byte sectors: 255H 63S/T 483C) > da0: quirks=0x2 > > I was wondering whether it would be possible to mount the microSD disk > in my filesystem. Thanks for any help. Depending on the file system, you might need to try which mount option you'll need. For example, if this is a DOS (FAT) formatted device, something like # mount -t msdos -o ro /dev/da0 /mnt might work. Check the partitioning (if you need to access it vial /dev/da0 or /dev/da0s1). The file system type can be identified with the command # file -s /dev/da0 or applied to /dev/da0s1 (as mentioned above). In some cases, it's required to "re-taste" the device. The command # true > /dev/da0 will do this. As I said, the file system type matters. If it's NTFS, install fuse and use its NTFS module. Also look at "man mount" if there are options that you'd find handy, such as -r (or -o ro), as well as -m, -M, or -o noatime. When everything works as intended, create an entry in /etc/fstab. It could look like this: /dev/da0 /media/sd msdosfs rw,noauto,noatime,-m=644,-M=755 0 0 See "man 5 fstab" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...