RE: Cloning a filesystem using the bootldr

From: Hicks, Jamey (Jamey.Hicks@hp.com)
Date: Thu Aug 22 2002 - 14:09:30 EDT


> -----Original Message-----
> From: Mark G. Lewis [mailto:Lewis@erg.sri.com]
> Sent: Thursday, August 22, 2002 2:13 PM
> To: bootldr@handhelds.org
> Cc: Lewis@erg.sri.com
> Subject: [Bootldr] Cloning a filesystem using the bootldr
>
>
> Jamey, Sacha,
>
> Did you ever get this (see below) working as documented in
> http://www.handhelds.org/handhelds-faq/filesystems.html#CLONIN
> G-IPAQS???
>
> Can I use bootldr to save the root partition to a CF memory or
> microdrive?
> I'm using 2.18.48 and it does not seem to work.
>
> Thank you
> Mark
>
>
> Example 6. Cloning a filesystem using the bootldr
> The bootldr can write to CF/IDE partitions or to VFAT
> filesytems. Using
> this mechanism, one can make a copy of the root filesystem image.
> boot> copy input=flash:root output=cfa0:/backup.jffs2
> boot> vfat write 0x50040000 /backup.jffs2

I seem to have changed the syntax since I wrote this. I have definitely used it to install jffs2 images:
  boot> vfat ls
  boot> copy hda1:task-bootstrap.jffs2 root

It should also work for backups:
  boot> copy root hda1:backup.jffs2
with the caveat that bootldr can only update files that already exist -- it cannot make new directory entries. Patches to fix that would be accepted.

Jamey



This archive was generated by hypermail 2.1.5 : Fri Jan 17 2003 - 17:47:04 EST