View Single Post
Posts: 31 | Thanked: 32 times | Joined on Jan 2008 @ Helsinki
#4
Originally Posted by fanoush View Post
If you don't have modified initfs already installed then it is hard to install it on non-booting device. Still it is possible. Depends on how important the file is, see
http://www.gossamer-threads.com/lists/maemo/users/32921
Thanks for the link fanoush! I looked into it, and it does seem possible. However the N810 does not seem to be fully supported yet with initfs_flasher.

But I decided to go another way. I opened up the initfs and added lines to linuxrc:

Code:
mount -t jffs2 /dev/mtdblock4 /mnt/mtdblock4

mount /dev/mmcblk0p1 /mnt/mmcblk0p1
mount /dev/mmcblk1p1 /mnt/mmcblk1p1
mount /dev/mmcblk1p2 /mnt/mmcblk1p2

cp -r /mnt/mtdblock4/home /mnt/mmcblk0p1
cp -r /mnt/mtdblock4/home /mnt/mmcblk1p1
cp -r /mnt/mtdblock4/home /mnt/mmcblk1p2

umount /mnt/mtdblock4

umount /mnt/mmcblk0p1
umount /mnt/mmcblk1p1
umount /mnt/mmcblk1p2
The idea behind that is to guess where the user files reside and copy them over to the memory card (the device which I also had to guess as I can't boot the device). While that copied something from /home/user to the mmc card, I couldn't find my files.

Could somebody help me and tell me which partition to mount, and what the correct directory is, so I could find the user's files? I would then be able to flash an initfs that does the copying...

And yes, the file is really important, as you may have guessed