Discussion Locked

Tar command

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I have a problem with TAR command. I have more than 2G data folder and when I run TAR to get a tar file, it goes up to 2G and stops. If you know any option to disable this limit or should I recomplie tar? I am using RedHat 7.1 and tar version is (GNU tar) 1.13.17.
Any idea would be appreciated.

Lint.

3 replies

by cpfeiffe

Look at the largefile man page. This shouldn't be a problem with tar. However, you may have a problem with the file system in which you are attempting to create the tar file. The file system must be mounted with the largefiles option enabled. I believe the default is to have this option disabled so you can mount the file system (say /home for example) like this `mount -o remount,largefiles /home` or you can just edit your /etc/fstab file to enable this opion and reboot. Good luck.

This discussion is closed to new replies.