From nobody Wed Jan 10 22:33:04 2024 X-Original-To: freebsd-questions@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 4T9Myz36HCz56M4n for ; Wed, 10 Jan 2024 22:33:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T9Myy6Hkrz3ydv for ; Wed, 10 Jan 2024 22:33:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Authentication-Results: mx1.freebsd.org; none Received: from terra.edvax.de ([178.12.45.217]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MqbDs-1qt3HC1Qki-00mZ8d; Wed, 10 Jan 2024 23:33:18 +0100 Received: from r56.edvax.de (r56 [10.200.1.11]) (authenticated bits=0) by terra.edvax.de (8.17.1/8.17.1) with ESMTPA id 40AMX9Vd007949; Wed, 10 Jan 2024 23:33:10 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 10 Jan 2024 23:33:04 +0100 From: Polytropon To: freebsd@dreamchaser.org Cc: Souji Thenria , FreeBSD Mailing List Subject: Re: Problem mounting new Sandisk 1TB USB drive Message-Id: <20240110233304.7a8b7f10.freebsd@edvax.de> In-Reply-To: References: <746cd0fe-9de8-414b-8b5d-7030d423fa7f@dreamchaser.org> <85758e7a-f9bb-4568-a863-53c2439045ce@souji-thenria.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:je97zWEUJOwJnsOJr8fyyj0CzfaVbyy/xwi2cWXOWHHbnW9Kfnn L/LZeUbBrx2xF+3ZwVyiQJuLMYjxulTuwPl0i8t0RGrDRKLAYwjoxwwUDH0QtQpCmvZ+ufi GMXO9cgeGExPMQVHezOlU7AYb3IUpQotRghPZP2Q5iwCw0AqoStb1v4qyHYFu3mNhAUAjnv 4vtF+P4gPxOpcf7D/Ms+Q== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:t1c/SMrCoYk=;sR4trFHOUY+PspH36/MqDe9MGYM up7vU7/sBL1IvPwFT7CJ6YsuOvuRJ2kHocTKhlbtuKb1SkX+i4xEJYPJJmJtA4fX9XronGdgU sx3XyAb/8h+kpJDOjGkD/skrr5xrH2y7AD2oFvepssfH1s0TJ/wG+7N2dXNtD1CJRajsdbVJ5 1Mr5I48XWvPIhYY0o98zmZ2iOXaz3lamIpwqBeYsSSAurZc0NOTdJUxymWJtbPbyjEloA1TeA 0pNkkSQvWYHvzwWlBUjUmuJb5QSLDt7pQyN+NoKaQ454IyGR3Io90UUcgNEKP0IK3QT/Y7Ue6 QtRVOLvwcqFPSF2zecb107IbuLQF6FJKIunnvmfYGrEbJlbMnaNP+Jndqk8sZNqqv075Bj8s6 mcrAknx82YJmhSPPUhQIvQbiSEze1Gg9WWJRZYgX35uUpUU+C9+hWgUpSelSFQxOiTz1uKmwe gfNdqgWGyDsHQwbuvf/X5wamcgeKSdDpXfPcDoX2SRn7GlixANn85Tu5yvHNyOR7aWA1Cr3w5 qP56q4LYP5P5NIZJHptY6uxvFAAmKk4fBBv53rPj+EwZf4kITtpIT+PTTtEOhVr3U3+OiJfq+ K3GQUEOsUVvUolX5oZFWMQprZ+HiowK9xAF/aEiXai248CeVVxAFcLFmCZG/6z0EDFimrpfAs qxYccm6CjXJTr4rvSZJzbBLJoMusCQ0SC+eXO/TAZoPiG6uCPlpkpawZPKK4XI8wHt3o70wpY +t24vIztd4iZi0bwp4aNS1HQiwoDudqfZNq8z4xLWcouCngKz2Vt+Yc9uj8OB74x+UEj6gi1y 0wLc29RNktcqVpqY/XCw0hPRhboPtCGGjKjHA7UqGHCX9xFdbnHcM80VCd0VJmIrfpCLajj82 xlLyE4yfXC3n8xA== X-Rspamd-Queue-Id: 4T9Myy6Hkrz3ydv X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] On Wed, 10 Jan 2024 13:03:28 -0700, Gary Aitken wrote: > The stick has been plugged into an android phone since it was first > tried on the fbsd and ubuntu systems, before I installed ntfs-3g. > Mounting it on ubuntu, I see two suspect files, 'Install SanDisk Software.dmg' and 'Install SanDisk Software.exe', plus a pdf that > says to run the appropriate file to get "valuable software..." > I'm thinking / hoping neither of those got automagically run, since > it's never been plugged into a microsoft or mac system. I've since > renamed them away. This observation leads to the following assumption: The stick is actually pre-formatted with exFAT. Problem here: exFAT disguises itself as an NTFS partition, but it does not have NTFS metadata and content, so ntfs-3g cannot mount it, even though tools like gpart or fdisk show a NTFS partition. So here is what you should check: 1. /boot/loader.conf contains: fuse_load="YES" Reboot if neccessary. 2. Mount device manually, read-only, perform checks, then unmount again: # mount.exfat -o ro /dev/da0s1 /mnt/memstick # df -f /mnt/memstick # ls -R /mnt/memstick # umount /mnt/memstick 3. Create /etc/fstab entry if desired. NB: mount.exfat does not have a manpage or help option. Perform this easily with root privileges, just to make sure you don't run into any permission problems for files involved. Also check "dmesg" output in case the system would log a severe filesystem inconsistency or error that could prevent mounting. > However, something, I assume the android phone, automagically set > up a bunch of directories, which are empty: Android, AudioBooks, > DCIM, Pictures, Videos, etc. It wouldn't probably have been able to do this if the stick was formatted with NTFS... > Doesn't seem like any of that should have affected the formatting, > Although at some point after I can get it to mount I'd like to > know how to prevent the auto directory setup from happening. Why don't you simply run newfs on the stick, with the filesystem *you* _want_ to use? You can use UFS it you want to, works perfectly well. ;-) The filesystem ot use depends on what you want to use it for. If data exchange with Android devices is your goal, you'd probably keep using exFAT... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...