From owner-freebsd-questions Sun Feb 13 14:50:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by builder.freebsd.org (Postfix) with ESMTP id 4238F3E90 for ; Sun, 13 Feb 2000 14:50:33 -0800 (PST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id JAA02725; Mon, 14 Feb 2000 09:21:24 +1030 (CST) Date: Mon, 14 Feb 2000 09:21:24 +1030 From: Greg Lehey To: cjclark@home.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Trouble Reading Tape, Drive or Software? Message-ID: <20000214092123.A2699@freebie.lemis.com> References: <20000210154332.A18555@cc942873-a.ewndsr1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <20000210154332.A18555@cc942873-a.ewndsr1.nj.home.com> WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday, 10 February 2000 at 15:44:58 -0500, Crist J. Clark wrote: > Last night, I did a backup of a machine and piped the dump output over > ssh to another machine which then put the data on tape. The command on > the remote host was basically something like, > > dump -ua0f - / | ssh tape-server dd of=/dev/nrsa0 > > However, I cannot now read the tape. I first just tried stuff like, > > # restore -tvf /dev/nrsa0 > > But it would report it was not a dump tape. It seemed like it might be > a blocksize issue, so I tried to reverse the process, > > # dd if=/dev/nrsa0 | restore -tvf - > > But no good. dd(1) gives me the following (this is cut and paste of an > attempt to just read the tape to a file), > > dd if=/dev/nrsa0 of=var.dmp > dd: Feb 10 11:12:58 backmail /kernel: (sa0:aha0:0:6:0): 10240-byte tape record bigger than suplied buffer This message is telling you that the system can't read the block because there's nowhere to put it. The block is 10 kB long, so you need to write: # dd if=/dev/nrsa0 of=var.dmp bs=10k The error isn't specific to tapes, but it happens there most frequently because tape records are usually blocked. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message