Thread: PRS-T1 getting adb working
View Single Post
Old 02-25-2012, 10:24 AM   #46
j0534ng31
Connoisseur
j0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheese
 
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
Quote:
Originally Posted by xuyn2003 View Post
Finally I found that when "install-recovery.sh" is running, the sdcard had not been mounted yet. Because install-recovery.sh can mkdir in /data but can't mkdir in /mnt/sdcard,
then the question is, how to mount the sdcard in install-recovery.sh?

Thanks uboot.
This is not very difficult...

I did it adding this just before the mount command:
Code:
if ! ( grep -c "/mnt/sdcard" /proc/mounts ); then
   sleep 10
   if ! ( grep -c "/mnt/sdcard" /proc/mounts ); then
      sleep 10
      if ! ( grep -c "/mnt/sdcard" /proc/mounts ); then
         sleep 10
      fi
   fi
fi
j0534ng31 is offline   Reply With Quote