What I do is backup the MBR and partitions separately. Usually voyage (or sometimes open-wrt) do not take up the whole CF card.
dd if=/dev/sda of=/path/to/alix.MBR.img count=1 bs=446 This copies the MBR but not the partition table (I do not always have the same partition layout). Then I backup the voyage install ddrescue /dev/sda1 /path/to/alix.sda1.img When restoring I partition the new card, and then copy the MBR and backed up partition. I create any secondary partitions after this step. dd if=/path/to/alix.MBR.img of=/dev/sdb count=1 bs=446 ddrescue /path/to/alix.sda1.img /dev/sdb1 The reason I do this is that I have a number of differently sized cards, but in almost all cases the voyage or open-wrt install is a couple of hundred megs while the CF cards are usually between 2 and 8 GB. I can use the same image on all these cards without worrying too much about the total size of the CF cards. If you want to backup the whole drive and you are sure that the drives are exactly the same (even though they are both 8 GB, they may not be exactly the same, down to the last byte), I usually just use ddrescue. Your situation indicates that GRUB is corrupt. You may be able to just copy the MBR from the old CF to the new. dd if=/dev/sda of=/path/to/alix.MBR.img count=1 bs=446 and then reverse that to copy it to the new CF card. Failing that, try using ddrescue to image the whole CF card. Hth, On 10-08-31 04:29 AM, Pfau, Jens (SMT GmbH) wrote: > Yes it´s the same machine. I use new Kingston 8GB CF-Cards (CF/8GB). The > machine mout the CF-Card on /dev/sda every time. > > Thanks > > Jens Pfau > > Von: Thierry MUSEUX - www.fwt.fr - [mailto:t...@fwt.fr] > Gesendet: Dienstag, 31. August 2010 11:24 > An: 'Pfau, Jens (SMT GmbH)' > Betreff: RE: [Voyage-linux] Problem to make a backup from CF-Card > > > > You mean on the same machine voyage.update works fine, dd fails ? > > > > Do you use the same CF ? > > > > Verify that fdisk shows the same C /H/S in the both case > > > > Thierry Museux > France Wireless Technologies > <http://www.fwt.frmsn> www.fwt.fr > msn: <mailto:t...@fwt.fr> t...@fwt.fr > Tel: + 33 (0) 1 41 08 70 78 > Gsm: + 33 (0) 6 15 22 09 62 > > De : Pfau, Jens (SMT GmbH) [mailto:j.p...@smt.de] > Envoyé : mardi 31 août 2010 11:06 > À : t...@fwt.fr > Cc : voyage-li...@voyage.hk > Objet : AW: [Voyage-linux] Problem to make a backup from CF-Card > > > > Hi Thierry, > > I have a machine with an USB-Card Reader to install the voyage linux on the > CF-Card. With the same machine (same slot) i would make the copy. The > machine where the linux run after the installation is an PC Engines ALIX > 2d13 Board. After the installation with voyage.update voyage boot without > problems. > > > > Jens Pfau > > > > _____ > > Von: Thierry MUSEUX - www.fwt.fr - [mailto:t...@fwt.fr] > Gesendet: Dienstag, 31. August 2010 10:50 > An: 'Pfau, Jens (SMT GmbH)' > Cc: voyage-li...@voyage.hk > Betreff: RE: [Voyage-linux] Problem to make a backup from CF-Card > > Hi jens, > > Could you verify that the geometry shows by each machine is the same ? > C/H/S ? > > > > > > Regards. > > > > > > Thierry Museux > France Wireless Technologies > <http://www.fwt.frmsn> www.fwt.fr > msn: <mailto:t...@fwt.fr> t...@fwt.fr > Tel: + 33 (0) 1 41 08 70 78 > Gsm: + 33 (0) 6 15 22 09 62 > > De : voyage-linux-bounces+tm=fwt...@list.voyage.hk > [mailto:voyage-linux-bounces+tm=fwt...@list.voyage.hk] De la part de Pfau, > Jens (SMT GmbH) > Envoyé : mardi 31 août 2010 10:32 > À : 'Jordi Soucheiron'; 'Sean' > Cc : voyage-li...@voyage.hk > Objet : AW: [Voyage-linux] Problem to make a backup from CF-Card > > > > Hello Jordi, > > Hello Community, > > > > sorry for the late reply, but I was on vacation. > > > > The Card is in the same drive as the installation of Voyage Linux. I copy > the card with dd if=/dev/sda of=alix.img an restore this Image on a new card > with the same size in the same drive with the command dd if=alix.img > of=/dev/sda. After the copy i put the Car in the CF-Slot on PC-Engines > Alix-Board and start this. > > > > After the boot screen there is is only the word Grub with no possibilty of > an input. > > > > What´s wrong how can i make bootable image? > > > > Jens Pfau > > > > > > _____ > > Von: voyage-linux-bounces+j.pfau=smt...@list.voyage.hk > [mailto:voyage-linux-bounces+j.pfau=smt...@list.voyage.hk] Im Auftrag von > Jordi Soucheiron > Gesendet: Freitag, 20. August 2010 08:41 > An: Sean > Cc: voyage-li...@voyage.hk > Betreff: Re: [Voyage-linux] Problem to make a backup from CF-Card > > Are you copying just the partition or the full CF? > Are you sure that both cards have the same size? > > Jordi Soucheiron > Software Engineer > > DEXMA > Parc Tecnològic la Salle > Sant Joan de la Salle, 42 > 08022 Barcelona > t/f: [+34] 93 181 01 96 > <http://www.dexmatech.com> www.dexmatech.com > <mailto:jsouchei...@dexmatech.com> jsouchei...@dexmatech.com > > 2010/8/20 Sean <kn...@toaster.net> > > Jens, > > Have you seen this wiki document that I wrote? It should explain some things > to you. This may be your issue. > > http://wiki.voyage.hk/dokuwiki/doku.php?id=how_do_i_make_an_image_that_i_can > _write_to_a_cf_card > > Sean > > > > On 08/19/2010 05:30 AM, Pfau, Jens (SMT GmbH) wrote: > > Hallo, > > i have a problem when i make a image from a cf card with voyage linux. > > I make the image with dd Command after rewrite the image to another cf card > the system will not boot. > After the bios screen there are only the word "Grub" on the screen. > > What´s the problem? > > Thank you > > Jens > > > _______________________________________________ > Voyage-linux mailing list > Voyage-linux@list.voyage.hk > http://list.voyage.hk/mailman/listinfo/voyage-linux > > > _______________________________________________ > Voyage-linux mailing list > Voyage-linux@list.voyage.hk > http://list.voyage.hk/mailman/listinfo/voyage-linux > > > > > > > > _______________________________________________ > Voyage-linux mailing list > Voyage-linux@list.voyage.hk > http://list.voyage.hk/mailman/listinfo/voyage-linux
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux