1.挂载
2.共享文件夹
3.U盘
转载1: 虚拟机挂载NFS到开发板.
遇到的问题记录:
1.VM下安装Ubuntu12、Ubuntu18,虚拟机、开发板可ping通;
2.Ubuntu12(60)对开发板的挂载成功;
3.Ubuntu18(33)对开发板的挂载失败!
问题原因:
问题错在exports文件前有注释号未删除...
转载2: 共享文件夹
转载3: U盘挂载创建节点
U盘插入开发板,终端可以显示信息:
[root@rk3399:/]# [ 168.970906] usb 4-1.2: new high-speed USB device number 4 using ehci-platform
[ 169.058802] usb 4-1.2: New USB device found, idVendor=23a9, idProduct=ef18
[ 169.059443] usb 4-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 169.060210] usb 4-1.2: Product: D28
[ 169.060549] usb 4-1.2: Manufacturer: Dunpan
[ 169.061032] usb 4-1.2: SerialNumber: 010004001857006899
[ 169.063355] usb-storage 4-1.2:1.0: USB Mass Storage device detected
[ 169.066843] scsi host1: usb-storage 4-1.2:1.0
[ 170.071161] scsi 1:0:0:0: Direct-Access Dunpan D28 PQ: 0 ANSI: 4
[ 170.082239] sd 1:0:0:0: [sda] 62742528 512-byte logical blocks: (32.1 GB/29.9 GiB)
[ 170.084071] sd 1:0:0:0: [sda] Write Protect is off
[ 170.085663] sd 1:0:0:0: [sda] No Caching mode page found
[ 170.086193] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 170.096431] sda: sda1 #注意这里的新增节点信息
[ 170.102457] sd 1:0:0:0: [sda] Attached SCSI removable disk
[root@rk3399:/]# [ 170.276611] FAT-fs (sda): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 170.581559] FAT-fs (sda1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 170.588855] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
------------------------------------------------------------------------------
/dev下查看sda1已经存在,说明Linux核心板加入了mdev机制(在系统启动和热插拔或者动态加载驱动程序时,自动产生驱动程序所需的节点文件)
此时只需要进行u盘挂载即可(挂载路径随自己定):
cd /mnt
mkdir /udisk
mount -t vfat /dev/sda1 /mnt/udisk
cd /mnt/udisk
------------------------------------------------------------------------------
若/dev下没有打印信息中的新增节点,则说明开发板没有mdev机制,需要自己创建节点,具体见链接转载3