LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-05-2004, 03:12 AM   #1
sneezesnoeze
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Rep: Reputation: 0
tar command : error: file changed as we read it


Hi

When I try to tar a directory, I get the following error. Can anyone explain what is means

File changed as we read it

and at the end tar says

error exit delayed from previous messages

Everything seems to be fine, but what could be wrong

Sneeze
 
Old 04-05-2004, 06:47 AM   #2
sneezesnoeze
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Original Poster
Rep: Reputation: 0
I use the command

tar cvzf myarchive .

So I did build the archive in the directory I wanted to archive.

When I use

tar cvzf /home/user/myarchive .

I don't have these errors.

Can anyone explain this to me

Kind regards
Sneeze
 
Old 04-05-2004, 06:56 PM   #3
pdug
LQ Newbie
 
Registered: Feb 2004
Posts: 20

Rep: Reputation: 0
Quote:
Originally posted by sneezesnoeze
I use the command

tar cvzf myarchive .

So I did build the archive in the directory I wanted to archive.

When I use

tar cvzf /home/user/myarchive .

I don't have these errors.

Can anyone explain this to me

Kind regards
Sneeze

Youre trying to archive . into ./myarchive which is obviously part of .

It is generally a better idea to do a cd .. before, and
tar cvzf arch.tgz mydirectory
or
tar cvzf ../arch.tgz .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/home partition changed to read-only file system! Echo Kilo Linux - Software 1 03-30-2005 01:59 PM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM
Problem creating tar.gz archive - File changed as we read it doctorwebbox Linux - General 1 02-04-2004 05:59 PM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM
tar command will only do one file at a time Travis86 Linux - Newbie 4 03-15-2003 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration