1. Open the U disk in ubuntu system
terminal:
运行磁盘查看命令:fdisk -l
查看磁盘的信息,例如U盘路径“/dev/sdb4”,磁盘格式为fat32
运行挂载命令:mount -t vfat、dev/sdb4 /media
进入挂载磁盘目录:cd media
Under ubuntu, it prompts that the U disk does not have certain permissions and can only read but not write.
tail -f /var/log/syslog # 查看文件系统的动态信息
df -h # 确定U盘的磁盘基本情况 /dev/sdb1
运行命令:fask -C -a /dev/sdb1 # 进行自动修复
2. Uninstall the USB flash drive in Ubuntu system
umount -v /dev/sda1 # 通过设备名卸载
umount -v /mnt/mymount/ 通过挂载点卸载
Error when uninstalling:
lsof | grep mymount # 查看打开硬盘分区的文件
kill -9 KID