linux挂载U盘

in linux with 0 comment

今天群里有朋友问linux虚拟机如何挂载U盘,于是顺便百度了下。

方法:

1.首先先确定U盘已经连到Linux虚拟机上。

2.#fdisk -l                    //通过此命令查看U盘是否已经被系统识别到

3.以上两部都确认后,通过命令挂载U盘

#mount -t nfts|vfat  /dev/sdb1     /mnt

ntfs或者vfat 是根据U盘的格式,如果是fat32就用vfat,如果是ntfs就用ntfs。

如果mount报错:unknown filesystem type 'ntfs'

解决方法:#yum install -y ntfs*或者yum install -y ntfs-3g  ntfs-3g-devel

然后重新挂载:#mount -t ntfs-3g /dev/sdb1 /mnt

Responses