Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!cfctech!rphroy!edsews!bgalli!bga From: bga@bgalli.eds.com (Billy G. Allie) Newsgroups: comp.unix.i386 Subject: Re: dd curiosity Message-ID: <1990Jan2.063300.2373@bgalli.eds.com> Date: 2 Jan 90 06:33:00 GMT References: <396@zok.UUCP> <1989Dec30.233951.23096@twwells.com> Organization: Bill's Home System Lines: 25 bill@twwells.com (T. William Wells) writes: :In article <396@zok.UUCP> mark@zok.UUCP (Mark W. Snitily) writes: :: ... :: 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. Using seek will cause it to seek to block 20000 of the _OUTPUT_ file. Some versions of dd have an iseek option to seek on the input file. The easiest way to find out is to try it and see if it works. If it doesn't work, you will have to continue to use (the slow method of using) skip. -- ____ | Billy G. Allie | Internet..: bga@bgalli.eds.com | /| | 7436 Hartwell | UUCP......: uunet!edsews!bgalli!bga |-/-|----- | Dearborn, MI 48126 | Compuserve: 76337,2061 |/ |LLIE | (313) 582-1540 | Genie.....: BGALLIE