From owner-freebsd-questions@freebsd.org Wed Mar 10 04:29:23 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 48A2B57C6F0 for ; Wed, 10 Mar 2021 04:29:23 +0000 (UTC) (envelope-from freebsd@twc.com) Received: from p-impout003.msg.pkvw.co.charter.net (p-impout003aa.msg.pkvw.co.charter.net [47.43.26.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DwJxt48w4z4TC2 for ; Wed, 10 Mar 2021 04:29:22 +0000 (UTC) (envelope-from freebsd@twc.com) Received: from [192.168.1.9] ([74.132.18.25]) by cmsmtp with ESMTPA id JqTIlucEDGLZxJqTIlnioz; Wed, 10 Mar 2021 04:29:21 +0000 X-Authority-Analysis: v=2.3 cv=FpV7AFjq c=1 sm=1 tr=0 a=6dKv8Xy78h5PIHsve0hi3A==:117 a=6dKv8Xy78h5PIHsve0hi3A==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=ZubcGFkXAAAA:8 a=6I5d2MoRAAAA:8 a=E34Y8k7bFsfhEGeicu8A:9 a=QEXdDO2ut3YA:10 a=1vz42cSfO7BWD9WtZckA:9 a=Q0ZIS9EYY3WLfOWm:21 a=_W_S_7VecoQA:10 a=kUx6feENxpTNjkNjdsbW:22 a=IjZwj45LgO3ly-622nXo:22 a=BPzZvq435JnGatEyYwdK:22 a=pHzHmUro8NiASowvMSCR:22 a=n87TN5wuljxrRezIQYnT:22 Subject: SOLVED: Re: Mounting exFat device To: freebsd-questions@freebsd.org References: <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> From: Steven Friedrich Message-ID: <5a37dddc-a2c9-c0d0-d50a-4941ce2098c7@TWC.com> Date: Tue, 9 Mar 2021 23:29:20 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CMAE-Envelope: MS4wfIMKlzfRAtNJCaovcKk16viVounMZyvouaH8DnyzH0YoGi5ulYnaHqx3/T8h5tpi1m2UR/ZrRG6wpCrRHIOXg8bVbvyGiDu3YwTK3iutxTxH5XeahKIn 7EgfZCthn/fsrnEVGb8XhnoaMyoqmStQOHKUMqzXaGYAuOwr6P1/W9NWoxTp0fOY9SSgPfhlRmV3bg== X-Rspamd-Queue-Id: 4DwJxt48w4z4TC2 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@twc.com designates 47.43.26.134 as permitted sender) smtp.mailfrom=freebsd@twc.com X-Spamd-Result: default: False [-1.32 / 15.00]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[twc.com]; NEURAL_SPAM_SHORT(0.98)[0.981]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[47.43.26.134:from]; FREEMAIL_FROM(0.00)[TWC.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_NA(0.00)[TWC.com]; R_SPF_ALLOW(-0.20)[+ip4:47.43.26.0/24]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[47.43.26.134:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:40294, ipnet:47.43.24.0/21, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions]; RECEIVED_SPAMHAUS_PBL(0.00)[74.132.18.25:received] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 04:29:23 -0000 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 >         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 * *fusefs-libs-2.9.9_2 * *fusefs-ntfs-2017.3.23 * *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"