John SechrestFri Sep 24 15:15:39 PDT 2004
Ralph is right. And you can set the Blocksize to 64K or 1M and make it go really fast. And if you are trying to edit things in various ways, dd also can do seeking. I use it to create a UML file system: dd if=/dev/zero of=$IMAGEDIR/$hostname seek=$tempsize count=1 bs=1M > /dev/null /sbin/mkfs.ext2 -F $IMAGEDIR/$hostname > /dev/null running image: devfs=mount ubd0=/gridvern/projects/r1/images/r1 eth0=daemon,fe:fd:0:0:86:27,unix,/tmp/my-global ubd1=/home/uml/KNOPPIX_V3.6-2004-08-16-EN.iso mem=64M umid=r1 uml_dir=/gridvern/projects/r1/uml_dir/r1 root 27998 0.0 1.2 66808 6680 pts/3 S 16:39 0:00 linux (r1) [-bash] devfs=mount ubd0=/gridvern/projects/r1/images/r1 eth0=daemon,fe:fd:0:0:11:6c,unix,/tmp/my-global ubd1=/home/uml/KNOPPIX_V3.6-2004-08-16-EN.iso mem=64M umid=r1 uml_dir=/gridvern/projects/r1/uml_dir/r1 Ralph Zeller <ralph at zellercpa.com> writes: % On 09/24/04 12pm, Allen Brown wrote: % > On Mon, 20 Sep 2004, Jason Van Cleve wrote: % > % > > were only $6 or $7 each). Once I discovered the right options for dd, I % > > was able to copy those sensitive Windows and Dell partitions, but it % > > took a long time, maybe because that old disk is going bad. For my % > > linux partitions, in retrospect, I can't help thinking a cp or tar would % > > have been a lot faster than dd, if not safer too. % > % > That could be an interesting experiment. In some ways dd should % > be much faster since it doesn't go chasing all around the partition % > for the data. Few seeks, which are slow. And dd should also make % > best use of read-ahead and the disk-local RAM buffer. But if your % > partition is only lightly filled, it may be that cp or tar would be % > faster. % % dd is lots faster using a larger block size instead of 512 bytes. It % defaults to a size that's "optimized" for reading and writing floppies. % % % _______________________________________________ % EUGLUG mailing list % euglug at euglug.org % http://www.euglug.org/mailman/listinfo/euglug ----- John Sechrest . Helping people use . computers and the Internet . more effectively . . Internet: sechrest at peak.org . . http://www.peak.org/~sechrest