[Android Q&A, Help & Troubleshooting] MBentefor:
Hello.

I have a Motorola Razr M device, but I guess this (these) question is more global.

Initially it has the following directory structure:

\system - internal ~1,5 gb memory

\data - internal ~5 gb memory

\sdcard - link to \mnt\sdcard

\mnt\sdcard - the fuse mirror of \data\media

\mnt\external1 - external sdcard.

After some manipulations, I've managed to simplify this situation:

1) I've disabled fuse of sdcard.

2) In vold.fstab I've replaced

sdcard /mnt/external1::lun ~auto /devices/platform/msm_sdcc.3/mmc_host

to

sdcard /mnt/sdcard::lun ~auto /devices/platform/msm_sdcc.3/mmc_host

After this I've encountered few problems:

- Settings|Storage menu cause Settings to crash;

- Neither Camera mode nor MTP mode worked when connecting to PC (Mass Storage Mode didn't work also)

After some googling I've found strange hack: I've added

external /mnt/external1 ~auto /data/media

Nothing changed in [mount] output, but everything except [Mass Storage Mode] works.

{This is the first question: is this possible to make MSM work?}

Now when I pull sd card out of my phone, it shows message 'Internal memory unexpectedly removed'. However, when I put it in again, sometimes it MOUNTS it, sometimes it DOESN'T (until restart).

When it didn't mount sdcard automatically, I've tried to do that manually (WITHOUT RESTART). I failed. I've tried different mount commands, all of which showed me 'No such device or address':

mount -w -t vfat /devices/platform/msm_sdcc.3/mmc_host /mnt/sdcard
mount -w -t vfat /dev/block/vold/179:97 /mnt/sdcard
mount -w -t vfat /dev/block/vold/179:96 /mnt/sdcard

and so on.

Actually, I've checked that mmc_host file doesn't exist, but /dev/block/vold/179:97 does! So why does vold's dev_mount works, but manual mounting doesn't? How do I make sdcard automount when reinserted? Or at least accomplish this manually.

THANK YOU FOR ANY RESPONSE GIVEN!

Mountinfo file:

1 1 0:1 / / ro,relatime - rootfs rootfs ro

9 1 0:9 / /dev rw,nosuid,relatime - tmpfs tmpfs rw,mode=755

14 1 0:12 / /mnt/asec rw,relatime - tmpfs tmpfs rw,mode=755,gid=1000

15 1 0:13 / /mnt/obb rw,relatime - tmpfs tmpfs rw,mode=755,gid=1000

27 25 0:16 / /mnt/external1/.android_secure ro,relatime - tmpfs tmpfs ro,size=0k,mode=000

10 9 0:8 / /dev/pts rw,relatime - devpts devpts rw,mode=600

11 1 0:3 / /proc rw,relatime - proc proc rw

12 1 0:10 / /sys rw,relatime - sysfs sysfs rw

13 1 0:11 / /acct rw,relatime - cgroup none rw,cpuacct

16 9 0:14 / /dev/cpuctl rw,relatime - cgroup none rw,cpu

17 1 259:4 / /system ro,relatime - ext4 /dev/block/platform/msm_sdcc.1/by-name/system ro,user_xattr,barrier=1,data=ordered

18 1 259:6 / /data rw,nosuid,nodev,noatime,nodiratime - ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata rw,user_xattr,barrier=0,data=ordered,noauto_da_alloc

19 1 179:22 / /persist rw,nosuid,nodev,relatime - ext4 /dev/block/platform/msm_sdcc.1/by-name/persist rw,user_xattr,barrier=1,data=ordered

20 1 259:3 / /cache rw,nosuid,nodev,noatime,nodiratime - ext4 /dev/block/platform/msm_sdcc.1/by-name/cache rw,user_xattr,barrier=1,data=ordered

21 1 259:2 / /tombstones rw,nosuid,nodev,noatime,nodiratime - ext4 /dev/block/platform/msm_sdcc.1/by-name/tombstones rw,user_xattr,barrier=1,data=ordered

22 1 179:1 / /firmware ro,nosuid,nodev,relatime - ext4 /dev/block/platform/msm_sdcc.1/by-name/modem ro,user_xattr,barrier=1,data=ordered

23 1 179:27 / /pds rw,nosuid,noexec,relatime - ext3 /dev/block/platform/msm_sdcc.1/by-name/pds rw,barrier=0,data=writeback

25 1 179:97 / /mnt/sdcard rw,nosuid,nodev,noexec,relatime - vfat /dev/block/vold/179:97 rw,dirsync,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro26 1 179:97 /.android_secure /mnt/secure/asec rw,nosuid,nodev,noexec,relatime -vfat /dev/block/vold/179:97 rw,dirsync,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro

25 1 179:97 /.android_secure

/mnt/secure/asec rw,nosuid,nodev,noexec,relatime -vfat /dev/block/vold/179:97 rw,dirsync,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro