Am 18.08.2013 08:18, schrieb Felix Miata:
In 13.1M4, I did
tar -cvf /mnt/usb/stuff.tar file1.ts file2.ts file3.ts
On /mnt/usb was a NTFS formatted USB stick. The object of tarring was to preserve all native file attributes while transversing the foreign formatted media. After ejecting, I put it into a USB port on a Linux STB running busybox v1.0. After it automounted, I changed to the desired destination for extraction, and then
tar -xvf <mountpoint>/stuff.tar .
That gave me $SUBJECT. Apparently busybox tar isn't very smart.
It is. But busybox 1.0 is almost 10 years old. And even with current busybox you need to enable the correct options.
I've done this before successfully, making me believe something about tar in 13.1 is different. Is it? Is it a bug?
No, it's a feature. The defaults changed from a probably >20 years old standard to an only 10 years old one :-)
From the changelog:
* Fr Apr 20 2012 crrodriguez@opensuse.org - Switch to default archive type to POSIX.1-2001, which is ten years old and has no limits on filesize,filename length etc.
files, experimenting is a lengthy process. I can't tell from the 13.1 tar man page what option might make busybox tar able to extract from a 13.1 tar file. Anyone know what's going on here?
"man 1 tar", then "/posix" You probably want "--format=gnu" or "--format=oldgnu" or even "--old-archive" or "--portability". I use the following for creating packages for my collection of STBs and it works fine with (current versions, though) of busybox: seife@susi:/local/seife/src/azbox> grep TAR= scripts/opkg.sh TAR="tar -H gnu" my busybox has the following config: seife@susi:/local/seife/src/azbox> grep ^[^#].*TAR \ archive-patches/busybox-1.19.config CONFIG_TAR=y CONFIG_FEATURE_TAR_CREATE=y CONFIG_FEATURE_TAR_AUTODETECT=y CONFIG_FEATURE_TAR_FROM=y CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y CONFIG_FEATURE_TAR_LONG_OPTIONS=y CONFIG_FEATURE_TAR_TO_COMMAND=y CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y good luck, seife -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org