From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 07CE21582EF for ; Mon, 17 Feb 2025 12:04:01 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id BF5D4343179 for ; Mon, 17 Feb 2025 12:04:00 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0653A11047D; Mon, 17 Feb 2025 12:02:54 +0000 (UTC) Received: from bisque.elm.relay.mailchannels.net (bisque.elm.relay.mailchannels.net [23.83.212.18]) (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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id C8B3B1103A8 for ; Mon, 17 Feb 2025 12:02:52 +0000 (UTC) X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8A48D24EA3 for ; Mon, 17 Feb 2025 12:02:51 +0000 (UTC) Received: from mailclean11.thundermail.uk (100-97-27-172.trex-nlb.outbound.svc.cluster.local [100.97.27.172]) (Authenticated sender: thundermail) by relay.mailchannels.net (Postfix) with ESMTPA id 7FB9624D6B for ; Mon, 17 Feb 2025 12:02:50 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1739793770; a=rsa-sha256; cv=none; b=yQ9k+eS0NBAJymKAsbnpHsP6C65zCC1lHINm+bQnrKcsv+ZxQNTGErto6Y3Uury4x0l8ZL pGR/a9LGeaQ3SinZsLz1qEx0FKSub4O4Xig2F6VevmKqmvxcAvx4Kec62vMmnXuHlkZqqT 3trdRStGg8ECdQugChZXPX6ZfGYpR+WMW6N3Cm5rMV3X2iS/svLpTsMSNnEKIWwbUNUwH4 qRQZ3ikgf3z+IjpTWKWGRLmQrYwiRZKdzBtcKfcxclJZtq9iR7BlORISXaXEo0IUVQziEi un8uXZBlyagOl0aFpoXmqkiQagXNcggWZ3GtdVH9LLRZrX94Cfed+ZfxNWTV+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1739793770; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=Cf5jTV/FQOu1XQ8igWlHop4I+y3TJ9/mkvmMvkGX79M=; b=r811HM3hGJoyfPiu6mdaD46YeWK1n/nJd0vsyFM+4O8LuB6sqN6mjoa5kh82e1X5T81ru8 XFkZP5kJxWWyFPqcX9B0QfNjqdlvlsWPsoD96ZHuyr8BzehSeCqbioqTMac9HFv+0thVdm nDUOFgz7hrBStVwZGKeJViFAwq1gdRPCZVLp/Jr8cxeINCGg+oJYTtufU9A6FBrXJwwLAP XPNoOvlCYGKHRmBSitKwk22xjP3cVt7VsnVTJOjpQjMLqMPX5FVkDvEXy+/LTSL4CsuAjC etirM9FWvIyuRWcTg6iAQIQuO14XgFOWA/3CPHyZXWSD0xxYxhaayHw3nFyRtA== ARC-Authentication-Results: i=1; rspamd-5fcc9c9dd-j4dm6; auth=pass smtp.auth=thundermail smtp.mailfrom=confabulate@kintzios.com X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com X-MC-Relay: Neutral X-MailChannels-SenderId: thundermail|x-authsender|confabulate@kintzios.com X-MailChannels-Auth-Id: thundermail X-Ski-Bitter: 26876b6e4d86c158_1739793771042_4136512210 X-MC-Loop-Signature: 1739793771042:3836449479 X-MC-Ingress-Time: 1739793771041 Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk [149.255.60.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.97.27.172 (trex/7.0.2); Mon, 17 Feb 2025 12:02:51 +0000 Received: from cloud238.thundercloud.uk (cloud238.thundercloud.uk [149.255.62.116]) by mailclean11.thundermail.uk (Postfix) with ESMTPS id AEC7D1E0008 for ; Mon, 17 Feb 2025 12:02:48 +0000 (GMT) Received: from rogueboard.localnet (230.3.169.217.in-addr.arpa [217.169.3.230]) (Authenticated sender: confabulate@kintzios.com) by cloud238.thundercloud.uk (Postfix) with ESMTPSA id B7ADB1136D1 for ; Mon, 17 Feb 2025 12:02:47 +0000 (GMT) Authentication-Results: cloud238.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet Received-SPF: pass (cloud238.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] problem formatting new 256 GB USB stick : more info Date: Mon, 17 Feb 2025 12:02:36 +0000 Message-ID: <4410210.ejJDZkT8p0@rogueboard> In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2224793.Mh6RI2rZIc"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <173979376792.2724461.9730692718641690667@cloud238.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Rspamd-Action: no action X-Rspamd-Server: mailclean11 X-Spamd-Result: default: False [-1.51 / 999.00]; SIGNED_PGP(-2.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; DMARC_POLICY_ALLOW(0.00)[kintzios.com,none]; FROM_HAS_DN(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org]; R_DKIM_NA(0.00)[]; NEURAL_HAM(-0.00)[-0.950]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(0.00)[+mx]; HAS_REPLYTO(0.00)[confabulate@kintzios.com] X-Rspamd-Queue-Id: AEC7D1E0008 X-Archives-Salt: 756159b1-7f77-4ca6-a193-59049b50ce31 X-Archives-Hash: 0a29ac6e2c5274b88d2aef5ce1731b1d --nextPart2224793.Mh6RI2rZIc Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Date: Mon, 17 Feb 2025 12:02:36 +0000 Message-ID: <4410210.ejJDZkT8p0@rogueboard> In-Reply-To: MIME-Version: 1.0 On Monday 17 February 2025 09:18:45 Greenwich Mean Time Philip Webb wrote: > 250216 Philip Webb wrote: > > I'm currently testing a 2.0/1.1 port to write an Ext2 file system. > > it succeeded ! -- results below : > > root:668 ~> t ; mke2fs /dev/sdb1 ; t > 2025-02-16 Sun 22.21.11 > mke2fs 1.47.0 (5-Feb-2023) > Creating filesystem with 16777216 4k blocks and 4194304 inodes > Filesystem UUID: c5de9632-b97e-4b9c-bfd5-d5c5af785d48 > Superblock backups stored on blocks: > 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, > 4096000, 7962624, 11239424 > Allocating group tables: done > Writing inode tables: done > Writing superblocks and filesystem accounting information: done > 2025-02-17 Mon 02.36.25 > > as cb seen, it took 4 h 15 m . This is an excessively long time for a USB 2.0 port, but thankfully the dmesg output no longer showed any disconnections. > there are differences in output from 'dmesg -W' : > > root:502 ~> dmesg -W > [2125533.280237] usb 5-6.2: reset high-speed USB device number 6 using > xhci_hcd [2126092.734294] wlp5s0: disconnect from AP 7a:ff:7b:47:c8:7f for > new auth to 68:ff:7b:47:c9:13 [2126092.829576] wlp5s0: authenticate with > 68:ff:7b:47:c9:13 > [2126092.859893] wlp5s0: send auth to 68:ff:7b:47:c9:13 (try 1/3) [snip ...] > wlp5s0: authenticate with 7a:ff:7b:47:c8:7f > [2132139.154945] wlp5s0: send auth to 7a:ff:7b:47:c8:7f (try 1/3) [snip ...] [NOTE: Your wireless appears to be hunting for different AP BSSIDs to connect to. You could stop it doing this and interrupting your internet connection, by selecting the AP BSSID with the stronger signal (larger SNR). Set this in your wpa_supplicant.conf to stop it roaming.] > [2135034.469269] EXT4-fs (sdb1): mounting > ext2 file system using the ext4 subsystem [2135043.577142] EXT4-fs (sdb1): > mounted filesystem c5de9632-b97e-4b9c-bfd5-d5c5af785d48 r/w without > journal. Quota mode: none. > [2135217.544967] EXT4-fs (sdb1): unmounting > filesystem c5de9632-b97e-4b9c-bfd5-d5c5af785d48. > > This seems to narrow the problem down to the USB 3.2 performance, > which well mb affected by inferior devices on the stick. Barring some temporary dust/debris in the USB port or USB stick's electrical contacts, in my mind the flash controller on these sticks seems highly suspect. I would not trust them with my data, unless I was transferring files from one device to another and data loss was not an issue. USB sticks are manufactured rather cheaply today and sadly their reliability leaves much to be desired. I recall reading somewhere, the flash controller on many USB sticks performs no (meaningful) wear levelling at all. > I was able to mount the partition, edit a file & browse it, > but re-actions to commands are very slow. > I'll try to format the other partitions on both sticks, > tho' a final verdict will take some time (wry grin). Instead of FAT or ext2 you may want you try formatting with f2fs, which was specifically designed for NAND flash devices, or if you want to have compatibility with MSWindows OS you can use exfat. Both are superior to FAT and F2FS in particular was designed for NAND flash storage. I have found F2FS to be faster and more reliable than alternatives on USB sticks. The only caution I have taken is to always access it with the same or more recent kernels compared to the one I formatted with. For exfat you'll need to set in your kernel: ~ $ grep EXFAT /usr/src/linux/.config # DOS/FAT/EXFAT/NT Filesystems CONFIG_EXFAT_FS=m CONFIG_EXFAT_DEFAULT_IOCHARSET="utf8" # end of DOS/FAT/EXFAT/NT Filesystems For F2FS: ~ $ grep F2FS /usr/src/linux/.config CONFIG_F2FS_FS=y CONFIG_F2FS_STAT_FS=y CONFIG_F2FS_FS_XATTR=y CONFIG_F2FS_FS_POSIX_ACL=y CONFIG_F2FS_FS_SECURITY=y # CONFIG_F2FS_CHECK_FS is not set # CONFIG_F2FS_FAULT_INJECTION is not set CONFIG_F2FS_FS_COMPRESSION=y CONFIG_F2FS_FS_LZO=y CONFIG_F2FS_FS_LZORLE=y CONFIG_F2FS_FS_LZ4=y CONFIG_F2FS_FS_LZ4HC=y CONFIG_F2FS_FS_ZSTD=y CONFIG_F2FS_IOSTAT=y # CONFIG_F2FS_UNFAIR_RWSEM is not set For storage of (many) text and other compressible files you'd probably want to give some forethought to deploying compression, which will further reduce the load on the stick. NOTE: Read up on F2FS and exFAT before you used in production them as there are some warnings/considerations specific to them, which may make them unsuitable for your use cases. --nextPart2224793.Mh6RI2rZIc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmezJVwACgkQseqq9sKV ZxnaIw/8Dfv8R1lp0JMm2P4oPyn1x8fXrqHiJ/JpRMMzw4FkR0d6q/uEXt15NT2M FNyuKbIBTYTWlr44IPGlII2wPl8rMOqI7Er5nYnCdk8Ru5Q5EC5OjEo09YisDPqK 0RRFMdw4hFJU5tbGJeKETzBDOb7CvblbT9zXTCZIeNvzdCWiHbHVYmknWtcbGpVt loGXCX/7iBYWcj6gC62xXYrZsnGzakceAgEptplXVz4cmhynJCqrbI11DaiOY9nl re6mcbNTh71GX9HqjQq7QAwOHTLrrpuEKS75I7BLjCVO5xqyogK57l6dacGJDa0n 0lEH4x0xvFYNt4XS73Y4h85pRHsKFV/lmjWYcCxAo/YI91pYZpSsxREFJ5JIdN+6 xFlILP/83udgiAQktMAYy/5ynfB+33iQEPbf4VCuGpMNuUuupbahS9+SCHwcbZ7z vArnKzUAx6it0eL8sUacDIu0ODFBlw0fkF+SPB1CDrfgMFKaL8/mMSvzwituhb/h hBqj9qzpT0jG/j8jZATXyLewKVwXSesU3xXQsmnNDfvuPgLtjh9ubUcPBx27lR8P mF1lOR60XMHM0tMZaGYeONoCXgHOyl/JpffrhBOKZj1JC+R8Z0Odfg2Hz4va8VXC TVgOW5ucN64d78tpdSNgRq0NlZ//gFt3umh10V3pwmkPQj1SJ5M= =GJMC -----END PGP SIGNATURE----- --nextPart2224793.Mh6RI2rZIc--