Ubuntu下掛載U盤

第一步:查看U盤信息 
首先使用  sudo fdisk -l 命令查看一下U盤在那裏, 
這個信息查看後,可能會相似看到下面信息: html

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 ubuntu

   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) app

第二步:掛載U盤到指定節點 
咱們把 U 盤掛載在 /media/u 目錄下 (上面咱們能夠看到是一個FAT32的格式的U盤)    
# mount  -t vfat /dev/sdb1 /media/u 
若是是 ntfs 格式的U盤,則相似以下: 
# sudo mount -t ntfs-3g /dev/sdb1 /media/u 
/media/u 爲你要掛載到的節點,這個你能夠隨便指定 ide

以後你就能夠經過 cd /media/u  訪問U盤了。 htm

第三步:卸載u盤 
輸入命令:# sudo umount  /media/u U盤卸載了(注意:此時不可以在/media/u目錄下輸入前面的卸載命令,不然系統會認爲你的「設備忙」而拒絕U盤的卸載)。 blog

參考資料 
ubuntu mount u盤 
http://www.gagahappy.com/ubuntu-mount-u-driv/ 
ubuntu掛載\卸載U盤的方法 
http://hi.baidu.com/fhdone/blog/item/d80aef198dddc54d43a9ade6.html get

相關文章
相關標籤/搜索