[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux copying



On Tue, 13 May 2003, Konstantin Kostadinov wrote:

> another way is to tar and untar trough pipe without first tar and after this untar (if you do not space)

I do something like the following:

partition and format the new drive as i need

init 1
mount the new drive somewhere (say /newdrive)
create a file called /noback, that has:
/proc,
/newdrive
(and anything else you don't want to copy over) as its contents
cd /newdrive
tar -X /noback -cpf - / | tar -xvpf -
mkdir /newdrive/proc
chmod 555 /proc

power down
and then i usually use the rescue disk, pull the old drive put the new
drive in its place, boot off the rescue disk(rescue
root=/dev/newdriveaddress, and then go through the lilo steps.

Mike



Reply to: