插入SD卡後,輸入
$ sudo fdisk -l
可以看到SD卡的位置
/dev/mmcblk1p1
Disk /dev/mmcblk1: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdcef3dbc
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 8192 62333951 62325760 29.7G c W95 FAT32 (LBA)
在/mnt目錄下新建掛載點
sudo mkdir /mnt/sd1
輸入下面的指令可以將SD卡掛載到剛纔建立的掛載點
$ sudo mount /dev/mmcblk1p1 /mnt/sd1/
輸入下面的指令可以看到掛載點的狀況
$ ls -l /mnt/sd1/
total 16
drwxr-xr-x 2 ubuntu ubuntu 16384 May 9 2017 System Volume Information
再查看所有掛載設備
$ mount
/dev/mmcblk1p1 on /mnt/sd1 type vfat (rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro)
可以看到/dev/mmcblk1p1已經掛接到了/mnt/sd1/上了
輸入下列指令可以斷開掛接
$ sudo umount /mnt/sd1
注意!!注意!!注意!!
如果提示SD卡不可讀unwriting,可能是讀卡器鎖上了,將讀卡器解鎖即可解決問題!
該問題困擾了樓主一晚上。。。。