<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Stanislav:<div><br></div><div> While I agree that cloning your ro system live ought to work, I didn't spend much time on it. Once I have a CF that works OK then I clone offline:</div><div><br></div><div>host# dd if=/dev/sdb of=mycf.bin bs=512 count=3931200</div><div>host# eject /dev/sdb</div><div><switch CF in /dev/sdb to a new one></div><div><format new CF however you like></div><div>host# dd if=mycf.bin of=/dev/sdb bs=512 count=3931200</div><div>host# eject /dev/sdb</div><div><br></div><div>Then the new CF works just fine. You'll have to adjust the count for your device. Is this good enough for you?</div><div><br></div><div> On my last project we went a step further and modified the SDK to produce a regular file from the gitgo, so you directly produce mycf.bin and then dd it to CF whenever you want to
make a copy. Works great in Voyage 0.6.5 and 0.7.5 once you get past a couple of known grub legacy (v0.97) bugs, haven't verified in 0.8.0 yet ...<br><div><br></div><div>--Frank<br><br>--- On <b>Wed, 3/7/12, Stanislav Sinyagin <i><ssinyagin@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Stanislav Sinyagin <ssinyagin@yahoo.com><br>Subject: [Voyage-linux] Cloning a system<br>To: "voyage-linux@list.voyage.hk" <voyage-linux@voyage.hk><br>Date: Wednesday, March 7, 2012, 9:36 AM<br><br><div id="yiv124968088"><div><div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:10pt;"><div>hi,</div><div><br></div><div>I'm trying to clone a live system to a new CF, and GRUB fails. Please advise, as I'm not a too deep specialist in Grub.</div><div><br></div><div>My sequence is as follows. The board is alix2d13 from PC
Engines. The new CF card is attached via USB card reader at /dev/sdb.</div><div><br></div><div>remountro<br>/usr/local/sbin/format-cf.sh -t /dev/sdb -b 1 -y<br>mkdir /tmp/cf<br>mount /dev/sdb1 /tmp/cf<br>cd /tmp/cf<br>dump -f - /dev/hda1 | restore -r -f -<br></div><div><br></div><div><br>That was easy, and now Grub fails:</div><div><br></div><div>root@alix102:~# /usr/sbin/grub-install --root-directory=/tmp/cf /dev/sdb<br>The file /tmp/cf/boot/grub/stage1 not read correctly.</div>root@alix102:~# ls -al /tmp/cf/boot/grub/stage1<br><div>-rw-r--r-- 1 root root 512 Mar 7 17:31
/tmp/cf/boot/grub/stage1<br>root@alix102:~# <br></div><div><br></div><div><br></div><div>The system is 0.8.0 release.<br></div><div></div></div></div></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Voyage-linux mailing list<br><a ymailto="mailto:Voyage-linux@list.voyage.hk" href="/mc/compose?to=Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br><a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br></div></blockquote></div></div></td></tr></table>