From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <64b32c67d074867d798709ab7918a11c.axp-list@archive.invalid> X-Archive-Original-Message-ID: Date: Sat, 25 Oct 1997 08:59:20 -0500 From: John Ross Hunt Subject: RE: moving linux from one disk to another 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