*Mounting the drive:*
Either do it manually by running "mount" command from Android shell or
use "vold" to automount the drive.

Way to use "vold" is to add the sysfs entry of the drive in
/system/etc/vold.fstab and run "vold" from Android shell. You can also
automate this procedure by using "on device-added-*" trigger in
init.rc and start "vold" whenever your drive get added.

Sadly I couldn't find a way to do hot plug and play. sysfs entry of
your drive changes if you unplug the card and plug it back in. Because
of that "vold" wont be able to mount your drive and only option
available is to mount it manually or reboot.

*Browsing through the media on the mounted drive:*
You need to browse through the files from any of the available file
managers[1] because your device won't be mounted as External Storage
and won't be auto scanned for media files.

Hope it will help.

Regards,
Amit Pundir

[1]
http://www.lysesoft.com/products/andexplorer/
http://www.mydroid.info/android-apps/ghost-commander-file-manager-v1-33/

On Wed, Apr 6, 2011 at 7:00 AM, BiX <[email protected]> wrote:
> I plugged in my thumb drive to a usb hub connected to Beagleboard
> running Gingerbread and minicom shows that the device is recognized as
> shown below:
>
> usb 1-2.3: new high speed USB device using ehci-omap and address
> 4
> usb 1-2.3: New USB device found, idVendor=0781,
> idProduct=5567
> usb 1-2.3: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> usb 1-2.3: Product: Cruzer
> Blade
> usb 1-2.3: Manufacturer:
> SanDisk
> usb 1-2.3: SerialNumber:
> 20044318630C8D218CFD
> scsi1 : usb-storage
> 1-2.3:1.0
> scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.00 PQ: 0
> ANSI: 2
> sd 1:0:0:0: Attached scsi generic sg1 type
> 0
> sd 1:0:0:0: [sdb] 15625216 512-byte logical blocks: (8.00 GB/7.45
> GiB)
> sd 1:0:0:0: [sdb] Write Protect is
> off
> sd 1:0:0:0: [sdb] Assuming drive cache: write
> through
> sd 1:0:0:0: [sdb] Assuming drive cache: write
> through
>
> sdb:
>
> sdb1
> sd 1:0:0:0: [sdb] Assuming drive cache: write
> through
> sd 1:0:0:0: [sdb] Attached SCSI removable disk
>
>
> However, executing a mount does not show the device:
>
> # mount
> rootfs / rootfs rw 0 0
> /dev/root / ext3 rw,relatime,errors=continue,data=writeback 0 0
> tmpfs /dev tmpfs rw,relatime,mode=755 0 0
> devpts /dev/pts devpts rw,relatime,mode=600 0 0
> proc /proc proc rw,relatime 0 0
> sysfs /sys sysfs rw,relatime 0 0
> tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
> tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
> /dev/block/vold/179:1 /mnt/sdcard vfat
> rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-
> ro 0 0
> /dev/block/vold/179:1 /mnt/secure/asec vfat
> rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-
> ro 0 0
> tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0
> 0
>
> # df
> Filesystem             Size   Used   Free   Blksize
> /                        3G   184M     3G   4096
> /                        3G   184M     3G   4096
> /dev                   120M    44K   120M   4096
> /mnt/asec              120M     0K   120M   4096
> /mnt/obb               120M     0K   120M   4096
> /mnt/sdcard             69M     4M    65M   512
> /mnt/secure/asec        69M     4M    65M   512
>
>
> Am I missing any modules or steps? I've built all the SCSI modules
> already and usb mass storage.
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to