ubuntu mount the usb driver

from http://wiki.ubuntu.org.cn/UbuntuHelp:Mount/USB

Mount the Drive

IconsPage?action=AttachFile&do=get&target=example.png We can now mount the drive. Let's say the device is /dev/sdb1, the filesystem is FAT16 or FAT32 (like it is for most USB flash drives), and we want to mount it at /media/external (having already created the mount point):

sudo mount -t vfat /dev/sdb1 /media/external -o uid=1000,gid=100,utf8,dmask=027,fmask=137

The options following the "-o" allow your user to have ownership of the drive, and the masks allow for extra security for file system permissions. If you don't use those extra options you may not be able to read and write the drive with your regular username. Otherwise if the device is formatted with NTFS, run:

sudo mount -t ntfs-3g /dev/sdb1 /media/external

IconsPage?action=AttachFile&do=get&target=IconNote.png You must have the ntfs-3g driver installed. See MountingWindowsPartitions for more information.

[编辑] Unmounting the Drive

IconsPage?action=AttachFile&do=get&target=example.png When you are finished with the device, don't forget to unmount the drive before disconnecting it. Assuming /dev/sdb1 mounted at /media/external, you can either unmount using the device or the mount point:

sudo umount /dev/sdb1

or:

sudo umount /media/external

You cannot unmount from the desktop by right clicking the icon if the drive was manually mounted.

posted @ 2013-06-02 20:43  youJumpILook  阅读(380)  评论(0编辑  收藏  举报