From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 20 10:40:14 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 972DE2FE for ; Mon, 20 Jan 2014 10:40:14 +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 5594F19D0 for ; Mon, 20 Jan 2014 10:40:13 +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 1W5CH1-0005Ex-Cu for freebsd-hackers@freebsd.org; Mon, 20 Jan 2014 11:40:07 +0100 Received: from tiny-r255948 (localhost [127.0.0.1]) by tiny-r255948 (8.14.7/8.14.3) with ESMTP id s0KAe44l001572 for ; Mon, 20 Jan 2014 11:40:04 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny-r255948 (8.14.7/8.14.3/Submit) id s0KAe34H001571 for freebsd-hackers@freebsd.org; Mon, 20 Jan 2014 11:40:03 +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 11:40:03 +0100 From: Matthias Apitz To: freebsd-hackers@freebsd.org Subject: untaring into ext2fs ./dev/* entries Message-ID: <20140120104003.GA1548@tiny-r255948> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 10:40:14 -0000 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 in the tar-archive the file looks like this # gtar tzvf shr-image-om-gta02.tar.gz | fgrep ./dev/hda7 brw-rw---- 0 root disk 3,7 Jan 8 23:36 ./dev/hda7 and after unpacking into /mnt it is: # ls -l dev/hda7 brw------- 1 root wheel 0x307 Jan 20 11:00 dev/hda7 Which is not what we want. I've checked the man page of devfs(8), but see no way to solve this. Any ideas? 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