* A lil offtopic, but..
@ 1999-01-13 15:01 AfterBurn
1999-01-13 15:09 ` Jaap Schellekens
0 siblings, 1 reply; 5+ messages in thread
From: AfterBurn @ 1999-01-13 15:01 UTC (permalink / raw)
To: axp-list
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?
-AB-
^ permalink raw reply [flat|nested] 5+ messages in thread
* A lil offtopic, but..
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
0 siblings, 1 reply; 5+ messages in thread
From: Jaap Schellekens @ 1999-01-13 15:09 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A lil offtopic, but..
1999-01-13 15:09 ` Jaap Schellekens
@ 1999-01-13 16:41 ` David R. Gavin
1999-01-13 17:21 ` Robin Stephenson
1999-01-13 17:56 ` Michal Jaegermann
0 siblings, 2 replies; 5+ messages in thread
From: David R. Gavin @ 1999-01-13 16:41 UTC (permalink / raw)
To: axp-list
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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A lil offtopic, but..
1999-01-13 16:41 ` David R. Gavin
@ 1999-01-13 17:21 ` Robin Stephenson
1999-01-13 17:56 ` Michal Jaegermann
1 sibling, 0 replies; 5+ messages in thread
From: Robin Stephenson @ 1999-01-13 17:21 UTC (permalink / raw)
To: axp-list
>>>>> On Wed, 13 Jan 1999 11:41:49 -0500 (EST)
>>>>> "David" == David R Gavin <dgavin@shore.net> wrote:
David> An even slicker way to migrate to a new filesystem that may not
David> be the same size:
David> cd dir_to_move
David> tar cf - . | (cd target_directory ; tar xf -)
Adding the `p' flag to the tar command will maintain the permissions,
which may or may not be a good idea.
[...]
--
Robin Stephenson
Temporarily Lower Price
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A lil offtopic, but..
1999-01-13 16:41 ` David R. Gavin
1999-01-13 17:21 ` Robin Stephenson
@ 1999-01-13 17:56 ` Michal Jaegermann
1 sibling, 0 replies; 5+ messages in thread
From: Michal Jaegermann @ 1999-01-13 17:56 UTC (permalink / raw)
To: axp-list
David R. Gavin wrote:
>
>
> 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 -)
As we are talking about Linux then 'cp -a <source> <target>' works just
dandy. Use 'cp -xdpR' if you want to be a bit more selective. Works
on a contents of /dev as well. Try and see for yourself. :-)
As this is a properly of GNU 'cp' do not try that on a system where
this variant of 'cp' is not available.
Yet another method is --pass option to 'cpio'. See 'man cpio' for more.
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-01-13 18:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1999-01-13 17:21 ` Robin Stephenson
1999-01-13 17:56 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox