Re: QtMoko - howto migrate from one partition to another?

2009-09-12 Thread Torfinn Ingolfsen
Hi,

On Thu, Sep 10, 2009 at 4:33 AM, Stefan Monnier monn...@iro.umontreal.cawrote:


 Just be careful to only backup the partition's own files.  I.e. use
 the --one-file-system argument.  Otherwise you might start copying /sys,
 /proc and that will get you into trouble.

 I mounted /dev/mmcblk0p3 on /mnt, and did 'cp -Rpvx /  /mnt'
Now I just need to find out how to boot from p3 with Qi, I thought That
presding the AUX button while the LED was red should do it, but so far that
doesn't want to work for me.

-- 
Regards,
Torfinn Ingolfsen
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QtMoko - howto migrate from one partition to another?

2009-09-12 Thread Matthias Huber
Torfinn Ingolfsen schrieb:
 Hi,

 On Thu, Sep 10, 2009 at 4:33 AM, Stefan Monnier
 monn...@iro.umontreal.ca mailto:monn...@iro.umontreal.ca wrote:


 Just be careful to only backup the partition's own files.  I.e. use
 the --one-file-system argument.  Otherwise you might start copying
 /sys,
 /proc and that will get you into trouble.

 I mounted /dev/mmcblk0p3 on /mnt, and did 'cp -Rpvx /  /mnt'
 Now I just need to find out how to boot from p3 with Qi, I thought
 That presding the AUX button while the LED was red should do it, but
 so far that doesn't want to work for me.

i make my backups always with rsync on the mmc.

but with the real rsync, not with busybox.

here is my script:

#!/bin/sh -x
cd /
rsync -avulH --del --exclude=/home/root/Maps --exclude=boot/*
--exclude=Maps/* --exclude=sicherung/* --exclude=media/* --exclude=sys/*
--exclude=dev/* --exclude=proc/* * /media/disk/shr/
2/media/disk/sicherung/fehler.txt

echo errors are in /media/disk/sicherung/fehler.txt

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


QtMoko - howto migrate from one partition to another?

2009-09-09 Thread Torfinn Ingolfsen
Hi,

My current setup fr QtMoko is like this: I have QtMoko v8 installed on p2 of
the Sdcard (root=/dev/mmcblk0p2).
And I have a backup partition on /dev/mmcblk0p3.
Before I upgrade p2 to QtMoko v9, I wish to migrate everything from there to
p3.

Can I just use cp or tar while I am booted in QtMoko v8 to copy everything
over?
Or do I have to perform some more advanced magic?

-- 
Regards,
Torfinn Ingolfsen
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QtMoko - howto migrate from one partition to another?

2009-09-09 Thread Radek Polak
Torfinn Ingolfsen wrote:

 My current setup fr QtMoko is like this: I have QtMoko v8 installed on
 p2 of the Sdcard (root=/dev/mmcblk0p2).
 And I have a backup partition on /dev/mmcblk0p3.
 Before I upgrade p2 to QtMoko v9, I wish to migrate everything from
 there to p3.
 
 Can I just use cp or tar while I am booted in QtMoko v8 to copy
 everything over?
 Or do I have to perform some more advanced magic?

I think tar or cp will not work well on partition you have booted from.
Files can change during copy and you have /proc and /sys mounted.
Best way is to put the card in PC or boot from NAND to make copy. Or
install QtMoko v9 to mmcblkp3, boot it and backup mmcblk0p2 from there.

Regards

Radek


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QtMoko - howto migrate from one partition to another?

2009-09-09 Thread Stefan Monnier
 Can I just use cp or tar while I am booted in QtMoko v8 to copy everything
 over?

Yes.  Some of the files may change while you copy them over, but as long
as *you* don't actively modify important files during the copy, the
files that change won't make a difference (they'll be things like syslog
files).

 Or do I have to perform some more advanced magic?

Just be careful to only backup the partition's own files.  I.e. use
the --one-file-system argument.  Otherwise you might start copying /sys,
/proc and that will get you into trouble.


Stefan


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community