From owner-freebsd-questions@freebsd.org Sat Jul 29 13:56:08 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4184EDC4A6F for ; Sat, 29 Jul 2017 13:56:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay10.qsc.de (mailrelay10.qsc.de [212.99.163.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A5F0D6CEEE for ; Sat, 29 Jul 2017 13:56:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay10.qsc.de; Sat, 29 Jul 2017 15:55:57 +0200 Received: from r56.edvax.de (port-92-195-203-176.dynamic.qsc.de [92.195.203.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id E72793CBF9; Sat, 29 Jul 2017 15:55:56 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v6TDtuVe002834; Sat, 29 Jul 2017 15:55:56 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 29 Jul 2017 15:55:56 +0200 From: Polytropon To: Manish Jain Cc: "freebsd-questions@freebsd.org" Subject: Re: Unable to mount USB Flash memory created on CentOS Message-Id: <20170729155556.00a1d838.freebsd@edvax.de> In-Reply-To: References: <20170728223744.a94ce254.freebsd@edvax.de> <20170729110144.1cce7c70.freebsd@edvax.de> 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-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay10.qsc.de with 3BF4068343B X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1298 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jul 2017 13:56:08 -0000 On Sat, 29 Jul 2017 10:26:35 +0000, Manish Jain wrote: > There is a significant problem with the ext2fs driver under FreeBSD. I > earlier thought this was perhaps a niggling issue, but this post > inclines me to mention it. > > Create an ext2 partition and use it for a while. When there is an > improper shutdown/unclean umount, I experienced this syndrome 3 times in > the last 3 months : FreeBSD will refuse to mount the partition RW (which > is correct) - but then FreeBSD e2fsck will not be able to complete a > successful fsck. I think the error message from e2fsck used to be : > failed + run fsck. No further details. I don't remember what fsck used > to report, but nothing worked. Yes, Linux file system support is limited, as UFS support is limited on Linux, and nonexistent on non-UNIX... ;-) > The only way to correct the situation always was - boot into Linux (I > use Parrot Lite), run e2fsck therein, and then mount it RW. Then get > back to FreeBSD, and now the partition gets mounted coolly. That's why I suggested using the _native_ file system check and repair tool is probably the best choice. FreeBSD's ext2 support doesn't seem to be able to properly deal with those _specific_ cases of file system damage. There is a port "e2fsprogs" which includes an e2fsck program. I don't know if there's also a FUSE module for ext2 (and others) that offers a comparable tool. > If OP continues to suffer something similar, perhaps he can try fixing > things under Linux ? That would be worth a try, even though I think in this special case the file system _might_ be (partially?) intact, but at least the partition table has suffered severe damage - it's not even listing the ext2 partition correctly anymore. So maybe this can be restored with a live system CD like PartEd Magic or UBCD... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...