From: John Ross Hunt <hunt@lbpc.com>
Subject: RE: moving linux from one disk to another
Date: Sat, 25 Oct 1997 08:59:20 -0500 [thread overview]
Message-ID: <64b32c67d074867d798709ab7918a11c.axp-list@archive.invalid> (raw)
Here's an easier way. Assuming the second disk is partitioned and formatted,
create a mount point and execute a shell script like this. All you need to do
is substitute your device name and make similar corrections in /etc/fstab and
you're set.
#! /bin/sh
cd /
mount -t ext2 /dev/sdb3 /mnt/disk2
find / -depth -xdev -print | cpio -padvVmB /mnt/disk2
-John Ross Hunt
-----Original Message-----
From: Michal Jaegermann [SMTP:michal@ellpspace.math.ualberta.ca]
Sent: Friday, October 24, 1997 10:32 AM
To: axp-list@redhat.com
Cc: martonak@nero.physik.uni-mainz.de
Subject: Re: moving linux from one disk to another
>
> I have got a new external 2 GB SCSI disk and would like to attach it to
> my UDB. So far, my Linux was on the internal 518 MB hard disk, and now
> I would like to move it to the external one.
> My question is whether it is
> enough just to partition the new disk and copy the whole linux filesystem
> onto it,
It will work just dandy. Use simply 'cp -a' but remember to skip /proc
and a mount directory for your new disk in the process. 'cp -a' will
handle /dev correctly (other methods of copying use 'tar' or 'cpio' or
something like that, on stdout piped to another process reading stdin, to
copy things around but 'cp -a' is the simplest). Create 'proc' directory
on a new disk to provide a mount point , adjust 'fstab' and you may ask
milo to boot from your new disk without blowing anything on your old one.
This is a good check that you have everything in order. Actually simpler
than on Intel. :-)
> What I would like to avoid is to have to install Linux again
> on the external disk.
No need. On one machine I have actually a cron process which
updates periodically a mirror system on a "spare" disk. In
a case of a disaster the machine can be just rebooted from this
"spare" (not remotely, someobody has to type on a console).
Actually the simplest way to get an answer to your question is just
to try. Not very much involved in that. :-)
Michal
--
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
next reply other threads:[~1997-10-25 13:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-25 13:59 John Ross Hunt [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-10-27 20:39 moving linux from one disk to another Robert L. Millner
[not found] <199710251603.KAA03016@ellpspace.math.ualberta.ca>
1997-10-27 13:21 ` Roman Martonak
[not found] <01BCE124.8EA23A80.hunt@lbpc.com>
1997-10-25 16:03 ` Michal Jaegermann
1997-10-24 10:35 Martin Ostermann
1997-10-24 8:45 Roman Martonak
1997-10-24 15:32 ` 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