- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar: error! blocksize changed
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 07:47 AM
03-08-2004 07:47 AM
Iâ m trying compress an entire directory into a single file using tar. For the sake of debugging, I am trying it using just 2 files.
The resulting files appear to be correct and work fine but I always get an error â Tar: error! blocksize changedâ . See below.
I have tried waiting an extended amount of time to be sure it it not a timing issue and my file size is well below 2G.
ANY IDEAS??
tar -cvf softran.TAR .
produces:
a ./eft110.cbl 61 blocks
a ./install.sh 1 blocks
a ./softran.TAR 60 blocks
./softran.TAR: file changed size
the result is:
-rw-rw-r-- 1 sysmnt sysmnt 133120 Mar 8 09:03 softran.TAR
when I extract using
tar -xvf softran.TAR
x ./eft110.cbl, 31033 bytes, 61 tape blocks
x ./install.sh, 36 bytes, 1 tape blocks
x ./softran.TAR, 30720 bytes, 60 tape blocks
Tar: error! blocksize changed
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 07:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 07:54 AM
03-08-2004 07:54 AM
Re: Tar: error! blocksize changed
you also are TARing the destination file into the tarfile, so the file it's trying to tar is being changed at the same time.
try:
tar cvf ../softran.TAR *
or
tar cvf softran.TAR !(softran.TAR)
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 07:58 AM
03-08-2004 07:58 AM
Re: Tar: error! blocksize changed
If you absolutely MUST create the tar file in the same directory as the rest of your files, I would do something like this:
# ls -1 > /var/tmp/file
# tar -cvf softran.TAR $(cat /var/tmp/file)
This will create your tar file in the same directory but will not try to include itself in the tar file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 08:03 AM
03-08-2004 08:03 AM
Re: Tar: error! blocksize changed
the second one should have been:
tar cvf softran.TAR $(!softran.TAR)
(tar all files except softran.TAR)
sorry & good luck,
Thierry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 08:12 PM
03-08-2004 08:12 PM
Re: Tar: error! blocksize changed
I was mixing up my mixed up stuff :-(
tar cvf softran.TAR !(softran.TAR)
was indeed the correct one, sorry sorry sorry
Thierry (need more sleep ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 08:17 PM
03-08-2004 08:17 PM
Re: Tar: error! blocksize changed
Please check this link
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=190047
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:05 AM
03-09-2004 01:05 AM
Re: Tar: error! blocksize changed
It took me awhile because I missed the "."
at the end of
tar cvf /home/live/updates/$1/softran.TAR .
for future readers I also needed to change the extract line to extract from a diff dir
tar -xvf /home/store/files/softran.TAR
THANKS AGAIN!