younglo / cyanogenmod4milestone

Automatically exported from code.google.com/p/cyanogenmod4milestone
0 stars 0 forks source link

Openrecovery Nandroid Backup #780

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
! This is an issue tracker, not a helpdesk !

OpenRecovery_2ndbootOR_v1_1

The backup of the ext partition doesn't work. It fails in the nandroid backup 
script on remounting the partition because the information about mounting is 
missing from /etc/fstab

What did you do trying to solve the problem?

I have modified /sdcard/OpenRecovery/etc/fstab.SHOLS, 
/sdcard/OpenRecovery/etc/fstab.STCU and /sdcard/OpenRecovery/etc/fstab.STR by 
adding:

/dev/block/mmcblk0p2  /sddata  auto  defaults  0 0 

Original issue reported on code.google.com by justc...@gmail.com on 6 Nov 2012 at 6:25

GoogleCodeExporter commented 8 years ago
/etc/fstab is patched during OpenRecovery start-up by 
/sdcard/OpenRecovery/bin/post_switch.sh script

/dev/block/mmcblk0p2  /sddata  auto  defaults  0 0
That line is automatically added if there is 2nd partition on sdcard present

The backup of ext partition seems to work fine for me.
There is /cache/recovery/open_recovery_log (it's accessible only while in 
recovery) that can be examined to see why something fails

Original comment by kabal...@gmail.com on 6 Nov 2012 at 8:42

GoogleCodeExporter commented 8 years ago
The error only acts up if you restart from a normal runnig OS with 
Reboot->Recovery. Even than the partition is mounted, but the info isn't 
written in /etc/fstab. If restarted with X key pressed, all works as it should.

In the log file there isn't anything that could help. I can attach a grepped 
version of it, but I don't think it will make any difference (I have removed 
the ^Row and ^minzip lines)

Original comment by justc...@gmail.com on 6 Nov 2012 at 12:53