B2G icon indicating copy to clipboard operation
B2G copied to clipboard

/sdcard doesn't seem to be auto-mounted in b2g-gonk

Open joneschrisg opened this issue 13 years ago • 9 comments

cjones@scar:~/mozilla/firmware$ adb shell ls /sdcard cjones@scar:~/mozilla/firmware$ adb shell mount rootfs on / type rootfs (ro,relatime) tmpfs on /dev type tmpfs (rw,relatime,mode=111) devpts on /dev/pts type devpts (rw,relatime,mode=600) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) none on /acct type cgroup (rw,relatime,cpuacct) tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000) tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000) tmpfs on /mnt/usb type tmpfs (rw,relatime,mode=755,gid=1000) tmpfs on /app-cache type tmpfs (rw,relatime,size=7168k) none on /dev/cpuctl type cgroup (rw,relatime,cpu) /dev/block/mmcblk0p9 on /system type ext4 (ro,relatime,barrier=1,data=ordered) /dev/block/mmcblk0p7 on /cache type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered) /dev/block/mmcblk0p1 on /efs type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered) nil on /sys/kernel/debug type debugfs (rw,relatime) /dev/block/mmcblk0p10 on /data type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered,noauto_da_alloc,discard)

Not sure what's wrong. We obviously want to mount the sdcard partition.

joneschrisg avatar Dec 14 '11 06:12 joneschrisg

  1. internal sdcard mount failure: There are 12 partitions in mmcblk0, but vold defines MAX_PARTITIONS to 4 and mPendingPartMap types as uchar. With modifications to the two definitions, command vdc volume mount /mnt/sdcard can mount it successfully.

  2. external sdcard mount failure: Destination folder /mnt/emmc does not exist. Do:

mkdir /mnt/emmc

chown system.system /mnt/emmc

chmod 000 /mnt/emmc

Then command vdc volume mount /mnt/emmc can mount it successfully.

  1. There seems no one instructs vold to mount the two volumes. In original Android, these are done in java MountService.

vicamo avatar Feb 03 '12 04:02 vicamo

Required changes: https://github.com/michaelwu/clockworkmod_galaxys2_initramfs/pull/2 https://github.com/vicamo/android_platform_system_vold/commit/054fb3155ea18c95629600da8e5540bb97ee825f (need to fork system/vold)

vicamo avatar Feb 03 '12 09:02 vicamo

@vicamo just getting the internal sdcard mounted is good enough for now. Let's worry about hot-swapping external storage later.

joneschrisg avatar Feb 04 '12 02:02 joneschrisg

@vicamo I just gave you push access to the https://github.com/mozilla-b2g . You can fork system/vold under that account and apply your patch there.

joneschrisg avatar Feb 04 '12 02:02 joneschrisg

@cgjones I've create another pull request #161 for this project. To be summarized,

  • michaelwu/clockworkmod_galaxys2_initramfs/pull/2: merged by @michaelwu
  • andreasgal/B2G/pull/161: waiting for review/verification

vicamo avatar Feb 06 '12 04:02 vicamo

@michaelwu boot/clockworkmod_galaxys2_initramfs haven't got updated in B2G submodule since #f857321. Should I submit another pull request?

vicamo avatar Feb 08 '12 01:02 vicamo

I'll update it.

michaelwu avatar Feb 08 '12 01:02 michaelwu

thank you :)

vicamo avatar Feb 08 '12 01:02 vicamo

I have a pull request to fix sync error if it was meant to be current HEAD of cwm.

vicamo avatar Feb 08 '12 04:02 vicamo