From nobody Wed Mar 13 09:48:50 2024 X-Original-To: bugs@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 4Tvm1G6MfRz5Dkpn for ; Wed, 13 Mar 2024 09:48:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tvm1G48L2z4jnX for ; Wed, 13 Mar 2024 09:48:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710323330; a=rsa-sha256; cv=none; b=B+y/2ckaSWnfKYBZhys1RDqVVL2D1nRIC1E6qq61ETt3B6CHuRRsRcWw7is7Y7SD7cOF9H 8gt1bsOnR95DKf5OdESY5C1RVRVCB2kdL0u3Jo8sQarIKqB4ac5MI7+4K0dt02/6cLGwoe MxiRwg2cNxgcNezJOgkxCqQf3O9sQAQcoXJxO0K79ja+lMme6vPHDWPgXt3/tlZ+tFQTJ/ QRpEHQbiTVonV/YthGm8wN5SFDAjOOQHJjSjIUP30yQ9fPsOPSg5Qynev4Dr/UEco0bhEL htuUbyrP/qFFdZ9doW5rl7K4p3EtqcmID3/mToBndgITVmvfxbRCJ+OLSWTTQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710323330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xA0TKohJSZfymFr47i/GvZy5/0KxL83pMG4Fhd4tGKs=; b=wOOX52193cFiXt1P5ysNdFPnt96ztOX2FGP8QC9xPfzZjalL9/1cOEjkg09x9xcTXOqd8n IitJXimHasPmoYuL5PJjDoYwpv3geBGYZPuNBRrgTtXXaaPbi9TTmxMXQHIjMC5G5wPJqj bsI7r6et7DXdc6pqvPO5Nd0x57ztHSYWHemn2H2I0uQira7JcdQY8l5S+P8LKzH14k80oc 2Nu5X44k/H9P7+GtA1nDq3vdNwU+DcyDOhylW7RTBW8TtUtj/KQt6ZOkFA/N3/8TTE6Pt9 nSuBcfnk5+DpInn2xaNpKRKHHgfeVrhu7Z/CMk6O7eJ+qzNf79AZQUawOABWeg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tvm1G3fQ6zdX8 for ; Wed, 13 Mar 2024 09:48:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42D9mob7060608 for ; Wed, 13 Mar 2024 09:48:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42D9mojS060607 for bugs@FreeBSD.org; Wed, 13 Mar 2024 09:48:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277663] Component: /sbin/mount (No selection for sbin); mount -t msdosfs /dev/wrongusbdeviceID error output incorrect Date: Wed, 13 Mar 2024 09:48:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bkastning@protonmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277663 Bug ID: 277663 Summary: Component: /sbin/mount (No selection for sbin); mount -t msdosfs /dev/wrongusbdeviceID error output incorrect Product: Base System Version: 14.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bkastning@protonmail.com Component: /sbin/mount (No selection for sbin); mount -t msdosfs /dev/wrongusbdeviceID error output incorrect This is my first bug report. I'm sure I will make many mistakes submitting these today and in the future.=20 I have a fresh Installation of FreeBSD-14.0-RELEASE-amd64 and a Fresh forma= tted Silicon Power 256GB USB FAT32 3.0/3.1 Flash Drive. This is what I ran into and why I believe it's important to fix at a C base level as it affects everyone in many situations; not restricted to only USB Flash Drives but any device that is mountable with a FAT32 file system. root@ShadowDragonR1:/mnt # mkdir NixDragonR1_256GB_SP root@ShadowDragonR1:/mnt # mount -t msdosfs /dev/pa1 /mnt/NixDragonR1_256GB= _SP mount_msdosfs: /dev/pa1: Invalid fstype: Invalid argument The device name was incorrect. While this may be "assumed" & acceptable out= put by Professional C Programmers who are FreeBSD Committers it's not and i'll = show you why. Next I performed the following: root@ShadowDragonR1:/mnt # ls /dev/da* /dev/da1 /dev/da1p1 (Only showing the two that was truly my correct USB Dri= ve) root@ShadowDragonR1:/mnt # mount -t msdosfs /dev/da1 /mnt/NixDragonR1_256GB= _SP mount_msdosfs: /dev/da1: Invalid argument root@ShadowDragonR1:/mnt # mount -t msdosfs /dev/da1 /media (Reading "Absol= ute FreeBSD" 2nd Edition "The Complete Guide to FreeBSD" by Michael W. Lucas wh= ich I purchased while Studying American Constitutional Law at an Elementary Col= lege several years back; Reading on page 230 under "Using Removable Media"; suggesting to mount with theFAT32 USB device to /media (which didn't suit my intentions; however I gave it a go anyways and this is what happened).=20 Example from Page 230: # mount -t msdosfs /dev/da0 /media=20 This is what I ended up doing: root@ShadowDragonR1:/mnt # mount -t msdosfs /dev/da1 /media mount_msdosfs: /dev/da1: Invalid argument So being a Linux x64 - Debian-12.5.0-amd64 User as My Primary Operating Sys= tem and preferred Desktop at this time in existence. I ran the following to see the partition layout (Not familiar with fdisk in FreeBSD as of yet). However it's relevant to my troubleshooting process. root@ShadowDragonR1:/mnt # fdisk -l fdisk: illegal option -- l usage: fdisk [-BIaipqstu] [-b bootcode] [-1234] [disk] fdisk -f configfile [-itv] [disk] So I went ahead and ran the next best thing: root@ShadowDragonR1:/mnt # ls /dev/da* /dev/da1 /dev/da1p1 root@ShadowDragonR1:/mnt # mount -t msdosfs /dev/da1p1 /mnt/NixDragonR1_256GB_SP/ / root@ShadowDragonR1:/mnt # My Conclusion: When an invalid device is specified. The hardcoded C Base FreeBSD Operating System for Component: /sbin/mount (Which isn't included in the Component li= st for Selecting which Component on this Bug Fix Portal; I chose bin since I couldn't find the appropriate "sbin" for FreeBSD Base Operating System. This is the output Error Message that I would choose if I were on The Couns= el of FreeBSD C Base System Operating System Committers. Current: mount_msdosfs: /dev/InvalidDeviceIDName (For Any Type of FAT32 Med= ia) =3D "Invalid argument" Proposed: mount_msdosfs: /dev/InvalidDeviceIDName (For Any Type of FAT32 Me= dia) =3D "Invalid Device Specified" Thank you for this Great Operating System. Best Regards, Brandon Kastning 106 East Burke Ave Apartment Home #19 Arlington, WA 98223 American Constitutionally Bound, Guaranteed & Protected Disabled Housing Email: bkastning@protonmail.com Twitter/X: @BRKastning Date: 03/13/2024 Time: 02:48AM --=20 You are receiving this mail because: You are the assignee for the bug.=