I copy entire filesystems regularly... the best method to copy sda1 to
sdb1 I have found is (assuming it's /)..

mount /dev/sdb1 /mnt
cd /
for i in `ls | grep -v mnt | grep -v proc`
cp -dpR $i /mnt
done
mkdir /mnt/proc
mkdir /mnt/mnt

This filesystem will then be fine....  You can even tinker with lilo so
that you'll boot from the new disk after,...

James

On Tue, 23 Mar 1999, Louis Mandelstam wrote:

> On 19 Mar 1999, anoah wrote:
> 
> > are you familiar with the program \'dd\'? 
> > 
> > i use dd to copy the raw partitions ie /dev/sda1 to /dev/sdb1 on a couple older
> > boxes.
> 
> I do this on our most important servers also, but you want to keep in mind
> that you're (a) copying open filesystems and (b) copying filesystems that
> may change significantly during the copy.
> 
> I've partially solved this by running a forced fsck on the backup
> filesystems after the copy.
> 
> 
> -------------------------------------------------------------------------
> Louis Mandelstam                                       # man 8 consulting
> email: [EMAIL PROTECTED]                  System administration contracting
> Mobile: +27-83-289-0310            'whois LM497' for current contact info
> ---------------------[ Penguin Cloning Specialist ]----------------------
> 

James ([EMAIL PROTECTED])
Vortex Internet
My operating system unders~1 long filena~1, and yours?

Reply via email to