Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2014 11:40:03 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-hackers@freebsd.org
Subject:   untaring into ext2fs ./dev/* entries
Message-ID:  <20140120104003.GA1548@tiny-r255948>

next in thread | raw e-mail | index | archive | help

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, <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?20140120104003.GA1548>