Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2016 12:45:03 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Manish Jain <bourne.identity@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Is it possible to mount my microSD ?
Message-ID:  <20160112124503.2db376c9.freebsd@edvax.de>
In-Reply-To: <BLU436-SMTP622117D271ECB27C834252F6CA0@phx.gbl>
References:  <mailman.119.1452513602.23021.freebsd-questions@freebsd.org> <BLU436-SMTP622117D271ECB27C834252F6CA0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <MEDIATEK FLASH DISK > 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<NO_6_BYTE>
> 
> 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, ...



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