Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-08-2003, 07:09 AM   #1
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Rep: Reputation: 15
Problems with tar wasting free HD space

Hi there,

I m having certain problems creating tar archives to a tape device. I have a partition with 33 Gb of data, and 2 Gb free. I issued a command to copy all this data to a tape device without problems. At a certain point, the tar job fails and I see that theres no free space available on the hard disk. I believe that tar creates some sort of temp file to perform the backup to tape, but, now I can t recover the space wasted by the "temp" file(s) created by the failed tar job. Ive searched the hard disk to see if I can find some big temp files, without success.

Another question is how much free space do I need to have to perform this kind of backups using tar?

Any ideas on how to recover this space? Any help will be greatly appreciated.

Old 08-08-2003, 10:12 AM   #2
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
what about using some sort of compression,like bzip2 or gunzip along with tar?
Old 08-08-2003, 12:00 PM   #3
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
AFAIK, tar does not, by default (possibly at all), use temporary files.
What command did you use?
Old 08-09-2003, 05:53 PM   #4
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Original Poster
Rep: Reputation: 15
The command that Im using is this:

tar -cvpMf /dev/tape /[0-9A-Za-oq-z]*

to exclude the /proc directory, that blows the copy process. Im not using any compression. I have another question: if I use compression, will tar need extra space to perform the backup? Is there a way to know who or what is filling up the hard disk with logs, data or something? At this moment, the server is without users (the company that uses it is on holiday) but the space keeps filling up.

Thanks again.
Old 08-09-2003, 06:11 PM   #5
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
How about
tar -cvpMf /dev/tape / --exclude /proc
to exclude the /proc dir?

Old 08-09-2003, 06:57 PM   #6
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Original Poster
Rep: Reputation: 15
Thanks for your suggestion, Ill use it. Two more questions: If tar uses space to create the file before copying to the tape device, where can I find it to erase it, in order to restart the process? (Im not using compression). If I use compression, how can I restore the tape data?

Old 08-10-2003, 12:37 AM   #7
Registered: Feb 2003
Location: Wisconsin
Distribution: Slackware
Posts: 188

Rep: Reputation: 30
If it did leave anything, it should be in the directory you were in when you issued the tar command (I think)


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 09:21 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 01:44 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 02:14 PM
Free Space Problems chalewa4bambu Linux - Software 2 03-23-2004 01:52 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 06:10 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:25 PM.

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