- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I erase the content of a DDS tape?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 05:47 AM
05-11-2001 05:47 AM
Simple question what is the command
I can use so I can be sure that the old content of a tape is deleted.
TIA,
Best Regards,
Rui.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 05:54 AM
05-11-2001 05:54 AM
Solutiontar cvf /dev/rmt/0 with no files defined initializez the start of the tape , but the you can always do a dd to get what is written after some skips . I can only think is the perfect way is to write some other data across the whole lenght of tape and then do the
tar cvf /dev/rmt/0 to initialize the start.
Also I dont know whether you can initialize media thorugh specific software , but some of them do format a tape.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 05:57 AM
05-11-2001 05:57 AM
Re: How can I erase the content of a DDS tape?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 06:13 AM
05-11-2001 06:13 AM
Re: How can I erase the content of a DDS tape?
dd if=/dev/null of=/dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 07:00 AM
05-11-2001 07:00 AM
Re: How can I erase the content of a DDS tape?
dd if=/dev/zero bs=8000k of=/dev/rmt/0m.
You might have to create the /dev/zero device node but unlike /dev/null, /dev/zero will provide an unlimited number of ASCII NUL characters.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 10:08 AM
05-11-2001 10:08 AM
Re: How can I erase the content of a DDS tape?
1- fast erase:
mt -t /dev/rmt/0mn eof # see man mt
But this only write a filemark on media ( i still dont know how to skip this end of media).
2- Hola Clay:
dd if=/dev/zero of=/dev/rmt/0mn is a great idea, but.... how may millions of Gb of zeros must be compressed? Better use a no-compression special file ( see man mksf or lssf).
3- /dev/null is a spcial file for output ( bit eater), not for input (/dev/zero). So it same to >/dev/rmt/0mn.
Regards to all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2001 04:07 AM
05-14-2001 04:07 AM
Re: How can I erase the content of a DDS tape?
If you only want to rewrite the header of a tape (this means that a crafty person with a special Tape drive
Either use...
>touch /tmp/junk
>tar cvf /dev/rmt/#mn /tmp/junk
or put a file to the tape that is small and you dont care...
> tar cvf /dev/rmt/#mn /etc/hosts
If you want to blank the tape then the only real option is to either put a null file to the tape over and over until the tape is full, or put lots of good data to the tape untill it's full
I.E.
> I=2
>while [ "${I}" -ne "1" ] ; do
>dd if=/dev/null of=/dev/rmt/#mn bs=512
>done
Note, that when the end of media is reached, you will not get an error for dd, so you will have to guess and ^C from the loop.
or...
>I=2
>while [ "${I}" -ne "1" ] ; do
>tar cvf /dev/rmt/#mn /dev/null
done
tar error will come up at the end of media asking for a null then enter to quit or a new device to tar to...
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2001 06:05 AM
05-14-2001 06:05 AM
Re: How can I erase the content of a DDS tape?
this has been discussed some days ago...
anyway, here is my solution again ;-)
telnet localhost chargen | dd of=/dev/rmt/0m bs=1k
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2001 06:19 AM
05-14-2001 06:19 AM
Re: How can I erase the content of a DDS tape?
sorry to say: I go with Carlos !
(from "man mt" on HP-UX 11.0):
mt accepts the following commands:
eof WRITE count EOF marks.
Be carefull, if you ever use Solaris (mt erase):
erase :
Erase the entire tape. Erasing a tape
may take a long time depending on the
device and/or tape. Refer to the device
specific manual for time details.
Volker