
It looks like the inability to set the timestamp of a file is something mtp speciffic. The timestamps of the unpacked files have been restored correctly. I pulled it out of the phone, plugged it in another computer (Ubuntu 14.04) and was able to unpack another tarball without any errors. It turned out that the MicroSD card itself has been formatted using vfat filesystem without any encryption. Is the problem related to me using encryption? Is there any mount option or other magic that will allow setting the files' timestamps on a mounted mtp filesystem? I normally wouldn't worry about it but there are files under Android/data that belong to applications that might be timestamp sensitive. This is confirmed by ls -l - it shows the current date and time.
Utime linux archive#
Opening the tar file with archive manager to view the contents and extract them The process is exactly the same for tar files with compression, such as. This will allow you to browse the archive’s contents, as well as extract them individually. Return Value On success, zero is returned. The simplest way to do this is by double clicking the file. Telling me that tar is unable to restore the original timestamp of the files. lutimes () changes the access and modification times of a file in the same way as utimes (2), with the difference that if filename refers to a symbolic link, then the link is not dereferenced: instead, the timestamps of the symbolic link are changed. Tar: 00001.vcf: Cannot utime: Operation not supported The files got restored but for each one I got an error message like: 00001.vcf The system time is the time spent by the CPU in executing instructions on behalf of a process in the kernel mode.

The user time is the time spent by the CPU in executing instructions in user mode. run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C017%5D/SD card$ tar xzvf ~/tmp/sgm4/ Ive ran into weird issues with ncftp that I solved by moving to lftp, which is scriptable and has proven a great tool for getting things done when FTP is. The execution time comprises of two parts, the user time and the system time. Then replaced the card, formatted the new one and tried to restore my files: I replaced the MicroSD card in my mobile (Samsung Galaxy S4 Mini running CyanogenMod 11 with encryption) with a bigger one.īefore I pulled the old one out I backed up its content into a tar file:
