Reply
Thread Tools
Posts: 326 | Thanked: 335 times | Joined on Feb 2010
#11
Originally Posted by rash.m2k View Post
dd (data definition), copies bytes from if (input file/device) to of (output file/device).

Not sure if it creates a file that can be used with flasher.

It places the file in the directory you run the command from to have it place the file in the memory card set of=/media/mmc1/rootfs.raw
Good ...
So, if i want the "image" of the whole root, i have to use the command [ dd if=/ of=/media/mmc1/rootfs.raw ] .. not?

And how to restore this image ?

@ Kjow and brz : tnx my loved guys
 
Posts: 326 | Thanked: 335 times | Joined on Feb 2010
#12
Originally Posted by rash.m2k View Post
Also creating a dump of emmc should probably not be done - just copy the directories to an ext3 partition to preserve permission info (ext3 memory card perhaps???), otherwise each time you do it you will get a file thats 2GB big, which will wear down the internal flash.

Only opt needs to be copy to ext3, MyDocs can just be backed up on PC as it's just FAT32.
Yes, infact I was referring to the opt partiton
The only one necessary to have a complete backup even of the installed programs

Last edited by Dany-69; 2010-05-18 at 09:41.
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#13
Wouldn't backing up using dd while the system is running cause issues (cause of procfs and sysfs).
It should work in Mer or any other dual boot system though
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 642 | Thanked: 486 times | Joined on Aug 2008
#14
Originally Posted by Dany-69 View Post
Good ...
So, if i want the "image" of the whole root, i have to use the command [ dd if=/ of=/media/mmc1/rootfs.raw ] .. not?

And how to restore this image ?

@ Kjow and brz : tnx my loved guys
NO! / is the root file/folder and EVERYTHING inc memory card, screen, touchscreen, swap space i.e. ALL devices are mapped to some directory underneath root '/', external devices are normally mapped /dev directory (so when something changes on the screen for example maemo writes the changes to a file under /dev and this file is connected to the display which then reads this file and updates the display - at least thats how I understand how Linux works).

So by choosing '/' as the input directory you will write, MyDocs (/home/user/MyDocs) , opts (/home/opt), rootfs etc ALL to the memory card! This is not what you want. You need to chose /dev/mtd5, which is where the INTERNAL 256MB FLASH is mapped to.
 
Posts: 326 | Thanked: 335 times | Joined on Feb 2010
#15
Originally Posted by MohammadAG View Post
Wouldn't backing up using dd while the system is running cause issues (cause of procfs and sysfs).
It should work in Mer or any other dual boot system though
Azz... ... (excuse me for my "italianism" )
No other way ? ..
That's impossible that no one has ever think to do something like this ..
 
Posts: 642 | Thanked: 486 times | Joined on Aug 2008
#16
Originally Posted by MohammadAG View Post
Wouldn't backing up using dd while the system is running cause issues (cause of procfs and sysfs).
It should work in Mer or any other dual boot system though
Oh yeah, that will probably cause some issues - is there anyway to mouse the INTERNAL flash onto a LINUX machine?

If that could be done then it would be brilliant! No more bricked devices, just flash with DD on your PC

I'm looking to you for advice on this one! You're more of an expert on this than me!

Originally Posted by Dany-69 View Post
Yes, infact I was referring to the opt partiton
The only one necessary to have a complete backup even of the installed programs
No not quite - some of the files/libraries/scripts are stored in /opt, BUT where does it store a list of the applications that are installed?? On the rootfs! SO backing up /opt is useless without backing up rootfs.

EDIT:::::::::::::

Could we boot maemo from a memory card like we could with N8xx? Even a basic install with just the x-term working will be enough!

This is interesting:

http://talk.maemo.org/showthread.php?t=36011&page=3

I could have a memory card with a clean maemo install specifcally for when things go wrong - just like I have a bootable linux install for my PC/laptop if it gets screwed up.

EVEN MORE INTERESTING!!!

http://talk.maemo.org/showpost.php?p...0&postcount=45

Last edited by rash.m2k; 2010-05-18 at 10:05.
 
Posts: 326 | Thanked: 335 times | Joined on Feb 2010
#17
Originally Posted by rash.m2k View Post
NO! / is the root file/folder and EVERYTHING inc memory card, screen, touchscreen, swap space i.e. ALL devices are mapped to some directory underneath root '/', external devices are normally mapped /dev directory (so when something changes on the screen for example maemo writes the changes to a file under /dev and this file is connected to the display which then reads this file and updates the display - at least thats how I understand how Linux works).

So by choosing '/' as the input directory you will write, MyDocs (/home/user/MyDocs) , opts (/home/opt), rootfs etc ALL to the memory card! This is not what you want. You need to chose /dev/mtd5, which is where the INTERNAL 256MB FLASH is mapped to.
RIght..
I hadn't focused...
The root contains ALL ...

Originally Posted by rash.m2k View Post
No not quite - some of the files/libraries/scripts are stored in /opt, BUT where does it store a list of the applications that are installed?? On the rootfs! SO backing up /opt is useless without backing up rootfs.
We are saying the same thing...
I meant to do a backup of either root and eMMC... But i got wrong to call it eMMC... i meant only the OPT partition
 
Posts: 326 | Thanked: 335 times | Joined on Feb 2010
#18
Originally Posted by rash.m2k View Post
Could we boot maemo from a memory card like we could with N8xx? Even a basic install with just the x-term working will be enough!

This is interesting:

http://talk.maemo.org/showthread.php?t=36011&page=3

I could have a memory card with a clean maemo install specifcally for when things go wrong - just like I have a bootable linux install for my PC/laptop if it gets screwed up.
Yes... intersting..
But this is a process a bit too "long" for my taste ...
It would be intersting to do this with a program that can access to the N900 during the flash mode pressing the U key ..
 
Posts: 642 | Thanked: 486 times | Joined on Aug 2008
#19
Well I'm going to try booting from memory card - I've got loads of 2GB MicroSD cards lying about.

Just one will do - then I can set mess around with my N900 as much as I like knowing I can just boot from memory card and rewrite rootfs!

I'll give it a try once I get home later tonight.
 
Posts: 326 | Thanked: 335 times | Joined on Feb 2010
#20
Originally Posted by rash.m2k View Post
Well I'm going to try booting from memory card - I've got loads of 2GB MicroSD cards lying about.

Just one will do - then I can set mess around with my N900 as much as I like knowing I can just boot from memory card and rewrite rootfs!

I'll give it a try once I get home later tonight.
You are amiably mad
I hope there won't be problems during flashing the root
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:55.