Re: Copy root partition to another machine

2011-11-07 Thread Raimo Niskanen
On Mon, Nov 07, 2011 at 04:03:37PM +0100, Otto Moerbeek wrote: > On Mon, Nov 07, 2011 at 03:54:14PM +0100, Benny Lofgren wrote: > > > On 2011-11-06 21.42, David Vasek wrote: > > > On Sun, 6 Nov 2011, Benny Lofgren wrote: > > >> On 2011-11-06 18.00, Bambero wrote: > > >>> Thanks, but without skip=1

Re: Copy root partition to another machine

2011-11-07 Thread Otto Moerbeek
On Mon, Nov 07, 2011 at 03:54:14PM +0100, Benny Lofgren wrote: > On 2011-11-06 21.42, David Vasek wrote: > > On Sun, 6 Nov 2011, Benny Lofgren wrote: > >> On 2011-11-06 18.00, Bambero wrote: > >>> Thanks, but without skip=1 dd will copy partition table and mbr too > >>> (first block 521b). > >>> S

Re: Copy root partition to another machine

2011-11-07 Thread Benny Lofgren
On 2011-11-06 21.42, David Vasek wrote: > On Sun, 6 Nov 2011, Benny Lofgren wrote: >> On 2011-11-06 18.00, Bambero wrote: >>> Thanks, but without skip=1 dd will copy partition table and mbr too >>> (first block 521b). >>> So it may damage my partition table on second machine. I'm I wrong ? >> >> No

Re: Copy root partition to another machine

2011-11-06 Thread David Vasek
On Sun, 6 Nov 2011, Benny Lofgren wrote: On 2011-11-06 18.00, Bambero wrote: Thanks, but without skip=1 dd will copy partition table and mbr too (first block 521b). So it may damage my partition table on second machine. I'm I wrong ? No, you will not copy the partition table with your command

Re: Copy root partition to another machine

2011-11-06 Thread Benny Lofgren
On 2011-11-06 18.00, Bambero wrote: > Thanks, but without skip=1 dd will copy partition table and mbr too > (first block 521b). > So it may damage my partition table on second machine. I'm I wrong ? No, you will not copy the partition table with your command, since you are using wd0a. That partiti

Re: Copy root partition to another machine

2011-11-06 Thread Marc Smith
Well, to me the point of using DD is to save everything in one file: filesystem, boot sectors, etc. Otherwise I'd probobly use dump, as someone else suggested, or other backup tool. Saving additional info [MBR, PBR] is not a problem, you can always restore your system using 'skip' parameter [sk

Re: Copy root partition to another machine

2011-11-06 Thread Bambero
Thanks, but without skip=1 dd will copy partition table and mbr too (first block 521b). So it may damage my partition table on second machine. I'm I wrong ? On Fri, Nov 4, 2011 at 6:25 PM, Marc Smith wrote: > dd if=/dev/wd0a of=root.img bs=32m [or compress it using: dd > if=/dev/wd0a bs=32m | gzi

Re: Copy root partition to another machine

2011-11-04 Thread Norman Golisz
On Fri Nov 4 2011 17:43, Bambero wrote: > Hello > > I want to copy my root partition to another with dd without ssh. Is > this correct: > > 1. On first machine: > dd if=/dev/rwd0a of=root.img bs=16b skip=1 conv=noerror > > 2. On second machine: > dd if=root.img of=/dev/rwd0a bs=16b seek=1 > >

Re: Copy root partition to another machine

2011-11-04 Thread Josh Grosse
Bambero gmail.com> writes: > > Hello > > I want to copy my root partition to another with dd without ssh. Is > this correct: > > 1. On first machine: > dd if=/dev/rwd0a of=root.img bs=16b skip=1 conv=noerror > > 2. On second machine: > dd if=root.img of=/dev/rwd0a bs=16b seek=1 > > May/shoul

Re: Copy root partition to another machine

2011-11-04 Thread Marc Smith
dd if=/dev/wd0a of=root.img bs=32m [or compress it using: dd if=/dev/wd0a bs=32m | gzip > root.img.gz] and dd if=root.img of=/dev/wd0a bs=32m [decompression: gzip -d -c root.img.gz | dd of=/dev/wd0a bs=32m] And yes, you can ommit additional values. Dnia piD, 4 lis 2011, 17:43:28 Bambero pisz

Copy root partition to another machine

2011-11-04 Thread Bambero
Hello I want to copy my root partition to another with dd without ssh. Is this correct: 1. On first machine: dd if=/dev/rwd0a of=root.img bs=16b skip=1 conv=noerror 2. On second machine: dd if=root.img of=/dev/rwd0a bs=16b seek=1 May/should I ommit seek, skip, conv, bs parameters ? Regards, B