Re: A lil offtopic, but..


David R. Gavin (dgavin@shore.net)
Wed, 13 Jan 1999 11:41:49 -0500 (EST)


Dave Gavin <dgavin@shore.net>
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
>

-- 
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



This archive was generated by hypermail 2.0b3 on Sun Jan 24 1999 - 14:47:49 PST