歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> Linux掛載U盤

Linux掛載U盤

日期:2017/3/3 12:50:23   编辑:Linux技術

(1) 插入U盤

(2) 輸入 fdisk -l /dev/sda 查看輸出結果,如:

[root@rh9 root]# fdisk -l /dev/sda

Disk /dev/sda: 33 MB, 33030144 bytes

2 heads, 32 sectors/track, 1008 cylinders

Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System

/dev/sda1 * 1 1007 32208 4 FAT16 <32M

(3) 通過上面顯示的信息知道U盤所在的設備了,比如本例是/dev/sda1,接著便是掛載了,假設將U盤掛載到/mnt/usb目錄中(/mnt/usb目錄要提前創建),操作如下:

[root@rh9 root]# mount -o iocharset=cp936 /dev/sda1 /mnt/usb/

(4) 掛載完畢,打開/mnt/usb 就可以查看U盤裡的資料。

[root@rh9 root]# cd /mnt/usb

[root@rh9 usb]# ls

13213.rar

Copyright © Linux教程網 All Rights Reserved