Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!uakari.primate.wisc.edu!ames!uhccux!bt455s10 From: bt455s10@uhccux.uhcc.hawaii.edu (Carl "Art" McIntosh) Newsgroups: comp.sys.ncr Subject: Re: Copying from one tape to another tape Keywords: cpio, tar, dd Message-ID: <6123@uhccux.uhcc.hawaii.edu> Date: 11 Jan 90 18:31:11 GMT References: <812@pmday_2.Dayton.NCR.COM> <1887@sauron.Columbia.NCR.COM> Reply-To: bt455s10@uhccux.UUCP (Carl "Art" McIntosh) Distribution: usa Organization: University of Hawaii Lines: 33 In article <1887@sauron.Columbia.NCR.COM> stevem@sauron.UUCP (Steve McClure) writes: >In article <812@pmday_2.Dayton.NCR.COM> steve@pmday_2.Dayton.NCR.COM (Steve Bridges) writes: >|A possible scenario follows: I have a 150mb tape with some files somebody >|with another tower wants. They only have a 45mb tape drive, but I have >|both a 150mb and a 45mb tape drive. I want to copy what is on >|the 150mb tape to a 45mb tape without putting a copy in disk. >| >|Thanks in advance for any responses. > >Steve, what about dd if=/dev/150Mtape of=/dev/45Mtape bs=100k ??? > >Steve McClure >----- >stevem@Columbia.NCR.COM >The above are my opinions, which NCR doesn't really care about anyway! >CAUSER's Amiga BBS! | 803-796-3127 | 8pm-8am 8n1 | 300/1200/2400 I ran across a problem a couple of months back regarding reading 45MB tapes in a 150MB drive. Evidently the bytes are *swapped*, so you need to use dd(1) to do the conversion. The command below will read a 45MB tape in a 150MB drive into the filesystem. dd if=/dev/rstp/34yy conv=swab | cpio -idcmuv You may have to mess with the -c option to cpio depending if the tape was created using it or not. Possibly you need to swap bytes as well prior to writing to your 45MB tape. -- Art Neilson Bank of Hawaii Tech Support ARPA: manapua!pilikia!root@trout.nosc.mil UUCP: {uunet,ucbvax,dcdwest}!ucsd!nosc!manapua!pilikia!root