Motorola Droid SD card file access
Got a Droid yesterday. No manual was included, let alone technical specs, and I feel lucky to have found some leaked version of a manual - good thing the users don't get a hold of this!
Mounting the SD card to share files was tricky. Here's how I managed.
Assumption: Your kernel supports the FAT file system. It probably does, but if you suspect otherwise, check the menuconfig at File systems -> DOS/FAT/NT Filesystems -> VFAT (Windows 95) Support.
- Plug the device into your machine via USB. I mount drives manually, which you'll probably have to do also since an auto-mount is likely to fail.
- Watch /dev for udev to create the device node, which for me is sda (/dev/sda).
- The partition should have been detected but wasn't. The work-around is
fdisk /dev/sda, then theqcommand to quit without saving changes. This seems to be enough thatls /devincludes the partition /dev/sda1 - Now the mount command:
mount /dev/sda1 /mnt/usb -t vfat -o rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
- And now, as root, I can copy files onto the SD card:
cd /mnt/usb mkdir music && cd $_ cp /home/erik/music/* .
The copy operation fails with vague I/O errors, but after several iterations my music is copied. The Droid is very good about finding files anywhere on the SD card, and finding the album art, etc.
I hope this helps one Droid owner get around the issues I've had.