From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3915 invoked from network); 22 Jun 1998 11:50:30 -0000 Received: from canoe.roc.servtech.com (HELO canoe.xcski.com) (ptomblin@204.181.4.141) by mail2.redhat.com with SMTP; 22 Jun 1998 11:50:30 -0000 Received: (from ptomblin@localhost) by canoe.xcski.com (8.8.7/8.8.7) id HAA25911; Mon, 22 Jun 1998 07:50:31 -0400 Message-ID: <19980622075030.J799@xcski.com> Date: Mon, 22 Jun 1998 07:50:30 -0400 From: Paul Tomblin To: axp-list@redhat.com Subject: Re: Moving partitions... References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 In-Reply-To: ; from Keith Baker on Wed, Jul 22, 1998 at 12:45:23AM -0400 Quoting Keith Baker (toaster@cybercom.net): > How can I safely copy my root partition to another drive... last time it > was on my intel and I used a bit-bit disk copy... What can I do with > axp linux... I've always been a big fan of using tar for this, but I see from the other messages in this thread that there are "new"[1] arguments to "cp" that do similar things. Anyways, the command that worked on Jurassic Unix, and which still works now, is (starting from where you want to copy it from) tar cvf - . | (cd /foo/bar; tar xvPf -) You can also do this from one machine to another if they're set up to allow rsh between them: tar cvf - . | rsh foohost "cd /foo/bar; tar xvPf -" But because this is Unix, and that means there are always a million different ways of doing anything, I expect some equally old-timer to now chime in and tell you how to do it using cpio or dd. [1] Where "new" in this context means "added to Unix some time in the last 10 years since I've stopped having to read the manual to know how to do cp, and so missed anything new added" -- Paul Tomblin, ptomblin@xcski.com. "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners" - Ernst Jan Plugge