操作手冊(cè):Linux系統(tǒng)掛接U盤
日子飛逝流過(guò),科技飛速發(fā)展。隨著linux系統(tǒng)的日漸成熟和穩(wěn)定以及它開(kāi)放源代碼特有的優(yōu)越性,linux在全世界得到了越來(lái)越廣泛的應(yīng)用。伴隨著問(wèn)題也隨之出現(xiàn),今天主要討論一下Linux系統(tǒng)下掛接U盤問(wèn)題。
掛接U盤
和USB接口的移動(dòng)硬盤一樣對(duì)linux系統(tǒng)而言U盤也是當(dāng)作SCSI設(shè)備對(duì)待的。使用方法和移動(dòng)硬盤完全一樣。插入U(xiǎn)盤之前,應(yīng)先用fdisk –l 或 more /proc/partitions查看系統(tǒng)的硬盤和硬盤分區(qū)情況。
- [root at pldyrouter root]# fdisk -l
- Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
- 255 heads, 63 sectors/track, 8924 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 1 4 32098+ de Dell Utility
- /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
- /dev/sda3 2555 7904 42973875 83 Linux
- /dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
- /dev/sda5 7905 8924 8193118+ 82 Linux swap
插入U(xiǎn)盤后,再用fdisk –l 或 more /proc/partitions查看系統(tǒng)的硬盤和硬盤分區(qū)情況。
- [root at pldyrouter root]# fdisk -l
- Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
- 255 heads, 63 sectors/track, 8924 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 1 4 32098+ de Dell Utility
- /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
- /dev/sda3 2555 7904 42973875 83 Linux
- /dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
- /dev/sda5 7905 8924 8193118+ 82 Linux swap
- Disk /dev/sdd: 131 MB, 131072000 bytes
- 9 heads, 32 sectors/track, 888 cylinders
- Units = cylinders of 288 * 512 = 147456 bytes
- Device Boot Start End Blocks Id System
- /dev/sdd1 * 1 889 127983+ b Win95 FAT32
- Partition 1 has different physical/logical endings:
- phys=(1000, 8, 32) logical=(888, 7, 31)
系統(tǒng)多了一個(gè)SCSI硬盤/dev/sdd和一個(gè)磁盤分區(qū)/dev/sdd1,/dev/sdd1就是我們要掛接的U盤。
#mkdir -p /mnt/usb
注:建立一個(gè)目錄用來(lái)作掛接點(diǎn)(mount point)
#mount -t vfat /dev/sdd1 /mnt/usb
注:現(xiàn)在可以通過(guò)/mnt/usb來(lái)訪問(wèn)U盤了, 若漢字文件名顯示為亂碼或不顯示,可以使用下面的命令。
#mount -t vfat -o iocharset=cp936 /dev/sdd1 /mnt/usb
看完本文你應(yīng)該有不小的收獲,希望你能學(xué)會(huì)Linux系統(tǒng)下掛接U盤。
【編輯推薦】




















