SDcard mount problem with vold

59 views
Skip to first unread message

sreedhar b

unread,
Nov 9, 2009, 5:23:57 AM11/9/09
to android...@googlegroups.com
Hi All,
 
I am seeing similar problem as is highlighted in the below link in my environment,
 
1. Manual mounting of sdcard 
 
If i run the below command  manually after the android boots up,
$mount -t vfat /dev/block/mmcblk0 /sdcard
 
Then only the sdcard is getting mounted and as mentioned in the above link,
I also see Gallery and Camera do not recognize the SD card even it's mounted this way.
 
2. No manual mounting of sdcard 
 
While not doing this manually which is what ideally expected, i  got the following errors and the sdcard is not mounted 
 
The log gives  some error like this
E/vold    (  620): Unable to open '/sys/class/switch' (No such file or directory)
E/vold    (  620): Cannot start volume '/sdcard' (volume is not bound)
 
Please let me know how to overcome this issue. I faced the same issue with Cupcake and also with Donut 1.6 r1 now.
 
Regards,
Sreedhar
 
 
 
 

sreedhar b

unread,
Nov 9, 2009, 9:19:35 AM11/9/09
to android...@googlegroups.com
Sorry the mmc partition in my system is different.
 
The correct command i am using :
mount -t vfat /dev/block/mmcblk1p1 /sdcard ,
 
earlier i wrongly said as
mount -t vfat /dev/block/mmcblk0 /sdcard

 
Regards,
Sreedhar

abukustfan

unread,
Nov 9, 2009, 9:57:27 PM11/9/09
to android-porting
Hi,

Did you modified your vold.conf?

On Nov 9, 11:19 pm, sreedhar b <sreedhar...@gmail.com> wrote:
> Sorry the mmc partition in my system is different.
>
> The correct command i am using :
> mount -t vfat /dev/block/mmcblk1p1 /sdcard ,
>
> earlier i wrongly said as
> mount -t vfat /dev/block/mmcblk0 /sdcard
>
> Regards,
> Sreedhar
>

sreedhar b

unread,
Nov 10, 2009, 12:43:05 AM11/10/09
to android...@googlegroups.com
Hi,
 
This is the modified vold.conf which i am using ,
 
## vold configuration file for the emulator/SDK
volume_sdcard {
    ## This is the direct uevent device path to the SD slot on the device
    media_path     /devices/MMC/mmc_host/mmc1
    media_type     mmc
    mount_point    /sdcard
    ums_path       /devices/platform/usb_mass_storage/lun0
}
 
Regards,
Sreedhar


abukustfan

unread,
Nov 10, 2009, 1:22:15 AM11/10/09
to android-porting
Did you try this?
https://gforge.ti.com/gf/project/omapandroid/mailman/?_forum_action=ForumMessageBrowse&thread_id=1640&action=ListThreads&mailman_id=22

On Nov 10, 2:43 pm, sreedhar b <sreedhar...@gmail.com> wrote:
> Hi,
>
> This is the modified vold.conf which i am using ,
>
> ## vold configuration file for the emulator/SDK
> volume_sdcard {
>     ## This is the direct uevent device path to the SD slot on the device
>     media_path     /devices/MMC/mmc_host/mmc1
>     media_type     mmc
>     mount_point    /sdcard
>     ums_path       /devices/platform/usb_mass_storage/lun0
>
> }
>
> Regards,
> Sreedhar
>
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting
>
>

sreedhar b

unread,
Nov 10, 2009, 2:25:14 AM11/10/09
to android...@googlegroups.com
 
Yes i tried this.
 
Even after doing this i am getting these errors:
 
E/vold    (  620): Unable to open '/sys/class/switch' (No such file or directory)
E/vold    (  620): Cannot start volume '/sdcard' (volume is not bound) 
 
E/vold    (  620): Unable to open '/sys/class/switch' (No such file or directory), this error i am able to overcome by enabling the switch class in kernel.
 
