From owner-freebsd-hackers@freebsd.org  Tue Dec  5 15:40:06 2017
Return-Path: <owner-freebsd-hackers@freebsd.org>
Delivered-To: freebsd-hackers@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 478C8E6DF62
 for <freebsd-hackers@mailman.ysv.freebsd.org>;
 Tue,  5 Dec 2017 15:40:06 +0000 (UTC) (envelope-from stoa@gmx.us)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.19])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id A784F7F530
 for <freebsd-hackers@freebsd.org>; Tue,  5 Dec 2017 15:40:05 +0000 (UTC)
 (envelope-from stoa@gmx.us)
Received: from MyDebian.dutch.net ([97.66.214.165]) by mail.gmx.com (mrgmx001
 [212.227.17.184]) with ESMTPSA (Nemesis) id 0LpKKr-1eyrGa0b8H-00fEWf
 for <freebsd-hackers@freebsd.org>; Tue, 05 Dec 2017 16:39:57 +0100
Date: Tue, 5 Dec 2017 09:39:47 -0600
From: Dutch Ingraham <stoa@gmx.us>
To: freebsd-hackers@freebsd.org
Subject: Cannot mount ext2 filesystem read-write
Message-ID: <20171205153946.GA1997@MyDebian.dutch.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.9.1 (2017-09-22)
X-Provags-ID: V03:K0:5bRxylgLkHKUu4g1VGN30S2D1iF2qOW5wVysgROE8FtFSMV+oUm
 NbFPaK1uHCDZzUCxYNrp+mR1F2MxGcoF8AeIa6tKls8J14T/nmwQ22ncVxj/uooOa7Hq7Gw
 hVS62/2Vj6+aRyos+IhbtRMZcRdGws2Hp2hViKnRglR1d6ETMI2+7P3zXt9rSxZfiMRX0bc
 9SUFHYt6K7kg/jMXXrwJw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:869fnc+p3BU=:ypm1M8X/mZUI62oJ1XvlF4
 WUnMno7llJplvgfZGmBRHobLKGK7nmNy4vv7kp9L+DKJ0adi6uBne+QLyZtMe2DdSPF7u74JN
 lxrdOIOQrpu1QrMGymlV0jPke86nGmspJt0SZ8q8wZ+kgCFd4vdZyrycKfEju/gakZ2vUeFLR
 +f+eA0uWiPEUqyQtGMo2Q+P32T+9c7NFfrzqtHbvl1ZFrU8T15HHT3su/D1YaKlfJWarajhxC
 Nk1gwp0bHuLROoR+EGYe9ud2LQuDVPRXMZP5zom3B+lmlMRcy+OquYBrqUlEgQu+9GJvBG9Ca
 kp79KEoU9kMCGN0A2EOdrDxZCXG5KJxLLpwoD0XoN203l74QGWtGb8ERoSrRMLERcqptTw602
 ntXqhrP0PDCOBexOqdb2XpkAM/pL9JiHVjla/cSrdEuDPIVOYg7VYZCHgpAsf9LY8b+UmEkez
 1zyxMMtQiBSGwmIY2haDFv6WDAZZ88cHsT2l5tqu0WilmR7pPamHVf0BzG4fuSDnztn7NVLjL
 YjkbzWniABCET7hJdjhJ1IYXuEiVYawpGtHH7rQGO2e2Kf9Rl9SpyCw2IVKB2fQXEYGnueztl
 XSJ0oZButAwU7ll7rae66x/za8dctBcEoqntr+ecgj9jzZ6jbhTSCKsmdLPiGTSOYGLMFWBZw
 +TmlN1joMNn5tqlRQLtzoR5WMMQBoozxGvg/iuVDGepzTv5EZRatggXSYlMFSok5uhUmIMsKp
 56nXPEsLNu6niH791GGImYU+J35M2ARvBi4LkM5syfsmO7pn2xmTa3NtOjJuABfCqnwN/jQdw
 cRq6HR5edVGBXfCU119Jgb5vjTeqg==
X-BeenThere: freebsd-hackers@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: Technical Discussions relating to FreeBSD
 <freebsd-hackers.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-hackers>, 
 <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers/>
List-Post: <mailto:freebsd-hackers@freebsd.org>
List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, 
 <mailto:freebsd-hackers-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Dec 2017 15:40:06 -0000

Hi everybody - I'm copying this over from -questions, from which I
didn't receive any replies, in the hopes someone here can help.

I cannot seem to mount a thumbdrive formatted to ext2 in read-write mode on
my FreeBSD 11.1-RELEASE-p4 #0 system. The error is:

/usr/home/dutch $ sudo mount -t ext2fs /dev/da0s1 /media/usb
mount: /dev/da0s1: Operation not permitted

It seems some years ago there was an inode limit of 128 on mounting ext2fs in
read-write mode; see this[1] thread for example.  There seems to have been a
patch that corrected this situation and allowed inodes of 256 (my case).

However, the advice in that thread is 9 years old.  The current manpage for
ext2fs(5) only states one requirement (build-in or load the ext2fs kernel
module) and indicates that the restriction on read-write mode only aplies to
the ext4 filesystem, and I am attempting to mount the ext2 filesystem.

A current forum post[2] seems to indicate there is still an issue (regardless
of the 2016 ext2fs manpage) mounting an ext2 filesystem read-write (although
it is somewhat ambiguous whether the OP was trying to mount an ext2 or ext4
filesystem).

Can someone please advise (1) if FreeBSD provides for mounting an ext2
filesystem in read-write mode, and if so, (2) what I am doing wrong?

Thanks for your help.

PS - I can mount read-only, but that doesn't help me much.


[1] https://forums.freebsd.org/threads/912/
[2] https://forums.freebsd.org/threads/60501/