From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 20 12:32:12 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC2179B0 for ; Mon, 20 Jan 2014 12:32:12 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 98D371B06 for ; Mon, 20 Jan 2014 12:32:12 +0000 (UTC) Received: from [89.204.153.232] (helo=tiny-r255948) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1W5E1R-0002bG-Sc for freebsd-hackers@freebsd.org; Mon, 20 Jan 2014 13:32:10 +0100 Received: from tiny-r255948 (localhost [127.0.0.1]) by tiny-r255948 (8.14.7/8.14.3) with ESMTP id s0KCW7dY001842 for ; Mon, 20 Jan 2014 13:32:07 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny-r255948 (8.14.7/8.14.3/Submit) id s0KCW6Wq001841 for freebsd-hackers@freebsd.org; Mon, 20 Jan 2014 13:32:06 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny-r255948: guru set sender to guru@unixarea.de using -f Date: Mon, 20 Jan 2014 13:32:06 +0100 From: Matthias Apitz To: freebsd-hackers@freebsd.org Subject: Re: untaring into ext2fs ./dev/* entries Message-ID: <20140120123205.GA1768@tiny-r255948> References: <20140120104003.GA1548@tiny-r255948> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140120104003.GA1548@tiny-r255948> X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.153.232 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2014 12:32:12 -0000 El día Monday, January 20, 2014 a las 11:40:03AM +0100, Matthias Apitz escribió: > > Hello, > > I'm using an OpenSource Linux based cellphone. The software is provided > as a tar-archive which must be unpacked into an ext2fs on a microSD; > I do not have any Linux box and want to do this on my FreeBSD > (10-CURRENT) laptop; > > I can mount the ext2fs fine and when I say: > > # cd /mnt > # gtar --numeric-owner -xpzf shr-image-om-gta02.tar.gz > > it gives errors like this example for all special files: > > gtar: ./dev/hda7: Cannot utime: Operation not supported > gtar: ./dev/hda7: Cannot change ownership to uid 0, gid 6: Operation not supported > gtar: ./dev/hda7: Cannot change mode to rw-rw----: Operation not supported ... This issue is clearly related to ext2fs; in UFS all is fine: # mkdir dev # mknod dev/hda7 b 3 7 root:mail # chmod 0660 dev/hda7 # ls -l dev/hda7 brw-rw---- 1 root mail 0x307 Jan 20 13:25 dev/hda7 in ext2fs mounted as /mnt it does not work: # mkdir /mnt/dev # mknod /mnt/dev/hda7 b 3 7 root:mail mknod: setting ownership on /mnt/dev/hda7: Operation not supported # chmod 0660 /mnt/dev/hda7 chmod: /mnt/dev/hda7: Operation not supported # ls -l /mnt/dev/hda7 brw-r--r-- 1 root wheel 0x307 Jan 20 13:26 /mnt/dev/hda7 Is this a bug in ext2fs or a feature? matthias -- Sent from my FreeBSD netbook Matthias Apitz, , http://www.unixarea.de/ f: +49-170-4527211 UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5