Home > Linux, Technical > Linux Notes

Linux Notes


This post is to note some of the common issues which I have seen and their workarounds.

  1. Error while trying to compress a file using tar
    Symptom: 
    tar: regression-batch1.2013Feb09_20\:05\:59.tar.gz: Cannot open: Input/output error
    tar: Error is not recoverable: exiting now

    Command executed: 
    tar -zcvf regression-batch1.2013Feb09_20:05:59.tar.gz regression-batch1.2013Feb09_20:05:59

    Reason for the Error: The file name contains special character colon ":" which tar thinks that its a remote file.

    Solution: Add the "--force-local" switch along with the command which solves the problem.
    Another way to resolve is by giving complete path name in the command.
    eg: tar --force-local -zcvf regression-batch1.2013Feb09_20:05:59.tar.gz regression-batch1.2013Feb09_20:05:59

Advertisements
Categories: Linux, Technical
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: