Reply
Thread Tools
Posts: 244 | Thanked: 10 times | Joined on Jan 2007
#71
I backup my system easily. I boot into flash, mount my ext2 in /opt..then
cd /opt
/tar-true/bin/tar -cvzf /media/mmc2/backup.tar.gz *

Your milage may vary.. and you may not have extracted tar to /tar-true.. but you get the idea I hope.. oh and I have tested this by formating and untaring over the partitions.. again mount the ext2 on /opt
cd /opt
/tar-true/bin/tar -xvzf /media/mmc2/backup.tar.gz

and there you have it.
 
sebastian.linux's Avatar
Posts: 91 | Thanked: 2 times | Joined on Jan 2007 @ Spain
#72
Originally Posted by screener View Post
i did all the steps so if the OS copy thing is in that place .. . yes i did but how can i make sure ??
If you've boot from mmc, when you run 'df' you'll find a lot of space on /
 
maxilogan's Avatar
Posts: 701 | Thanked: 21 times | Joined on Feb 2006 @ Italy
#73
Originally Posted by fanoush View Post
http://maemo.org/maemowiki/HowTo_BootRootFSFromMMC
"As the jffs2 flash filesystem uses compression you need bigger partition on MMC to hold same data. 128MB is too small, at least 256MB is recommended to have similar space as with original flash rootfs."
I just didn't catch this, sorry if I complained...

tommorrow evening i'll be far from home and withnlots of free time: time to repartition again
__________________
--
Does life seem worthwhile to you?
 
sebastian.linux's Avatar
Posts: 91 | Thanked: 2 times | Joined on Jan 2007 @ Spain
#74
Originally Posted by schmots View Post
ext3 is supposed to be more stable. However in its normal use it does have journaling.. good on a standard system.. not so good on flash. Howerver you can turn off the journaling function and just have the more robust filesystem. I just wondered if anyone had done this and what options they wound up using.
I think you're looking for this:
http://www.internettablettalk.com/fo...3&postcount=35
 
maxilogan's Avatar
Posts: 701 | Thanked: 21 times | Joined on Feb 2006 @ Italy
#75
oh, BTW, the results of df are as follows:

$ df

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mmcblk0p2 2048 2048 0 100% /mnt/initfs
none 512 44 468 9% /mnt/initfs/tmp
/dev/mmcblk0p2 172009 135794 27334 83% /
none 512 44 468 9% /tmp
none 1024 44 980 4% /dev
/dev/mmcblk0p1 823972 636216 187756 77% /media/mmc1
__________________
--
Does life seem worthwhile to you?
 
sebastian.linux's Avatar
Posts: 91 | Thanked: 2 times | Joined on Jan 2007 @ Spain
#76
Originally Posted by maxilogan View Post
$ df
/dev/mmcblk0p2 172009 135794 27334 83% /
/dev/mmcblk0p1 823972 636216 187756 77% /media/mmc1
As you may see, your rootfs is on /dev/mmcblk0p2. This device corresponds to ext2 partition of mmc. Since the device corresponding for internal flash memory is /dev/mtdblock4.

As you may also see, mmcblk0p2 is almost full. Though 124MB was enough for flash memory, you must think that all data was compressed via jffs2. In an ext2 partition, data is not compressed, so the system is double faster, but it also needs double space. I'd recommend you partition the mmc giving the maximum space to the ext2, in order to have enough space to fill with all kind of applications. Or at least 50%-50%.
 
Posts: 108 | Thanked: 3 times | Joined on Feb 2007
#77
I booted from the mmc as the menu ttold me

i got this:

~ $ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock4 2048 1804 244 88% /mnt/initfs
none 512 72 440 14% /mnt/initfs/tmp
/dev/mtdblock4 257536 148576 108960 58% /
none 512 72 440 14% /tmp
none 1024 56 968 5% /dev
/dev/mmcblk0p1 489688 56 489632 0% /media/mmc2
__________________
Life is HARD . . . Fight Harder
You Just Might Be SomeOne Big Just Before You Die!
 
sebastian.linux's Avatar
Posts: 91 | Thanked: 2 times | Joined on Jan 2007 @ Spain
#78
Originally Posted by screener View Post
I booted from the mmc as the menu ttold me

i got this:
Hi screener. Your result's pretty weird... I think you've mixed things. Please report the result of:
$ cat /etc/fstab
$ cat /etc/mtab
 
sebastian.linux's Avatar
Posts: 91 | Thanked: 2 times | Joined on Jan 2007 @ Spain
#79
Originally Posted by fanoush View Post
Yes, you can snapshot system via GNU tar in similar way like you clone the system on the beginning - boot from flash, mount ext2 partition to /opt and then
Code:
/path/to/gnu/tar -zcvf /media/mmc1/snapshot.tar.gz -C /opt .
Dot on the end is important :-)
I've already done it. It's a 200MB compressed tar file. Now, let's suppose this scenario:
My mmc breaks down. I can't boot from mmc anymore. So that I buy a new mmc and boot from flash. I partition mmc in two parts: one vfat, and the other one ext2. Now comes the question:

What exact code should I type to recover the backuped system? Supposing I backuped it with this code:
# /path/to/GNU/tar -zcvf /media/mmc1/snapshot.tar.gz -C /opt .

Thank you for your help.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#80
Originally Posted by sebastian.linux View Post
What exact code should I type to recover the backuped system? Supposing I backuped it with this code:
# /path/to/GNU/tar -zcvf /media/mmc1/snapshot.tar.gz -C /opt .

Thank you for your help.

Code:
# /path/to/GNU/tar -zxvf /media/mmc1/snapshot.tar.gz -C /opt
or

Code:
# cd /opt
# /path/to/GNU/tar -zxvf /media/mmc1/snapshot.tar.gz
-v is optional, it produces listing of files (which may slow things down a bit)
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:50.