untaring into ext2fs ./dev/* entries
Matthias Apitz
guru at unixarea.de
Mon Jan 20 12:32:12 UTC 2014
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 at 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
More information about the freebsd-hackers
mailing list