![]() |
N900: tar broken?
I am using Maemo 5, Version 10.2010.19-1 on N900.
When I am using tar to pack files with tar -cvzf /media/mmc1/backup.tar.gz / or tar -cvf /media/mmc1/backup.tar / onto the SD card as root user I am getting "tar: short read" and the tar file is garbage. :-( What can I do? (I am used to Linux so if there is an alternative I can try please tell me, but normally tar should work on a Linux system!) |
Re: N900: tar broken?
What filesystem on mmc1? How big file?
|
Re: N900: tar broken?
Quote:
But the error also occurs when doing it on /home which is ext3. file is ~ 232MB which should be no problem for vfat or ext3 Internet only says: http://www.mail-archive.com/busybox@.../msg04880.html tar -v says "BusyBox v1.10.2" :-( |
Re: N900: tar broken?
Quote:
Quote:
|
Re: N900: tar broken?
Quote:
Try this Code:
sudo gainroot |
Re: N900: tar broken?
Or just tar -X.
|
Re: N900: tar broken?
Is it joke?
I mean - recursive write of tar file. Commands like "tar cvf somefile /" will never ends until the space on somefile file system is exhausted. Because tar will try to write somefile into somefile! If you want to make a copy of root file system you should use a full tar (install it from repository) and use a parameter "-l" (or "--one-file-system"). By default tar will go through mount points and write all stuff from it including "somefile" content too. |
Re: N900: tar broken?
BusyBox is one f'd up tool, install tar-gnu and use gtar instead.
|
Re: N900: tar broken?
Quote:
Quote:
|
Re: N900: tar broken?
Quote:
|
Re: N900: tar broken?
Strange, it detects it by checking device & inode (and so does GNU tar btw). Is there some weird filesystem out there where these are not reliable?
|
Re: N900: tar broken?
Quote:
EDIT: But anywhere, good to listen that some protection is now in tar. |
Re: N900: tar broken?
The only situation I can think of is when tar is separated from the final output file by one or more processes (eg "tar cf - . | gzip > foo.tar" vs "tar czf foo.tar .") in which case it can't be reasonably expected to detect it.
Ironically GNU tar is a bit more fragile in this respect, it can't detect even the second case. |
Re: N900: tar broken?
1 Attachment(s)
have a problem with tar-gnu too.
i can't update it to a newer version,and if i try to remove it via terminal it gives me this error code- any hints? |
Re: N900: tar broken?
sooo any help guys?
problem is still there |
Re: N900: tar broken?
One, try a reinstall:
apt-get install --reinstall tar-gnu Two, I suggest looking into BackupMenu(link in my signature) - It does exactly what the OP is trying to do. At the very least, you can take the exact tar command I used and copy it. |
Re: N900: tar broken?
You could put that xterm out of it's misery for a start ;) look at it! It's colour and fonts burn my eyes
|
All times are GMT. The time now is 00:04. |
vBulletin® Version 3.8.8