一、挂载U盘的方法
1、插入U盘后,用命令 lsusb,查看板子连接的USB设备:
root@beaglebone:~# lsusb
Bus 001 Device 002: ID 1307:0165 Transcend Information, Inc. 2GB/4GB Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
2、命令 fdisk -l,获取U盘分区号:
root@beaglebone:~# fdisk -l
Device Boot Start End Sectors Size Id Type
/dev/sda1 253 1974271 1974019 963.9M c W95 FAT32 (LBA)
3、然后,挂载U盘,命令mount /dev/sda1 /mnt/usb,需要先在/mnt下新建目录:mkdir /mnt/usb
root@beaglebone:~# ls /mnt
sd usb
root@beaglebone:~# mount /dev/sda1 /mnt/usb
root@beaglebone:~# ls /mnt/usb
System Volume Information hello
4、卸载用命令umount
二、挂载SD卡的方法
1、插入SD卡,命令 fdisk -l
root@beaglebone:~# fdisk -l
。。。。。。
Device Boot Start End Sectors Size