- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Device Erase
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
01-21-2002 07:11 AM
01-21-2002 07:11 AM
I've just been watching the hpux newsgroup and I was wondering if someone could confirm if the following command would work to blank a tape device.
cp /dev/null /dev/rmt/0m
As I am fairly sure it used to work on solaris.
All comment appreciated.
Thnx
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 07:21 AM
01-21-2002 07:21 AM
Re: Device Erase
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 07:32 AM
01-21-2002 07:32 AM
Re: Device Erase
To scratch a tar or fbackup tape, you can just reuse it and all data will be overwritten.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 07:32 AM
01-21-2002 07:32 AM
Re: Device Erase
dd if=/dev/null of=/dev/rmt/0m bs=1024 count=24000000
It's ok if the tape write fails with an IO error (it hit the EOT marker).
If it's a disk the same rules apply, but at least with a disk you can get specs on block sizes and overall disk size.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 07:35 AM
01-21-2002 07:35 AM
Re: Device Erase
You need a device that will supply an unlimited supply of NUL's. That is /dev/zero.
Do an ls -l /dev/zero to see if you have such a device. If not, create one thusly:
mknod /dev/zero c 3 0x000003. Chmod 444 /dev/zero.
If you then use this device rather than /dev/null, you can use your command. However, there is one wrinkle here, if this is a compression device and you write a ton of NUL's, what does that actually write to the tape? If possible, use a non-compression tape device node.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 07:56 AM
01-21-2002 07:56 AM
Re: Device Erase
:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 08:00 AM
01-21-2002 08:00 AM
Re: Device Erase
You are right, what the hell was I thinking about (/dev/null), it must be a monday?? Alex, use the /dev/zero device!
live free or die
harry