Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "David R. Gavin" <dgavin@shore.net>
To: axp-list@redhat.com
Subject: Re: A lil offtopic, but..
Date: Wed, 13 Jan 1999 11:41:49 -0500 (EST)	[thread overview]
Message-ID: <199901131641.LAA29517@northshore.shore.net> (raw)
In-Reply-To: <13980.46532.347029.739872@flow.geo.vu.nl> from Jaap Schellekens at "Jan 13, 99 04:09:03 pm"

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
> 


  reply	other threads:[~1999-01-13 17:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-13 15:01 A lil offtopic, but AfterBurn
1999-01-13 15:09 ` Jaap Schellekens
1999-01-13 16:41   ` David R. Gavin [this message]
1999-01-13 17:21     ` Robin Stephenson
1999-01-13 17:56     ` Michal Jaegermann
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox