multi tape option in tar cmd

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat multi tape option in tar cmd
# 8  
Old 10-20-2011
Quote:
Originally Posted by Corona688
Hard drives, cdroms, dvd's, and other media still come in units of powers of two -- they have to talk to computers, they could scarcely be anything else! They have sector sizes of 512, 2048, or 4096 bytes, not 500, 2000, and 4000. They're just advertised in powers of ten to make the number bigger.

I dread the days when they figure out how to make arbitrary sizes of RAM. They've already done it for flash media, somehow. Then RAM'll start shrinking too, no doubt.
Yes, of course sector sizes are 2048 for cdroms, but that can be also said for hard drives, which are 512 bytes.

What I wanted to say is that 4.7GB dvds are 4.37GiB and 25GB Blu Rays are 23.3GiB.

But what made my laugh is that:
Quote:
As used for storage capacity, one megabyte (MB) = one million bytes, one gigabyte (GB) = one billion bytes, and one terabyte (TB) = one trillion bytes. Total accessible capacity varies depending on operating environment. As used for buffer or cache, one megabyte (MB) = 1,048,576 bytes. As used for transfer rate or interface, megabyte per second (MB/s) = one million bytes per second, megabit per second (Mb/s) = one million bits per second, and gigabit per second (Gb/s) = one billion bits per second.
Taken from Western Digital's web site.
MB of hard disk = 1,000,000B
MB of cache = 1,048,576B
Go figure!

Anyway, I just recalled that the user @nithyanandan wanted to store a tar file (uncompressed) to the tape, thus he will utilize the tape drives compression features, so my code is useless since I can't predict the chuck size that will be compressed to fit perfectly on the tape.

Speaking tape drives: Most say compression is 2:1. I've heard a 2.4:1. But today I saw a 3:1 IBM Magstar MP 3570 - Wikipedia, the free encyclopedia !!
I mean why don't they test zero filled files so they can achieve a 1million:1.
# 9  
Old 10-20-2011
Quote:
Originally Posted by galanom
Anyway, I just recalled that the user @nithyanandan wanted to store a tar file (uncompressed) to the tape, thus he will utilize the tape drives compression features, so my code is useless since I can't predict the chuck size that will be compressed to fit perfectly on the tape.
Unless you're dumping raw text, the compression you get will be marginal; nothing really impressive can be done with hardware-on-chip compression. Of course you know this, I'm making it clearer for the OP... Best to underguess and not hit the end.

If you want compression, use tar -zcf. This will make it difficult to recover from tape errors, however.

I'm unclear on whether you lose data when you hit the end of a tape or not -- i.e. when you hit EOF have you already written a sector or three that won't get read back? So it's safest to underguess in any case.

Last edited by Corona688; 10-20-2011 at 03:38 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with tar cmd for directories

Hi, I'm working on HP-UX B.11.23 64bit. I tried to tar couple of directories but failed to do so. $ tar -cvf tar_file_name -C /dir1 /dir2 the -C is for directories as mentioned in the man pages. But still unable to create a tar file having directories and sub-directories. Requesting help in... (1 Reply)
Discussion started by: sam_bd
1 Replies

2. UNIX for Dummies Questions & Answers

cmd find: exclude directory when using option -depth

hello, i want to use "-depth" in command "find" and want to exclude a directory. the find command should work in HP-UX and Linux. i see in the find man page: -prune If -depth is not given, true; do not descend the current directory. If -depth is given, false; no effect. -depth... (3 Replies)
Discussion started by: bora99
3 Replies

3. UNIX for Advanced & Expert Users

Multi-Volume tar archives. [solved]

Hi, The only off-line storage medium I have is DVD. I am trying to back up around 10G of data and if I can achieve a practical solution I will use it more generally. I am currently considering something along the lines of: tar --create --multi-volume --tape-length=nnnn <pathspec> |... (0 Replies)
Discussion started by: MikeGM
0 Replies

4. Red Hat

Multi OS option

Hi, We will purchase redhat enterprise WS. We want to use Windows and Redhat in same machine. For this purpose , should we buy Redhat with Multi OS option? Or Is it just for virtualization..? (I couldnt be sure) Regards... (3 Replies)
Discussion started by: titanic
3 Replies

5. Shell Programming and Scripting

tar cmd how many arguments into parameters of filenames

Hi I would like to use tar cmd in my script. I have a variable with filenames, e.g. 1000 records and I would like to paste its values into tar cmd. For this example I used three elements variable strings. strings="file1.txt file2.txt file3.txt" `tar cf file1.tar $strings` Whether... (1 Reply)
Discussion started by: presul
1 Replies

6. Shell Programming and Scripting

tar: unable to specify archive name with -p option

Hi, When I use -p option(preserve permissions) while creating tar archives, it throws error and creates archive in the name of 'p'. But without -p option I am able to create archive name as I mentioned. how do I work it out with --preserve-permissions? Any help is much appreciated. ... (3 Replies)
Discussion started by: learn more
3 Replies

7. UNIX for Dummies Questions & Answers

Is there nobody who's sucessfully used tar -G option???

Has anyone you know ever used the -G --incremental option successfully with the tar command? I'm not talking about the little -g --listed-incremental option. I don't want incremental backups. Just one differential backup which is what the -G is for. The -G command is supposed to make a single... (1 Reply)
Discussion started by: protienplant
1 Replies

8. UNIX for Advanced & Expert Users

Does tar do crc checking on a tape or tar file?

Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies

9. UNIX for Dummies Questions & Answers

tar command with compress option...

Hi ! i have to write a script that archivs homes not used since 3 years. First, my script gathers the users that are concerned, using the following command : ll -lt /home/*/.sh_history | egrep '2000|1999|1998|1997' | awk '{print $3}' i obtain a list like this : user_1 user_2 ...... (3 Replies)
Discussion started by: tomapam
3 Replies

10. UNIX for Dummies Questions & Answers

tar to tape and back

Howdy, I'm trying to tar some directories to tape and then extract them from tape on another machine. I was hoping someone could help me with the syntax of the tar commands. Both machines are running Solaris 8. Need to get all files and directories under the following: ... (6 Replies)
Discussion started by: pmetal
6 Replies
Login or Register to Ask a Question