Re: Disk copying

2002-11-24 Thread David Schultz
Thus spake Mark [EMAIL PROTECTED]:
  Are the disks the same size/geometry?  If so:
 
  dd if=/dev/olddisk of=/dev/newdisk bs=32k
 
 Can dd also be used to copy to/fro my RAID disks (40G), to a single 40G
 disk? The latter is of a different brand, but has the same size. In other
 words: how identical does the geometry need to be?
 
 If I can use dd here, I think I will use dd to create a core system; and
 then use additional dumps to backup individual slices.

If the drives have the same geometry as far as the BIOS is
concerned, you should be okay.  Basically, the partition table you
copy has to be valid for the target drive.  But it's much more
reliable to just use dump/restore.  If you want to have a spare
`live filesystem', just restore the backup to the new disk.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Disk copying

2002-11-21 Thread ertank
Hello, 

I want to backup my disk with all of its contents. Exactly, I want to copy 
it completely to another disk. 

I have only one freebsd partition and several slices on my disk. I want to 
copy all the data to another bigger disk preserving my user and group 
settings. 

Is it possible to use cp? In this way I supposed to create my partitions 
before and mount them under some partition and just cp -Rp / /newdisk but 

Won't it start to copy the data recursively when copying reachs /newdisk? 

Just curious. 

Regards, 

--
Ertan Kucukoglu
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Disk copying

2002-11-21 Thread Jerry McAllister
 
 Hello, 
 
 I want to backup my disk with all of its contents. Exactly, I want to copy 
 it completely to another disk. 
 
 I have only one freebsd partition and several slices on my disk. I want to 
 copy all the data to another bigger disk preserving my user and group 
 settings. 
 
 Is it possible to use cp? In this way I supposed to create my partitions 
 before and mount them under some partition and just cp -Rp / /newdisk but 
 
 Won't it start to copy the data recursively when copying reachs /newdisk? 

You are better off using dump(8)/restore(8) to make the
copies.   Alternatively, you could use tar.

None of dump/restore, tar or cp will make a bootable disk.  You have
to do that outside of the process (before tranferring files).  If you
use dd or some other image copy utilities, you can make it bootable,
but it ain't the easiest way.

jerry

 
 Just curious. 
 
 Regards, 
 
  --
 Ertan Kucukoglu
 [EMAIL PROTECTED]
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Disk copying

2002-11-21 Thread Mark
- Original Message -
From: David Schultz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, November 22, 2002 12:44 AM
Subject: Re: Disk copying


 Are the disks the same size/geometry?  If so:

 dd if=/dev/olddisk of=/dev/newdisk bs=32k

Can dd also be used to copy to/fro my RAID disks (40G), to a single 40G
disk? The latter is of a different brand, but has the same size. In other
words: how identical does the geometry need to be?

If I can use dd here, I think I will use dd to create a core system; and
then use additional dumps to backup individual slices.

Thanks!

- Mark


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message