tar: web.tar: Wrote only X of Y bytes

So you are trying to compress a directory or whatever file on your disk, probably from SSH, and experience no useful errors?

I really hate this kind of error reports:

1
2
tar: web.tar: Wrote only 6144 of 10240 bytes
tar: Error is not recoverable: exiting now

That’s tar.

If you try Gzip, it will say that there’s not enough disk space: but if you have no clue about that, or can’t use Gzip, try a

1
df -h

to find out that it really is a disk space issue.


Hi there! I recently wrote an ebook on web application security, currently sold on leanpub, the Amazon Kindle store and gumroad.

It contains 160+ pages of content dedicated to securing web applications and improving your security awareness when building web apps, with chapters ranging from explaining how to secure HTTP cookies with the right flags to understanding why it is important to consider joining a bug bounty program.

Feel free to skim through some of the free chapters published on this blog and, if the content seems interesting enough to you, grab a copy on leanpub, the Amazon Kindle store, gumroad or simply checkout right down below!

Buy the Web Application Security ebook for $9.99

In the mood for some more reading?

...or check the archives.