From owner-freebsd-questions@freebsd.org Sat Nov 21 21:28:16 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 6668C470F76 for ; Sat, 21 Nov 2020 21:28:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) (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 "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cdmjq1kcmz3QRs for ; Sat, 21 Nov 2020 21:28:14 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.222.30.201]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPA (Nemesis) id 1M2OAi-1kg2Se2nUM-003sWE; Sat, 21 Nov 2020 22:28:06 +0100 Date: Sat, 21 Nov 2020 22:28:05 +0100 From: Polytropon To: Ralf Mardorf Cc: freebsd-questions Subject: Re: usb harddisk not working Message-Id: <20201121222805.e9780bba.freebsd@edvax.de> In-Reply-To: <20201121215420.3f14f459@archlinux> References: <20201121204425.86d9c6b1.freebsd@edvax.de> <20201121214216.2c46a95a@archlinux> <20201121215420.3f14f459@archlinux> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:GlIOPHNKsDUvy7aui5mSZx9eyrz0YUTvvINddb96r7K1osOmHMz wZcxjdN0dwv9071luwUBqeag27hA45JDcp3/iO1lQoMQTgtviOlBlYqw/Slon5i2ig5mary E0WbIXHdwKmqyiW99B3Ii0fm3t2a5UsKKAl/hnj8LX3XmW9ODHxTD3EeaWrSiMQ/kUjDggw eKFRnnOwsmX5yzP+LvFqg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0jJZse7pAkM=:U1XnrcX+zaFJGxV+9Sy4UV VdiPg/PFJ/6HoSClGDbaJby1KKc9fetHVH1WYy3ds4CalksOw6+E4BZKvAfAnMaGo38HTn9x9 Ov5A72fVLld2la5xZ00pjdFF+Wwt+nG69+LZ3vDodAhDvsZlQmSShUH5UQ9gPzsCzT3idd4c3 XsaBHwW0NOXeGtdTd1MrvOuidSDbgkmzpYXuE1JfMd6O8X4N9BTTOSCcokqL32VQxKBoWk9pg iEmsjboQKcq9Ra1CVWMTOPnJgIYDHLu6AahTt9ew4RYXLnfzpbN/9NSudBTi229ge0SBQljrb NB269dHU531PQObDMxwM1ppKFzRwHhtqMjsUGsK6vCWFicddBl6smUyneIJ4VxHePA8y6YGXQ ajcuuP9uIJmQrNBnvF4Z7YObUX+8EvuafQErT1pp+RC6X2XCr5y19kESeUM1s X-Rspamd-Queue-Id: 4Cdmjq1kcmz3QRs X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.17.10) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [-0.60 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[94.222.30.201:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.227.17.10:from]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; SPAMHAUS_ZRD(0.00)[212.227.17.10:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[212.227.17.10:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.17.10:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2020 21:28:16 -0000 On Sat, 21 Nov 2020 21:54:20 +0100, Ralf Mardorf wrote: > On Sat, 21 Nov 2020 21:42:16 +0100, Ralf Mardorf wrote: > >On Sat, 21 Nov 2020 20:44:25 +0100, Polytropon wrote: > >>So when in doubt, manually run fsck on the device. > > > >I "only" need to run fsck for an external drive's hfs+ partition used > >to share data between an iPad and a Linux PC. Without running fsck I > >get IO errors as if the drive is broken. I never made this experience > >with other file systems or when using hfs+ with just one operating > >system. > > Oops, > > I didn't finish the mail. What I want to point out is, that if the ufs > partition is used with FreeBSD and no other operating system, but > unclean, then probably something similar to a power loss happened, > probably something caused by the USB controller's firmware. Exactly according to my own experience: I once had a USB disk enclosure with disk that would randomly disconnect, which is not good for a mounted UFS filesystem and caused said unclean dismounting, resulting in the inability for a new automatic re-mount. The disk itself was not the reason, it worked fine after extraction, and installation in a different enclosure. Other than firmware issues, device power (voltage drop due to insufficient current supply) could be a problem. This _might_ involve faulty cables, but is not limited to that; it could be cheap USB ports (one power controller for all, so overall drawn current is added from all connected devices) on the system board. The use of fsck sould only be needed if there was an accidental unclean dismount, preventing automatic re-mount. The system log will contain the relevant information. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...