Space free on tape /delete a single file on tape


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Space free on tape /delete a single file on tape
# 1  
Old 12-20-2006
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  
Old 12-20-2006
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  
Old 12-20-2006
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  
Old 12-21-2006
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to copy a 2 Volume mksysb backup to a single tape?

Hi, I have an mksysb backup which consists of 2 Volume, how do I combine it into a single Volume or tape ? Appreciate it (1 Reply)
Discussion started by: AIXBlueCat
1 Replies

2. Solaris

UNIX Checking Tape Space

Hello. My name is Alex and I am new to the UNIX environment. One of the things that I do on a daily basis is I perform backups to tape on a Sun Ultra 25. I use DAT72 tape. The tape that is currently in the tape drive has about five database backups within it already. I was just hoping... (19 Replies)
Discussion started by: daddy.torres
19 Replies

3. AIX

Ejecting tape on AIX & Some Tape commands

I am trying to use this command to eject the tape mt -f /dev/rmt/0 unload but it gives me error mt -f /dev/rmt/0 unload mt: 0511-575 unload is not a recognized subcommand. Usage: mt Subcommand Valid subcommands are: weof eof fsf bsf ... (5 Replies)
Discussion started by: filosophizer
5 Replies

4. AIX

How to make a copy of a tape to another tape?

Hello, We need to make a copy of a backup tape, using the 2 tape recorders in IBM 3582 Tape Library We tried tu use "tcopy", it seems to work fine (no error messages) but we aren't sure if we can rely on it. my question is how to check if the copy succeded or not, but i also want to know... (3 Replies)
Discussion started by: fastlane3000
3 Replies

5. AIX

I could not delete the tape in AIX !

I could not delete the tape in AIX This is the steps which i used .. but still it did not deleted .. ! server/root>lscfg -l rmt0 rmt0 U789D.001.DQD298Y-P1-C5-T2-L6-L0 Other SCSI Tape Drive server/root> server/root> server/root>lsdev -l rmt0 -F parent scsi3... (3 Replies)
Discussion started by: Mr.AIX
3 Replies

6. SCO

Tape Status shows 2 Hard errors and 5 Underruns on new tape

when I do a tape status /dev/rStp0 I get the following on a new tape and I have tried several: Status : ready beginning-of-tape soft errors : 0 hard errors: 2 underruns: 5 My BackupEdge has stopped backing up my system because it asks for a new volume yet my total system data is under 20... (5 Replies)
Discussion started by: psytropic
5 Replies

7. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

8. Solaris

How to recover a single file from tape

Hi I have taken a backup using /usr/sbin/ufsdump -0uf /dev/rmt/0n I want to recover one file from it but finding it hard nut to crack. Can you please give me a simple way of recovering it? Thanks (2 Replies)
Discussion started by: krishan
2 Replies

9. UNIX for Advanced & Expert Users

Tape space used not correct

version: SCO 5.0.5 There is a file in /usr/local/bin called ' baktape ', I'm unsure whether this is a standard unix file or one created by someone who used to manage this server? Anyway, it backs up what is specified to be backed up to tape and then prints off a report. Problem: What comes... (2 Replies)
Discussion started by: system77
2 Replies
Login or Register to Ask a Question