【转】Linux系统调用-- mount/umount函数详解
例如:
将/dev/sdb1挂载到/var/usb文件夹,并以中文显示目录名
mount("/dev/sdb1","/var/usb","vfat",MS_SYNCHRONOUS,"iocharset=utf8");
将/dev/sdb3挂载到/mnt/mydata/
$ sudo mount -t ext4 /dev/sdb3 /mnt/mydata/
test mount --bind (root)
from: https://blog.csdn.net/shengxia1999/article/details/52060354
- before
- after
- back
二. 手动挂载u盘
- fdisk -l 命令查看已经插入的usb盘
2.建立挂载文件夹 ,如/var/usb
- 将u盘挂载
如: mount -o iocharset=utf8 -t vfat /dev/sdb1 /var/usb