- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to fill a device file with zeroes
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
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
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
тАО03-21-2001 01:09 AM
тАО03-21-2001 01:09 AM
I need something similar to /dev/zero from Linux.
According to man pages, I cannot use "prealloc" command in a device file.
Thanx in advance.
P.D: My purpose is to erase any trace of confidential data in a raw disk.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2001 01:17 AM
тАО03-21-2001 01:17 AM
Re: How to fill a device file with zeroes
I don't understand the question ,
just wanna guess what you want.
- to empty a file
#> filename
empty content of file but the file name still exist.
- null device file is /dev/null
- if you want to scrap the disk
#dd if=some large files of=/dev/dsk/...
but this is very dangerous !!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2001 01:31 AM
тАО03-21-2001 01:31 AM
Re: How to fill a device file with zeroes
here my suggestion:
prealloc /var/tmp/zero 65536
while :
do
cat /var/tmp/zero
done | dd of=/dev/rdsk/c#t#d0 bs=64k
This will write to raw device until dd gets an I/O error (which means the disk is full written)
Be careful with the device to prevent writing to a wrong disk.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2001 03:22 AM
тАО03-22-2001 03:22 AM
SolutionHola hola hola:
Easy :
see note http://europe-support.external.hp.com/cki/bin/doc.pl/sid=42a841b019c125f148/screen=ckiDisplayDocument?docId=200000052634178
if you cant read it , create /dev/zero :
mknod /dev/zero c 3 0x000003
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2001 07:44 AM
тАО03-23-2001 07:44 AM
Re: How to fill a device file with zeroes
dd if=/dev/zero of=/dev/dsk/c#t#d#
has anyone verified this, sounds interesting.
Later,
Bill (no free disk space !)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2001 01:21 AM
тАО03-26-2001 01:21 AM
Re: How to fill a device file with zeroes
use rdsk better.
Yes, this special file exists in others Unix and runs perfectly.
After mknod check it with
dd if=/dev/zero of=/tmp/zeros bs=1k count=10