Showing posts with label mmc card. Show all posts
Showing posts with label mmc card. Show all posts

12/30/2011

how to mount the SDcard in init.rc manually

in init.rc 
please add the following:
# mount mtd partitions
mount vfat /dev/block/mmcblk1p1 /sdcard
chown system system /sdcard
chmod 0777 /sdcard
setprop EXTERNAL_STORAGE_STATE mounted

11/08/2011

How to format SD card via adb shell in android



do the following.

adb shell
# newfs_msdos �F 32 /dev/block/mmcblk0


newfs_msdos
usage: newfs_msdos [ -options ] special [disktype]
where the options are:
        -@ create file system at specified offset
        -B get bootstrap from file
        -C create image file with specified size
        -F FAT type (12, 16, or 32)
        -I volume ID
        -L volume label
        -N don't create file system: just print out parameters
        -O OEM string
        -S bytes/sector
        -a sectors/FAT
        -b block size
        -c sectors/cluster
        -e root directory entries
        -f standard format
        -h drive heads
        -i file system info sector
        -k backup boot sector
        -m media descriptor
        -n number of FATs
        -o hidden sectors
        -r reserved sectors
        -s file system size (sectors)
        -u sectors/track