This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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: 62130

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
rocket mass heater kickstarter
subject: delete a file from tape drive