Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!corolla.OntheNet.com.au!not-for-mail From: Tony Griffiths <tonyg@OntheNet.com.au> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Making disk image backup Date: Sun, 18 May 1997 14:42:15 +1000 Organization: On the Net (ISP on the Gold Coast, Australia) Lines: 29 Message-ID: <337E88A7.EC2@OntheNet.com.au> References: <01bc60df$afc618a0$16143ccb@clementc.ans.com.au> <5lf710$3av@ui-gate.utell.co.uk> <01bc6143$53026420$16143ccb@clementc.ans.com.au> Reply-To: tonyg@OntheNet.com.au NNTP-Posting-Host: swanee.nt.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (WinNT; I) To: Clement Cheung <clement@ans.com.au> Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41205 Clement Cheung wrote: > > > In article <01bc60df$afc618a0$16143ccb@clementc.ans.com.au>, > > "Clement Cheung" <clement@ans.com.au> writes: > > > I use this command to make disk image backup: > > > > > > dd if=/dev/wd0c of=/dev/wd2c bs=1024k > > > > > > It works well in BSDI 2.1. It seeems to work in FreeBSD 2.2.1 as well. > Clement, have you tried using the "raw" device rather than the block device. Ie. # dd if=/dev/rwd0c of=/dev/wd2c ... I had a similar problem copying a 4 GB drive and fixed it by using the raw device on the input disk, but I think I still used the block device on the output disk! Something to do with the end-of-disk and partial records I think... It was _MOST_ frustrating having to copy this 4 GB drive 4 times to get it right. Make sure you fsck the output disk!!! Why the error message I do no know. At the time I even went searching in the source code to find where it was generated but the only place (maybe there were 2 places) that the EINVAL errors was returned didn't make _ANY_ sense at all as far as I could see! Hope the above helps... Tony