From owner-freebsd-questions Wed Dec 1 17:52:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from zeus.anet-chi.com (zeus.anet-chi.com [207.7.4.6]) by hub.freebsd.org (Postfix) with ESMTP id 81A6614C1C for ; Wed, 1 Dec 1999 17:52:33 -0800 (PST) (envelope-from parrothd@midwest.net) Received: from supplies (209-224-62-25.nap.il.anet.com [209.224.62.25]) by zeus.anet-chi.com (8.9.3/spamfix) with SMTP id TAA19664; Wed, 1 Dec 1999 19:52:04 -0600 (CST) Message-Id: <199912020152.TAA19664@zeus.anet-chi.com> X-Sender: parrothd@mail.midwest.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Wed, 01 Dec 1999 19:57:19 -0600 To: Edward Knight , "questions@FreeBSD.ORG" From: "Jonathan E. Lyons" Subject: Re: Some wierdness with my cloned disk In-Reply-To: <38456961.3004A021@bellsouth.net> References: <38447371.55B9B776@bellsouth.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm not sure if you want to use tar, I don't think it follow links? Here's what I used on a SCO system upgrade (and tested on my 3.x machine). This doesn't store the first "/" so you can move stuff around easily... find . -print -depth | cpio -ocvB > /dev/fd0 cpio -itv < /dev/fd0 | more (So you can check the files, before you reboot, restore) cpio -icdumvB < /dev/fd0 Maybe it was a bad tape? At 06:30 PM 12/1/99 +0000, Edward Knight wrote: >Edward Knight wrote: > >> OK, >> >> I cloned my 2.5 gig Freebsd drive up to an 8.4 gig to allow for larger >> filesystems. It all went pretty much ok. However, when I boot the new >> drive immediately after the kernel loads, /stand/sysinstall starts. >> >> Can someone clue me in to whats going on? >> >> Ted Knight >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-questions" in the body of the message > >On doing some investigation, here's what I have found: > >cpio -pmduv /newdisk < disk.cpio > > is adding a ^@ to the begining of many files both executable and >textt. > When using vi on text files I can see it, it is always the first >character in the first line. > > disk.cpio is created usinf: > > find / -depth -print > /usr/tmp/disk.cpio > > /newdisk has the following mountts > /dev/wd2a ->/newdisk > /dev/wd2e ->/newdisk/var > /dev/wd2f ->/newdisk/usr > > -> does not indicate a link. It is intended to indicate the mount >point. > > wd2 is an 8.4 gig ide which with 3.2R loaded from the WC cdrom. and is >the secondary master. > > / is a 2.5 gig ide drive on the primary master > I'm copying from / to /newdisk. > >I am using 3.2R. Is cpio flawed or have I done something wrong here? > >I'll try tar pclv | tar xpv on the filesystems of / tonight and see if >tcopy goes better. > >It was my understanding that tar did not copy special files. Is this >still true? > >Ted knight > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > Jonathan E. Lyons FreeBSD! parrothd@midwest.net CCNA, MCP, MCSE, A+ Certified http://parrothd.midwest.net/ ICQ # 14226912 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message