Mount U disk under Ubuntu

Step 1: Check the U disk information.
First use the sudo fdisk -l command to check where the U disk is.
After checking this information, you may see the following information:

Disk /dev/sdb: 4007 MB, 4007657472 bytes
255 heads, 63 sectors/track, 487 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x726f7272

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         487     3903795    b  W95 FAT32
Partition 1 has different physical/logical endings:
     phys=(633, 254, 63) logical=(486, 0, 63)

Step 2: Mount the U disk to the specified node.
We mount the U disk in the /media/u directory (we can see above that it is a FAT32 format U disk)   
# mount -t vfat /dev/sdb1 /media If /u
is a U disk in ntfs format, it is similar to the following:
# sudo mount -t ntfs-3g /dev/sdb1 /media/u /
media/u is the node you want to mount to. You can specify this at will.

After that you can access the USB flash drive via cd /media/u.

Step 3: To uninstall the U disk,
enter the command: # sudo umount /media/u The U disk is uninstalled (Note: You cannot enter the previous uninstall command in the /media/u directory at this time, otherwise the system will think that your "device is busy" "and refuse to uninstall the USB disk).

Reference materials
ubuntu mount U disk
http://www.gagahappy.com/ubuntu-mount-u-drive/
Ubuntu mount/unmount U disk method
http://hi.baidu.com/fhdone/blog/item/d80aef198dddc54d43a9ade6 .html

Guess you like

Origin blog.csdn.net/ghj1976/article/details/6164833