- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command dd
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
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
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
тАО07-23-2007 05:52 AM
тАО07-23-2007 05:52 AM
command dd
dd if=/dev/rdsk/c0t1d0 of=/dev/null bs=8192
and
dd if=/dev/zero of=/dev/rdsk/c0t1d0 bs=1024 count=1000?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2007 05:57 AM
тАО07-23-2007 05:57 AM
Re: command dd
Second one writes 1000 1kB blocks of zeros to device /dec/rdsk/c0t1d0.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2007 06:03 AM
тАО07-23-2007 06:03 AM
Re: command dd
> dd if=/dev/rdsk/c0t1d0 of=/dev/null bs=8192
...reads the raw disk device in blocked reads of 8192 characters and writes what is read to the "bit-bucket". This is a common way to test a disk device to see if it can be read and/or can be read without errors.
> dd if=/dev/zero of=/dev/rdsk/c0t1d0 bs=1024 count=1000
...reads an infinite stream of zeros, writting them in blocks of 1,024 to the disk device shown. After 1,000 writes, the command quits. This is a common way to erase (some) disk information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2007 02:11 PM
тАО07-23-2007 02:11 PM
Re: command dd
if=INPUT_FILE
of=OUTPUT_FILE
bs=BLOCKSIZE
However, the bs= values are extremely small and except as a small test, should not be used. The bs= value can have a suffix k in order to represent much larger values. The following will read all the tracks on a given disk at full speed:
dd if=/dev/rdsk/c0t1d0 of=/dev/null bs=512k
However, the second command should be considered very dangerous. As mentioned it writes zeros on the disk. What this really means is that it destroys all the files and directories on that specific disk with no possible way to fix the destruction.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2007 06:34 PM
тАО07-24-2007 06:34 PM