Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

Linux 下掛載 U 盤的完整步驟

步驟一:插入 U 盤。

步驟二:確認裝置名稱。執行 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

步驟三:掛載。由上面的輸出可知裝置為 /dev/sda1。先建立掛載點 /mnt/usb,再執行掛載(中文環境建議加上 iocharset 以免檔名亂碼):

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

步驟四:讀取資料。

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

[root@rh9 usb]# ls

13213.rar

補充:若 U 盤是 FAT32 或 NTFS,iocharset 的取捨會影響中文檔名顯示;使用完畢後,請先 umount /mnt/usb 再拔下裝置,避免檔案系統未完成寫入而受損。

Copyright © Linux教程網 All Rights Reserved