Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!uakari.primate.wisc.edu!uflorida!novavax!twwells!bill From: bill@twwells.com (T. William Wells) Newsgroups: comp.unix.i386 Subject: Re: dd curiosity Message-ID: <1989Dec30.233951.23096@twwells.com> Date: 30 Dec 89 23:39:51 GMT References: <396@zok.UUCP> Organization: None, Ft. Lauderdale, FL Lines: 22 In article <396@zok.UUCP> mark@zok.UUCP (Mark W. Snitily) writes: : For example, if I write 4 sectors into the partition starting at sector : 20000, the write will complete very fast, (i.e. a few seconds): : dd if=myfile of=/dev/rdsk/0p1 seek=20000 count=4 Does an lseek to the appropriate place. : But, if I read 4 sectors from the partition starting at sector 20000, : the read will take forever to complete, (i.e. we're talking minutes to : hours depending upon the skip value): : dd if=/dev/rdsk/0p1 of=myfile skip=20000 count=4 Reads everything from the beginning of /dev/rdsk/0p1 till it gets to the place to read. : Any ideas of how to speed it up? Use seek instead of skip. --- Bill { uunet | novavax | ankh | sunvice } !twwells!bill bill@twwells.com