From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5402 invoked from network); 13 Jan 1999 17:04:29 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 13 Jan 1999 17:04:29 -0000 Received: from siren.shore.net (siren.shore.net [207.244.124.5]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA27896 for ; Wed, 13 Jan 1999 11:42:06 -0500 Received: from shell1.shore.net (northshore.shore.net) [192.233.85.1] (dgavin) by siren.shore.net with esmtp (Exim) for axp-list@redhat.com id 100TMd-0005Uu-00; Wed, 13 Jan 1999 11:41:51 -0500 Received: (from dgavin@localhost) by northshore.shore.net (8.8.7/8.8.7) id LAA29517 for axp-list@redhat.com; Wed, 13 Jan 1999 11:41:49 -0500 (EST) From: "David R. Gavin" Message-Id: <199901131641.LAA29517@northshore.shore.net> Subject: Re: A lil offtopic, but.. In-Reply-To: <13980.46532.347029.739872@flow.geo.vu.nl> from Jaap Schellekens at "Jan 13, 99 04:09:03 pm" To: axp-list@redhat.com Date: Wed, 13 Jan 1999 11:41:49 -0500 (EST) Dave Gavin X-Mailer: ELM [version 2.4ME+ PL37 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2046 An even slicker way to migrate to a new filesystem that may not be the same size: cd dir_to_move tar cf - . | (cd target_directory ; tar xf -) (change the xf to xvf to see everything as it gets copied into the new home) This eliminates writing the archive to disk - it creates it and unloads it in a pipe. I've used this to move several filesystems to larger disks and it's worked fine. Dave > AfterBurn writes: > > Hi all, > > > > Im running linux on my XL266, and it runs great, only standard i got it > > with a 1gb scsi harddisk. Now i want to put in a 4gb spare drive i have, and > > move my existing installation to the new drive (and pull the old one). Is > > there a way to move all the files from the excisting filesystem to the new > > drive, and reboot using that drive instead of reinstalling everything? > > I have done just that and found it rather easy... > > what i did: > > 1) installed the new drive (set to a higher scsi id than the existing > one to prevent renumbering of the existing drive, crucial for the next > step....) > > 2) boot as usual (should work...) > > 3) copy the filesystems you want to move to the new drive (after fdisk > end mke2fs). I used dump and restore to do this > > 4) adjust /etc/fstab to reflect the new layout > > 5) reboot! In my case i left the root partition on the old drive and > move /usr and /home to the new drive. If you move / to the new drive > you will have to adjust the arc/milo setup as well. > > Hope this helps > > > Jaap > > -- > -------------------------------------------------------------- > Jaap Schellekens E-mail: schj@geo.vu.nl > Hydro(geo)logy Dept. Fax: ++31 20 6462457 > Inst. of Earth Sc. Voice: ++31 20 4447287 > Vrije Universiteit > De Boelelaan 1085 > 1081 HV Amsterdam NL See also: http://flow.geo.vu.nl > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com >