Re: Creating clone of a HDD including boot partition

2010-12-16 Thread Adam Vande More
On Thu, Dec 16, 2010 at 4:05 PM, bsd wrote: > > $ gzcat pfSense_HDD.gz | dd of=/dev/disk1 bs=1m > > > Is there anything I can do to speed up the process ? > Not without interrupting it, but prior to that you could have done things like testing for optimal bs=. 1m should perform ok, but you ma

Re: Creating clone of a HDD including boot partition

2010-12-16 Thread bsd
Le 16 déc. 2010 à 16:03, Bernt Hansson a écrit : > 2010-12-16 11:55, bsd: > >> I have tried to use the compressed approach using smthg like: >> >> # mount /dev/ad0s1a /mnt >> # cd /mnt >> # dd if=/dev/zero of=zerofile bs=1M >> >> >> I have a lot of errors on standerr output such as : >> >> g_

Re: Creating clone of a HDD including boot partition

2010-12-16 Thread Bernt Hansson
2010-12-16 11:55, bsd: I have tried to use the compressed approach using smthg like: # mount /dev/ad0s1a /mnt # cd /mnt # dd if=/dev/zero of=zerofile bs=1M I have a lot of errors on standerr output such as : g_vfs_done() : da0s1a [WRITE(offset=58978680256, length=131072)]error = 5 You have

Re: Creating clone of a HDD including boot partition

2010-12-16 Thread Warren Block
On Thu, 16 Dec 2010, bsd wrote: I have tried to use the compressed approach using smthg like: # mount /dev/ad0s1a /mnt # cd /mnt # dd if=/dev/zero of=zerofile bs=1M I have a lot of errors on standerr output such as : g_vfs_done() : da0s1a [WRITE(offset=58978680256, length=131072)]error = 5

Re: Creating clone of a HDD including boot partition

2010-12-16 Thread Giorgos Keramidas
On Wed, 15 Dec 2010 18:57:33 +0100, bsd wrote: > Le 15 déc. 2010 à 16:45, Giorgos Keramidas a écrit : >> On Wed, 15 Dec 2010 16:11:45 +0100, bsd wrote: >>> Is there a way to dd to a file to create an iso image and then restore >>> (still using dd from this image). I only have one IDE <--> USB ca

Re: Creating clone of a HDD including boot partition

2010-12-16 Thread bsd
Le 15 déc. 2010 à 20:20, Warren Block a écrit : > On Wed, 15 Dec 2010, bsd wrote: > >> Is there a way to dd to a file to create an iso image and then restore >> (still using dd from this image). >> I only have one IDE <--> USB cable so this is the reason why It'd more >> simple for me to creat

Re: Creating clone of a HDD including boot partition

2010-12-15 Thread Mehmet Erol Sanliturk
On Wed, Dec 15, 2010 at 12:57 PM, bsd wrote: Just to be precise, I am not trying to do an ISO image of a running root FS, > but of a USB attached disk. > > … > > I did not apply the following steps for FreeBSD , but I have applied them in Mandriva Linux a few times : Assume that the operating

Re: Creating clone of a HDD including boot partition

2010-12-15 Thread Warren Block
On Wed, 15 Dec 2010, bsd wrote: Is there a way to dd to a file to create an iso image and then restore (still using dd from this image). I only have one IDE <--> USB cable so this is the reason why It'd more simple for me to create an iso image of the disk and then restore. Use dd's of= para

Re: Creating clone of a HDD including boot partition

2010-12-15 Thread bsd
Just to be precise, I am not trying to do an ISO image of a running root FS, but of a USB attached disk. … Le 15 déc. 2010 à 16:45, Giorgos Keramidas a écrit : > On Wed, 15 Dec 2010 16:11:45 +0100, bsd wrote: >> Is there a way to dd to a file to create an iso image and then restore >> (stil

Re: Creating clone of a HDD including boot partition

2010-12-15 Thread Giorgos Keramidas
On Wed, 15 Dec 2010 16:11:45 +0100, bsd wrote: > Is there a way to dd to a file to create an iso image and then restore > (still using dd from this image). I only have one IDE <--> USB cable > so this is the reason why It'd more simple for me to create an iso > image of the disk and then restore.

Re: Creating clone of a HDD including boot partition

2010-12-15 Thread bsd
écrit : > >> From owner-freebsd-questi...@freebsd.org Tue Dec 14 09:01:02 2010 >> From: nagios >> Date: Tue, 14 Dec 2010 15:42:42 +0100 >> To: Liste FreeBSD >> Subject: Creating clone of a HDD including boot partition >> >> Hello, >> >> I h

Re: Creating clone of a HDD including boot partition

2010-12-15 Thread Warren Block
On Wed, 15 Dec 2010, Polytropon wrote: On Wed, 15 Dec 2010 02:00:15 -0600 (CST), Robert Bonomi wrote: What would be your suggested method to achieve this goal. *IF* the disks are the same size/geometry, then simply dd(1) from one raw device to the other. Also works if the target disk is l

Re: Creating clone of a HDD including boot partition

2010-12-15 Thread Polytropon
On Wed, 15 Dec 2010 02:00:15 -0600 (CST), Robert Bonomi wrote: > > What would be your suggested method to achieve this goal. > > *IF* the disks are the same size/geometry, then simply dd(1) from one raw > device to the other. And if it's not, use the recommended standard transfer method of dump

Re: Creating clone of a HDD including boot partition

2010-12-15 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Tue Dec 14 09:01:02 2010 > From: nagios > Date: Tue, 14 Dec 2010 15:42:42 +0100 > To: Liste FreeBSD > Subject: Creating clone of a HDD including boot partition > > Hello, > > I have setup a tailored made configuration

Re: Creating clone of a HDD including boot partition

2010-12-14 Thread Jorge Biquez
Hello. A couple of months I had the same issue to solve... with HDD of my laptop one of you guys, thanks, recommend to use clonezilla or clonezilia, it is in sourgeforce projects if I am not wrong. Woked like a charm, 1 bot sector, diferent OS partitions took some hours but worked pe

Re: Creating clone of a HDD including boot partition

2010-12-14 Thread Mike Jeays
Put it in a USB enclosure, and run dd in=/dev/sourcedisk out=/dev/targetdisk bs=1M Drink coffee until done. On Tue, 14 Dec 2010 15:42:42 +0100 nagios wrote: > Hello, > > I have setup a tailored made configuration (1 UFS partition + 1 swap + boot > sectors) for some hardware that I am resell

Creating clone of a HDD including boot partition

2010-12-14 Thread nagios
Hello, I have setup a tailored made configuration (1 UFS partition + 1 swap + boot sectors) for some hardware that I am reselling and would like to clone one existing HDD (tailor made) and be able to dump to another new HDD. System is running pfSense with FreeBSD 7.2 and soon 8.x What would