Is it possible to mount my microSD ?
Polytropon
freebsd at edvax.de
Tue Jan 12 11:45:14 UTC 2016
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, ...
More information about the freebsd-questions
mailing list