- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Format an Hard drive under HP-UX
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
02-20-2004 12:25 PM
02-20-2004 12:25 PM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2004 12:43 PM
02-20-2004 12:43 PM
Re: Format an Hard drive under HP-UX
Yes - the mediainit command.
But it's not recommended for drives you wish to keep, however, nor for drives with especially sensitive data as there are more secure techniques.
Commands would be like:
mediainit /dev/rdsk/cXtYdZ
Note the need for the raw device.
man mediainit for details
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2004 02:10 PM
02-20-2004 02:10 PM
Re: Format an Hard drive under HP-UX
Another way is to erase the data is to dd the /dev/dsk/c?t?d? with zeros etc e.g.
# dd if=/dev/zero of=/dev/dsk/c1t2d0 bs=1024
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2004 03:37 PM
02-20-2004 03:37 PM
Re: Format an Hard drive under HP-UX
cat < file name > > /dev/dsk/c0t0d0 will write the file at the start of the disk hence invalidating the format , you can also use mediainit to do the same.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2004 02:34 AM
02-23-2004 02:34 AM
Re: Format an Hard drive under HP-UX
mediainit performs a low-level (i.e. at the SCSI level) format. For most people, this is sufficent.
dd'ing over the front of the disk is not sufficent - if you have confidential data on the disk, bad guy could do something like
dd if=/dev/dsk/c1t0d0 bs=4k | strings | grep '[0-9]*-[0-9]'
to look for phone numbers and social security numbers (as an example) on the disk ....
even mediainit'ing is not completely secure - if bad guy takes the mechanism to a data recovery facility, they can often recover data by reading each of the tracks 'off-center' of the primary servo data... not trivial, not impossible either. Multiple
mediainits make this less likely to be successful.
It really depends on your level of paranoia. The military does not throw away drives at all - the drives are just ran through a crusher when the equipment is obsoleted...
-- Dave Ritchie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2004 02:51 AM
02-23-2004 02:51 AM
Solutionperl -e 'srand(time() ^ $$); while (1) { print int(rand(1)*256); }'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 03:09 AM
09-23-2005 03:09 AM
Re: Format an Hard drive under HP-UX
-- Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2005 03:36 AM
09-23-2005 03:36 AM