From nobody Sun Oct 20 18:07:34 2024 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XWmcP3p3wz5Zc56 for ; Sun, 20 Oct 2024 18:07:17 +0000 (UTC) (envelope-from a.e.hecht@t-online.de) Received: from mailout12.t-online.de (mailout12.t-online.de [194.25.134.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mailout00.t-online.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XWmcN0Hdbz4MbG for ; Sun, 20 Oct 2024 18:07:16 +0000 (UTC) (envelope-from a.e.hecht@t-online.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of a.e.hecht@t-online.de designates 194.25.134.22 as permitted sender) smtp.mailfrom=a.e.hecht@t-online.de; dmarc=none Received: from fwd70.aul.t-online.de (fwd70.aul.t-online.de [10.223.144.96]) by mailout12.t-online.de (Postfix) with SMTP id 01AC8A722 for ; Sun, 20 Oct 2024 20:07:14 +0200 (CEST) Received: from X230.domain.home ([79.231.11.72]) by fwd70.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1t2aKf-0OLeV60; Sun, 20 Oct 2024 20:07:13 +0200 Date: Sun, 20 Oct 2024 20:07:34 +0200 From: Andreas Hecht To: freebsd-fs@freebsd.org Subject: FAT32 support on freebsd Message-ID: Reply-To: a.e.hecht@t-online.de List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-TOI-EXPURGATEID: 150726::1729447633-8963143E-DDF6EEBA/0/0 CLEAN NORMAL X-TOI-MSGID: 94e2c642-1580-4934-b72a-3d5cb2d1ffef X-Spamd-Result: default: False [0.50 / 15.00]; NEURAL_SPAM_MEDIUM(0.58)[0.576]; NEURAL_SPAM_LONG(0.36)[0.361]; R_SPF_ALLOW(-0.20)[+ip4:194.25.134.16/28:c]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[194.25.134.22:from]; NEURAL_HAM_SHORT(-0.04)[-0.036]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[t-online.de]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[t-online.de]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[194.25.134.22:from]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[t-online.de]; ASN(0.00)[asn:3320, ipnet:194.25.0.0/16, country:DE]; MISSING_XM_UA(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[a.e.hecht@t-online.de]; RCVD_COUNT_TWO(0.00)[2]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_DN_NONE(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; FREEMAIL_REPLYTO(0.00)[t-online.de] X-Rspamd-Queue-Id: 4XWmcN0Hdbz4MbG X-Spamd-Bar: / My FAT32 formatted portable SSD "Western Digital My Passport 25F3" does not seem to be supported by FreeBSD. Mounting the drive works fine but I can not access the data stored within it: # mount -t msdosfs /dev/da0s1 /mnt # cd /mnt # ls -al total 0 The 'ls -al' above should show a folder named 'data' stored in the top level diretory of the drive. The folder does not show up but during execution of 'ls -al' the following kernel message appears: getblkx: maxsize(66560) > maxbcachebuf(65536) I found that this particular drive uses 128 sectors per cluster. This multiplied with 512 bytes per sector results in 65536 bytes per sector which per FAT specification seems to be too much: (https://www.cs.fsu.edu/~cop4610t/assignments/project3/spec/fatspec.pdf) "Note however, that a value should never be used that results in a “bytes per cluster” value (BPB_BytsPerSec * BPB_SecPerClus) greater than 32K (32 * 1024). There is a misconception that values greater than this are OK." What makes me wonder is that the same drive works fine with Debian 12 and NetBSD 10. Is FreeBSD supposed to support this drive? Shall I send a problem report? -Andreas