USB Disk Mounting in the Ubuntu Server(Ubuntu挂载U盘)

Though the GUI of Linux make some operations very easy, you must know how to mount your USB device on the command interface, which is essencial in a Linux server.
If you are using a VMware Ubuntu, make sure having opened the conresponding version support of your USB device. For example, if you have a USB 3.x disk, set the USB COMPATIBILITY to USB 3.0 in the VIRTUAL MACHINE OPTIONS, which is USB 2.0 by default.


  • Check your USB device

After plugging your USB disk, use the command

Ubuntu~$ sudo fdisk -l

to show your disks, and the mounting disk is usually shown at the end.
The information of your USB disk will show as:

Device       Boot    Start       End   Sectors   Size    Id    Type
/dev/sdb1    *        2048  61439999  61437952  29.3G    c  W95 FAT32 (LBA)

where you can see the dictionary of the USB deveice is /dev/sdb1


  • Create a mount dictionary

Use the command

Ubuntu~$ sudo mkdir /mnt/usb

to create a mount dictionary for the U-disk.


  • Mount your U-disk

Use the command:

Ubuntu~$ sudo mount /dev/sdb1 /mnt/usb

to mount your device, then you can read or write files in it on the dictionary /mnt/usb


  • Umount your U-disk

Use the command:

Ubuntu~$ sudo umount /mnt/usb

to umount your device after using it.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容