But i am still stuck at this second error,
E/vold    (  620): Cannot start volume '/sdcard' (volume is not bound) 
 
But just to inform if i try manually the below command, the mount happens
$mount -t vfat /dev/block/mmcblk1p1 /sdcard
 
 
 
Regards,
Sreedhar
 

abukustfan

unread,
Nov 10, 2009, 2:38:24 AM11/10/09
to android-porting
hi,

Is the media_path in vold.conf right?
I am not sure about your platform, maybe it should be /devices/
platform/xxx...
try below on target board and find the path.
# ls /sys/devices/platform

On Nov 10, 4:25 pm, sreedhar b <sreedhar...@gmail.com> wrote:
> Yes i tried this.
>
> Even after doing this i am getting these errors:
>
> E/vold    (  620): Unable to open '/sys/class/switch' (No such file or
> directory)
> E/vold    (  620): Cannot start volume '/sdcard' (volume is not bound)
>
>  E/vold    (  620): Unable to open '/sys/class/switch' (No such file or
> directory), this error i am able to overcome by enabling the switch class in
> kernel.
>
> But i am still stuck at this second error,
>  E/vold    (  620): Cannot start volume '/sdcard' (volume is not bound)
>
> But just to inform if i try manually the below command, the mount happens
> $mount -t vfat /dev/block/mmcblk1p1 /sdcard
>
> Regards,
> Sreedhar
>
> On Tue, Nov 10, 2009 at 11:52 AM, abukustfan <abukust...@gmail.com> wrote:
> > Did you try this?
>
> >https://gforge.ti.com/gf/project/omapandroid/mailman/?_forum_action=F...
> > <android-porting%2Bunsu...@googlegroups.com<android-porting%252Buns...@googlegroups.com>
>
> > > > website:http://groups.google.com/group/android-porting
>
> > --
> >  unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting
>
>

sreedhar b

unread,
Nov 10, 2009, 2:49:56 AM11/10/09
to android...@googlegroups.com
Hi,
 
#ls /sys/devices/platform
 
it shows uevent and some other components specific to my platform and no MMC components.
 
But i have something like this,
 
# ls /sys/devices/MMC
driver     irq0       power      subsystem
id         mmc_host   resource   uevent

# ls /sys/devices/MMC/mmc_host
mmc1

# ls /sys/devices/MMC/mmc_host/mmc1
device     mmc1:bf0a  power      subsystem  uevent
 
Could you please let me know in that what should be my vold.conf ?

abukustfan

unread,
Nov 10, 2009, 3:06:18 AM11/10/09
to android-porting
hi,

umm... seem your case is difference with mine.



On Nov 10, 4:49 pm, sreedhar b <sreedhar...@gmail.com> wrote:
> Hi,
>
> #ls /sys/devices/platform
>
> it shows uevent and some other components specific to my platform and no MMC
> components.
>
> But i have something like this,
>
> # ls /sys/devices/MMC
> driver     irq0       power      subsystem
> id         mmc_host   resource   uevent
>
> # ls /sys/devices/MMC/mmc_host
> mmc1
>
> # ls /sys/devices/MMC/mmc_host/mmc1
> device     mmc1:bf0a  power      subsystem  uevent
>
> Could you please let me know in that what should be my vold.conf ?
>
> ## vold configuration file for the emulator/SDK
> volume_sdcard {
>     ## This is the direct uevent device path to the SD slot on the device
>     media_path     /devices/MMC/mmc_host/mmc1
>     media_type     mmc
>     mount_point    /sdcard
>     ums_path       /devices/platform/usb_mass_storage/lun0
>
> }
>
> Regards,
> Sreedhar
>
> > > > <android-porting%2Bunsu...@googlegroups.com<android-porting%252Buns...@googlegroups.com>
> > <android-porting%252Buns...@googlegroups.com<android-porting%25252Bun...@googlegroups.com>
Reply all
Reply to author
Forward
0 new messages