![]() |
2009-05-30
, 11:49
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#2
|
![]() |
2009-06-11
, 18:00
|
Posts: 678 |
Thanked: 197 times |
Joined on Jul 2007
@ San Jose CA
|
#3
|
This script actually copies source to destination.
Just make sure what we agree on
So we can clone (more precisely copy) :
- internal flash -> internal SD
- internal flash -> external SD
- internal SD -> external SD
- external SD -> internal SD
It will only run under root ( rootsh is here)
It will try to get e2fsprogs package but you should do that prior running this script.
It will not set up bootmenu. You should install bootmenu before cloning.
It will assume that the second partition is for installing linux (in case you don't want the script partitioning/formatting your destination card)
It will be able to partition/format the SD without cloning. Just run the script, select the dst SD and src then ignore the cloning part (only the dst SD is important and when it asks to shutdown please say yes! and run it again next time until it says Jobs done! ) So the script can be used as a simple sfdisk!
xterm gainroot mv clone.txt clone.sh chmod +x clone.sh ./clone.sh
If someone likes to improve it; please do so and post it back here so we can use it!!!!
![]() |
2009-06-11
, 18:26
|
|
Posts: 1,028 |
Thanked: 578 times |
Joined on Mar 2009
@ Chicago
|
#4
|
The Following User Says Thank You to JayOnThaBeat For This Useful Post: | ||
![]() |
2009-06-12
, 11:38
|
Posts: 263 |
Thanked: 77 times |
Joined on Jan 2009
@ Sigtuna, Sweden
|
#5
|
The Following User Says Thank You to KristianW For This Useful Post: | ||
![]() |
2009-06-13
, 20:18
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#6
|
![]() |
2009-06-13
, 21:52
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#7
|
The Following User Says Thank You to bunanson For This Useful Post: | ||
![]() |
2009-06-14
, 12:53
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#8
|
The Following User Says Thank You to bunanson For This Useful Post: | ||
![]() |
2009-06-14
, 13:48
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#9
|
I would definitely try this, but both my internal and external cards are full!
Awesome work guys!
![]() |
2009-06-14
, 18:13
|
Posts: 1,950 |
Thanked: 1,174 times |
Joined on Jan 2008
@ Seattle, USA
|
#10
|
The Following User Says Thank You to GeraldKo For This Useful Post: | ||
To freely clone/copy/backup between SD1 and SD2, now include reverse clone back to internal Flash
Prerequisite (only have to do it once):
partition (8 G SD in external slot, behind the kick stand, not the one with the battery compartment)
xterm
gainroot
umount /media/mmc1
sfdisk /dev/mmcblk1 -uM
0,6900,0C
,,,
(Return)
(Return)
This will give you 6.7G FAT2 for your storage and 0.9 G for your OS
reboot
format (SD in external slot, behind the kick stand, not the one with the battery compartment); will need to do it eveytime to clone)
xterm
gainroot
umount /media/mmc1
mkdosfs /dev/mmcblk1p1
mke2fs /dev/mmcblk1p2
reboot
Either copy the commands here, line by line, http://talk.maemo.org/showthread.php...407#post289407, thread #46
or better to avoid typo, download nhanquy's script cpxx.txt to default folder /home/user/, http://talk.maemo.org/showthread.php...273#post288273, thread #3
boot up from internal flash
xterm
gainroot
cd /root
cp /home/user/cpxx.txt /root/cpxx.sh
chmod +x cpxx.sh
Prerequisite: the target SD ext2 is similarl or larger than the source, and already formatted and partitioned
this one is for mmc2 to copy to mmc1. 2 is the source and 1 is the target. If you cannot follow this, you need to stop here
./cpxx.sh
and option 3
If you have 2 SDs of the same partition/capacity, you can clone/copy at will, back and forth, and keep refining the OS to your likeness. Of course, you cannot do this with cloning from the internal flash as it is limited by the 256 MB capacity.
When we first started, we cloned from internal flash to SD and made SD boot...However, after awhile, internal flash no longer able to hold our appetites, 256MB is really too small, I found out I rarely boot to internal flash nowaday, I permanently boot to SD, as a result, clones between the disk is becoming a necessity. Plus the fact, with modifying things on the SD boot, my actual work horse, backup/cloning between SDs comes real handy.
Would this work on N810? It should, as long as the preformatted ext2 partition, again, is target equal or larger than the source. Would I recommend it? Some reservation, as MMC2 in the N810 is not removable.
Finally, linux guru may he-ha about this little app script, basically it is just several lines of command put together... well, for the linux-challenged bunanson, this is god-send.
Enjoy, and thank nhanquy,
Edit: This is a work in progress, please see latest thread for most recent changes
bun
WorldTV99, WorldTV99forN900, more, VCURLs72, Shortcuts; complete backup; gvm software; 2007He; LiveTV;
DualBoot
Last edited by bunanson; 2009-08-26 at 21:26.