Re: Specifying tmp for tar



On Fri, 2007-08-31 at 23:18 +0300, Dotan Cohen wrote:
I have a 2 GB bz2 archive that unzips to over 10 GB (wikipedia dump).
Although I have over 50 GB free in /home, / has only about 8 GB free.
Thus, as tar uses /tmp, the / filesystem fills up and I cannot
continue. How can I specify a tmp directory for tar in my home
directory? Note that man tar makes no mention of a tmp option.

Boot in single user mode, Then as root:

# mkdir /home/tmp
# chmod 777 /home/tmp
# mv /tmp /tmp-old
# ln -s /home/tmp /tmp
# cp -a /tmp-old/* /tmp

That creates a /home/tmp directory, allows everyone access, renames the
old /tmp to /tmp-old, symlinks /home/tmp to /tmp, then copies everything
that was in the old /tmp to the new one. Once that's done, you can
reboot and all references to /tmp will now access /home/tmp.

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer rstevens@xxxxxxxxxxxx -
- CDN Systems, Internap, Inc. http://www.internap.com -
- -
- Blech! ACKth! Ooop! -- Bill the Cat (Outland) -
----------------------------------------------------------------------

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Specifying tmp for tar
    ... Thus, as tar uses /tmp, the / filesystem fills up and I cannot ... How can I specify a tmp directory for tar in my home ...
    (Fedora)
  • Re: Specifying tmp for tar
    ... Thus, as tar uses /tmp, the / filesystem fills up and I cannot ... How can I specify a tmp directory for tar in my home ...
    (Fedora)
  • Re: Specifying tmp for tar
    ... Thus, as tar uses /tmp, the / filesystem fills up and I cannot ... How can I specify a tmp directory for tar in my home ... I can then simply erase the symlink? ...
    (Fedora)
  • Re: Specifying tmp for tar
    ... Thus, as tar uses /tmp, the / filesystem fills up and I cannot ... How can I specify a tmp directory for tar in my home ... Note that man tar makes no mention of a tmp option. ...
    (Fedora)
  • Re: [Fedora] Re: Specifying tmp for tar
    ... Thus, as tar uses /tmp, the / filesystem fills up and I cannot ... How can I specify a tmp directory for tar in my home ... Note that man tar makes no mention of a tmp option. ... If that's the case, why not uncompress the file first with bzip2 somewhere on the file system that actually has space, and then run tar to extract the files? ...
    (Fedora)