1,创建设备:
打开终端,运行:
mknod /dev/mmcblk0 b 254 1
2,建立挂载目录:
mkdir /mnt/mmc
3,插入SD/MMC卡
fdisk -l /dev/mmcblk0
就可以看到分区信息:
Disk /dev/mmcblk0: 513 MB, 513802240 bytes
32 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 980 501744 6 FAT16
4,挂载:
mount -t vfat -o sync /dev/mmcblk0p1 /mnt/mmc
sync命令强制把磁盘缓冲的所有数据写入磁盘
----------------------------
mount –t vfat /dev/mmc/blk0/part1 /mnt
mount ntfs 的mount命令
# mount -t nfs 192.168.1.106:/yctek /mnt