From owner-freebsd-questions@freebsd.org Fri May 1 17:13:23 2020 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 1459C2DA968 for ; Fri, 1 May 2020 17:13:23 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49DJjt1BrZz3LRK for ; Fri, 1 May 2020 17:13:21 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 041HDKik082013 for ; Fri, 1 May 2020 11:13:20 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) From: Gary Aitken Subject: Re: Mounting SD-card in my camera To: freebsd-questions@freebsd.org References: Reply-To: freebsd@dreamchaser.org Message-ID: <90587ad3-0da9-139d-2192-c2f85fd03453@dreamchaser.org> Date: Fri, 1 May 2020 11:12:04 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Fri, 01 May 2020 11:13:20 -0600 (MDT) X-Rspamd-Queue-Id: 49DJjt1BrZz3LRK X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-5.59 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; IP_SCORE(-3.29)[ip: (-8.64), ipnet: 66.109.128.0/19(-4.32), asn: 21947(-3.46), country: US(-0.05)]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2020 17:13:23 -0000 On 5/1/20 4:23 AM, Morten Bo Johansen via freebsd-questions wrote: > On 2020-05-01 Manish Jain wrote: > >> Hi Morten, >> >> 1) It would be useful if you could provide the output of : >> `gpart show da0` > > It says: > > gpart: No such geom: da0 > >> 2) Is it possible for you to take the SD card out of the camera, insert >> it into a USB SD card reader, and attach the card reader to the system ? > > Great idea, why didn't I think about that ...;) Yes I can plug > the card into a USB card reader and it is automounted with no > problem. The device subnode /dev/da0s1 is also created on this > occasion. > > With the card reader the output from gpart is > > $ gpart show da0 > => 63 124735425 da0 MBR (59G) > 63 32705 - free - (16M) > 32768 124702720 1 ntfs (59G) > > I just wonder why it does not work with my camera. It works > with no problem in Linux. Cards <= 32 are formatted with FAT, those greater get ExFAT and must be mounted using fuse. Camera SD cards normally use msdosfs: mount -t msdosfs /dev/da0s1 /mnt However... SD cards >32GB are formatted exFAT Need to use fuse to mount: /boot/loader.conf or /boot/loader.conf.local: fuse_load="YES" /etc/rc.conf: fusefs_enable="YES" kldstat should show fuse.ko loaded man mount.exfat-fuse mount.exfat -o ro /dev/da0s1 /mnt unmount normally using umount Gary