![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tar blockSize problem | scriptingmani | SUN Solaris | 2 | 09-26-2007 01:10 AM |
| tar: blocksize = 0 - Error message? | Tlogine | UNIX for Dummies Questions & Answers | 3 | 08-11-2007 03:32 PM |
| tar: blocksize | melanie_pfefer | UNIX for Dummies Questions & Answers | 0 | 07-17-2007 04:43 AM |
| tar: tape blocksize error | big123456 | UNIX for Advanced & Expert Users | 1 | 03-26-2007 03:57 AM |
| Tar: tape blocksize error | ramkumar | UNIX for Advanced & Expert Users | 1 | 08-09-2005 09:09 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to change blocksize for in tar command
How can I change the blocksize in tar command?
tar cvf test.tar backup.sh a backup.sh 1K If we need to set the blocksize to 20, how to do that? Please advise. Thank you. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
man tar
to create archive tar cvfb <filenm.tar> 20 <files to archive > to check block size tar tvf <filenm.tar> OR tar tvf <filenm.tar> 30 anybode please correct me if wrong samsam |
|
#3
|
|||
|
|||
|
Hi,
Thanks for your quick response. I managed to do the tar now. By the way, the blocksize show 4, # tar cvfb test.tar 20 backup.sh a backup.sh 1K # tar tvf test.tar tar: blocksize = 4 -rwxr-xr-x 0/1 76 Jul 20 16:21 2005 backup.sh # tar tvf test.tar 30 tar: blocksize = 4 Please advise. Thank you. |
|
#4
|
|||
|
|||
|
The blocksize shows 4, but we need set it to 20.
How can we do that? |
|
#5
|
|||
|
|||
|
It might depend on which tar you're using.
Linux/tar: Code:
tar -c -b 20 -f test.tar -v backup.sh Code:
tar -c -b 20 -f test.tar -v backup.sh Carl |
|
#6
|
|||
|
|||
|
In Tru64,
> tar cvfb test.tar 20 abc a abc 0 Blocks > tar tvf test.tar blocksize = 20 -rw-r--r-- 0/15 0 Oct 12 11:19:14 2006 abc In Solaris, # ls -al abc -rw-r--r-- 1 root other 0 Oct 12 11:20 abc # tar cvfb test.tar 20 abc a abc 0K # tar tvf test.tar tar: blocksize = 3 -rw-r--r-- 0/1 0 Oct 12 11:20 2006 abc How can we get the blocksize in solaris to set as tru64 blockszie? |
|
#7
|
|||
|
|||
|
My sun box (solaris 8) I have here says (via man) that 20 is the default. I ran the same command you did but the test option doesn't show the blocking factor. I tried it with a blocking factor of 30 but it still didn't show it.
Carl |
|||
| Google The UNIX and Linux Forums |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|