The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tape Status shows 2 Hard errors and 5 Underruns on new tape psytropic SCO 5 04-24-2008 02:29 PM
Mounting DLT tape and to backup file to tape ayzeayem UNIX for Dummies Questions & Answers 0 08-14-2007 03:09 AM
How to recover a single file from tape krishan SUN Solaris 2 05-09-2005 10:49 AM
Tape space used not correct system77 UNIX for Advanced & Expert Users 2 10-06-2004 07:37 PM
copy tape to tape using dd itsgeorge SUN Solaris 2 04-14-2004 11:12 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-20-2006
Minguccio75 Minguccio75 is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 33
Space free on tape /delete a single file on tape

Hi,
I' using a sun solaris server, I would like to known if there is the possibility to control how many space is free on a tape and how I can delete a single file on a tape.
Thanks
DOMENICO
  #2 (permalink)  
Old 12-20-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
Tapes aren't hard drives. The very concept of "delete" and "free space" assumes the existence of some sort of filesystem to organize sectors, which tapes often don't bother with since they seek so slowly... Instead they'd be used as one big file, containing an archive like tar. There's exceptions, of course, but I can't tell if your tape's one of them from the precisely zero information given here. I'd guess that you'll need to deal with the program that created the tape data, not the tape itself.
  #3 (permalink)  
Old 12-20-2006
Minguccio75 Minguccio75 is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 33
thanks for the suggestion...
but you can say me why when I write on a tape for two or three times, after when I give the command tar tvf /dev/rmt/0, I see only the last files written?
  #4 (permalink)  
Old 12-21-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
Because you're not telling tar to append. You're overwriting the tape every time, starting at the beginning of the tape and writing towards the end. It's like overwriting the same file every time.

You're archiving with something like 'tar -cf /dev/rmt/0', yes? That creates a new archive every time, overwriting the parts you've already saved to. 'tar -rf /dev/rmt/0' will append to an existing archive. See 'man tar' for details.

here is a google groups thread describing the process.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0