This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes delete a file from tape drive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "delete a file from tape drive" Watch "delete a file from tape drive" New topic

delete a file from tape drive

Prashant Karmankar

Joined: Jul 10, 2008
Posts: 24

How do I delete single file from a tape drive?
mt -f /dev/st0 erase command will erase entire tape, i only want to delete single file from tape drive.

Thanks And Regards

Prashant K
Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

depends on the tape systems design. in the 1960s, DECtapes were random access devices, or at least they pretended to be, so you could delete or insert in the middle.

I haven't see a tape drive in 20 years that did it. DAT, etc. don't do it.

Why would you need it?

And why are you using Tape? Most folks do backups to another hard drive, or a thumb drive if its small
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63547

I think I still have some old DECtape spools hanging around here somewhere...

[Asking smart questions] [About Bear] [Books by Bear]
wood burning stoves
subject: delete a file from tape drive
It's not a secret anymore!