Recover corrupted .tar.gz on Ubuntu

STEP 1: Install the gzrt tool by typing in the terminal:

sudo apt-get install gzrt

STEP 2: Now move to the directory of corrupted file using command ‘cd’

STEP 3: Execute command on corrupted file:>

gzrecover copied.tar.gz

This command will create .recovered file in the current directory.
STEP 4: After recovery, extract the files:

cpio -F copied.tar.recovered -i -v

Whether you want to recover .tar.gz file or .tgz file, the procedure will be same though you have to just rename the extention from .tgz to .tar.gz.

IThe amount of recoverable data may depend upon the cause of corruption.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close