View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#15
Originally Posted by apple2 View Post
I am wondering how to make an image of my mmc1 partition. If I do "./targnu cf - -C /media/mmc1 . " will tar preserve the permissions and the files inside /dev/
Why to archive /media/mmc1? To archive live / unix filesystem remount it somewhere else to get rid of /proc /sys etc and then tar and gzip it (dd wastes space by readng also unused blocks).
example - your debian root is on /dev/mmcblk0p2 and you booted from it, you also have big FAT partition mounted to /media/mmc1
Code:
mount /dev/mmcblk0p2 /opt
cd /opt
targnu -zcvf /media/mmc1/debian.tar.gz .
or it is slightly better to archive it while booted from something else. If you don't have enough space on card for the archive, you can run it over ssh and pipe the result directly to file on desktop. Something like
Code:
ssh >archive.tar.gz root@n770 tar -zcvf - -C /opt .
should work but will be slow. Best is perhaps to use card reader and mount it directly on linux PC and tar it without using 770.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.