I'm discovering more and more stuff.
I understood where the mount problem was.
vfat doesn't support the check option (=>Invalid argument error).
That's why I could mount
/sdcard and
/emmc from adb but not from CWM.
CWM uses
/etc/recovery.fstab, while if you simply mount from adb,
/etc/fstab is the file used (yes, it's generated from recovery.fstab, but the check option is removed).
Does anyone know what is this used for?
https://github.com/XDA-Bam/samsung_...F-root_universal/sbin/postrecoveryboot.sh#L19
I removed it from my ramdisk and I had no problems. Actually I commented all the lines in that file, except the last one (
umount /dbdata, I don't know why it's there).
I think amit added this script because without it he couldn't do any backup, at least without mounting /emmc and /sdcard through adb shell.
This is the new
[URL="http://pastebin.com/raw.php?i=vVwqJPQb]res/etc/recovery.fstab[/URL]
The
[decive2] field is not useful for us, so I removed it. If you try to backup into the external SD when there's no SD, it simply won't work. (the backup starts anyway). In this case you should get this:
By the way the first solution (the old recovery.fsta) worked because I swapped /sdcard and /emmc in a tricky way.
Now you can mount/umount and do your backups without problems.