Date: Mon, 20 Jan 2014 13:32:06 +0100 From: Matthias Apitz <guru@unixarea.de> To: freebsd-hackers@freebsd.org Subject: Re: untaring into ext2fs ./dev/* entries Message-ID: <20140120123205.GA1768@tiny-r255948> In-Reply-To: <20140120104003.GA1548@tiny-r255948> References: <20140120104003.GA1548@tiny-r255948>
next in thread | previous in thread | raw e-mail | index | archive | help
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, <guru@unixarea.de>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140120123205.GA1768>