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.