Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2021 23:29:20 -0500
From:      Steven Friedrich <FreeBSD@TWC.com>
To:        freebsd-questions@freebsd.org
Subject:   SOLVED: Re: Mounting exFat device
Message-ID:  <5a37dddc-a2c9-c0d0-d50a-4941ce2098c7@TWC.com>
In-Reply-To: <c28cd746-aab1-0d39-68f6-26c6b306be71@holgerdanske.com>
References:  <d410911b-df2e-8f28-a557-9dcb89a67785@twc.com> <9b71b708-20de-67f6-50db-a828ef380ee3@holgerdanske.com> <851fbc46-a752-a6fb-83f2-f6363c6381fa@twc.com> <20aacf4c-2ca0-b40b-62fb-9aaf164df415@holgerdanske.com> <0d91f3b4-909a-78f2-421b-98dba374d363@twc.com> <c28cd746-aab1-0d39-68f6-26c6b306be71@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 3/8/2021 6:58 PM, David Christensen wrote:
> On 3/8/21 8:27 AM, Steven Friedrich wrote:
>
>
>
> Here is one of my FreeBSD systems:
>
> 2021-03-08 14:53:03 toor@f2 ~
> # freebsd-version
> 12.2-RELEASE-p4
>
> 2021-03-08 14:53:08 toor@f2 ~
> # uname -a
> FreeBSD f2.tracy.holgerdanske.com 12.2-RELEASE-p4 FreeBSD 
> 12.2-RELEASE-p4 GENERIC  amd64
>
>
> Here is a SanDisk Cruzer Glide with the original factory format (FAT32 
> or whatever; there are too many variants):
>
> 2021-03-08 14:53:09 toor@f2 ~
> # camcontrol devlist | grep -i sandisk
> <SanDisk Cruzer Glide 1.00>        at scbus7 target 0 lun 0 (pass2,da0)
>
> 2021-03-08 14:53:26 toor@f2 ~
> # gpart show da0
> =>        1  122585087  da0  MBR  (58G)
>           1         31       - free -  (16K)
>          32  122585056    1  fat32lba  (58G)
>
> 2021-03-08 14:53:41 toor@f2 ~
> # gpart list da0
> Geom name: da0
> modified: false
> state: OK
> fwheads: 255
> fwsectors: 63
> last: 122585087
> first: 1
> entries: 4
> scheme: MBR
> Providers:
> 1. Name: da0s1
>    Mediasize: 62763548672 (58G)
>    Sectorsize: 512
>    Stripesize: 0
>    Stripeoffset: 16384
>    Mode: r0w0e0
>    efimedia: HD(1,MBR,00000000,0x20,0x74e7fe0)
>    rawtype: 12
>    length: 62763548672
>    offset: 16384
>    type: fat32lba
>    index: 1
>    end: 122585087
>    start: 32
> Consumers:
> 1. Name: da0
>    Mediasize: 62763565056 (58G)
>    Sectorsize: 512
>    Mode: r0w0e0
>
> 2021-03-08 14:55:32 toor@f2 ~
> # mkdir /mnt/da0s1
>
> 2021-03-08 14:56:56 toor@f2 ~
> # mount /dev/da0s1 /mnt/da0s1
> mount: /dev/da0s1: No such file or directory
>
> 2021-03-08 14:57:04 toor@f2 ~
> # l /dev/da*
> /dev/da0    /dev/da0s1
>
>
> I believe the error message is misleading -- device node /dev/da0s1 
> exists, but mount(8) is failing because it cannot determine the type 
> of the filesystem on da0s1 (?).
>
>
> STFW the solution is to provide the correct 't type' option to mount(8):
>
> 2021-03-08 15:05:15 toor@f2 ~
> # mount -v -t msdosfs /dev/da0s1 /mnt/da0s1
> /dev/da0s1 on /mnt/da0s1 (msdosfs, local, writes: sync 1 async 0, 
> reads: sync 1872 async 0, fsid a400000032000000)
>
> 2021-03-08 15:13:22 toor@f2 ~
> # mount | grep da0
> /dev/da0s1 on /mnt/da0s1 (msdosfs, local)
>
> 2021-03-08 15:13:37 toor@f2 ~
> # l /mnt/da0s1
> ./                    SanDiskSecureAccess/
> ../                    SanDiskSecureAccessV3.1_win.exe*
> README.TXT*                firmware/
>
> 2021-03-08 15:19:49 toor@f2 ~
> # umount /mnt/da0s1
>
>
> David

I found the solution.

I used an old thumb drive and formatted it for NTFS and copied a few 
files on it.

Then I found https://docs.freebsd.org/en/books/handbook/disks/#using-ntfs

which worked.  So then I reformatted to exFat, using Windows 10, and 
putting a few files on it.

 From an Internet search I found the solution for exfat drives is 
mount.exfat, which doesn't have a man page!!

But mount.exfat /dev/da0s1 /mnt *worked*.

Note the following extra packages:

*fusefs-exfat-1.3.0 
<https://svnweb.freebsd.org/ports/head/sysutils/fusefs-exfat>*

*fusefs-libs-2.9.9_2 
<https://svnweb.freebsd.org/ports/head/sysutils/fusefs-libs>*

*fusefs-ntfs-2017.3.23 
<https://svnweb.freebsd.org/ports/head/sysutils/fusefs-ntfs>;
*

*Note the Handbook, Chapter 18 section 8, describes using NTFS, but 
doesn't mention exFat.*

Thanks for your responses David Christensen

Steven
**

> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5a37dddc-a2c9-c0d0-d50a-4941ce2098c7>