Skip to content

Instantly share code, notes, and snippets.

@ymkjp
Created November 24, 2012 15:02
Show Gist options
  • Save ymkjp/4140011 to your computer and use it in GitHub Desktop.
Save ymkjp/4140011 to your computer and use it in GitHub Desktop.
tar.bz2 でバックアップしてた電子書籍の解凍がこけたときの作業ログ
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Undefined error: 0
Input file = books.tar.bz2, output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
: Truncated tar archive
tar: Error exit delayed from previous errors.
---
find . -name "rec*.bz2" | sort | xargs -n1 bzcat | tar xvf -
---
bz2 -tvv
結果例↓
rec05615books.tar.bz2:
[1: huff+mtf rt+rld]
ok
---
x Books/自炊_…/._詳解ー独立成分分析.pdf
x Books/自炊_…/詳解ー独立成分分析.pdf: Truncated tar archive
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment