自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

教會你Linux系統(tǒng)掛接移動硬盤

運維 系統(tǒng)運維
隨著很多操作系統(tǒng)的出現(xiàn),人們的選擇也逐漸增多?,F(xiàn)在許多企業(yè)的計算機系統(tǒng)都是由UNIX系統(tǒng)、Linux系統(tǒng)和Windows系統(tǒng)組成的混合系統(tǒng),不同系統(tǒng)之間經(jīng)常需要進行數(shù)據(jù)交換。伴隨著問題也隨之出現(xiàn),下面討論一下Linux系統(tǒng)下掛接移動硬盤。

隨著很多操作系統(tǒng)的出現(xiàn),人們的選擇也逐漸增多?,F(xiàn)在許多企業(yè)的計算機系統(tǒng)都是由UNIX系統(tǒng)、Linux系統(tǒng)和Windows系統(tǒng)組成的混合系統(tǒng),不同系統(tǒng)之間經(jīng)常需要進行數(shù)據(jù)交換。伴隨著問題也隨之出現(xiàn),下面討論一下Linux系統(tǒng)下掛接移動硬盤。

掛接移動硬盤
對linux系統(tǒng)而言,USB接口的移動硬盤是當作SCSI設(shè)備對待的。插入移動硬盤之前,應(yīng)先用fdisk –l 或 more /proc/partitions查看系統(tǒng)的硬盤和硬盤分區(qū)情況。

  1. [root at pldyrouter /]# fdisk -l  
  2. Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes  
  3. 255 heads, 63 sectors/track, 8924 cylinders  
  4. Units = cylinders of 16065 * 512 = 8225280 bytes  
  5. Device Boot Start End Blocks Id System  
  6. /dev/sda1 1 4 32098+ de Dell Utility  
  7. /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS  
  8. /dev/sda3 2555 7904 42973875 83 Linux  
  9. /dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)  
  10. /dev/sda5 7905 8924 8193118+ 82 Linux swap 

在這里可以清楚地看到系統(tǒng)有一塊SCSI硬盤/dev/sda和它的四個磁盤分區(qū)/dev/sda1 -- /dev/sda4, /dev/sda5是分區(qū)/dev/sda4的邏輯分區(qū)。接好移動硬盤后,再用fdisk –l 或 more /proc/partitions查看系統(tǒng)的硬盤和硬盤分區(qū)情況

  1. [root at pldyrouter /]# fdisk -l  
  2. Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes  
  3. 255 heads, 63 sectors/track, 8924 cylinders  
  4. Units = cylinders of 16065 * 512 = 8225280 bytes  
  5. Device Boot Start End Blocks Id System  
  6. /dev/sda1 1 4 32098+ de Dell Utility  
  7. /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS  
  8. /dev/sda3 2555 7904 42973875 83 Linux  
  9. /dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)  
  10. /dev/sda5 7905 8924 8193118+ 82 Linux swap  
  11. Disk /dev/sdc: 40.0 GB, 40007761920 bytes  
  12. 255 heads, 63 sectors/track, 4864 cylinders  
  13. Units = cylinders of 16065 * 512 = 8225280 bytes  
  14. Device Boot Start End Blocks Id System  
  15. /dev/sdc1 1 510 4096543+ 7 HPFS/NTFS  
  16. /dev/sdc2 511 4864 34973505 f Win95 Ext'd (LBA)  
  17. /dev/sdc5 511 4864 34973473+ b Win95 FAT32 

大家應(yīng)該可以發(fā)現(xiàn)多了一個SCSI硬盤/dev/sdc和它的兩個磁盤分區(qū)/dev/sdc1?、/dev/sdc2,其中/dev/sdc5是/dev/sdc2分區(qū)的邏輯分區(qū)。我們可以使用下面的命令掛接/dev/sdc1和/dev/sdc5。
#mkdir -p /mnt/usbhd1
#mkdir -p /mnt/usbhd2

注:建立目錄用來作掛接點(mount point)
#mount -t ntfs /dev/sdc1 /mnt/usbhd1
#mount -t vfat /dev/sdc5 /mnt/usbhd2

注:對ntfs格式的磁盤分區(qū)應(yīng)使用-t ntfs 參數(shù),對fat32格式的磁盤分區(qū)應(yīng)使用-t vfat參數(shù)。若漢字文件名顯示為亂碼或不顯示,可以使用下面的命令格式。
#mount -t ntfs -o iocharset=cp936 /dev/sdc1 /mnt/usbhd1
#mount -t vfat -o iocharset=cp936 /dev/sdc5 /mnt/usbhd2

linux系統(tǒng)下使用fdisk分區(qū)命令和mkfs文件系統(tǒng)創(chuàng)建命令可以將移動硬盤的分區(qū)制作成linux系統(tǒng)所特有的ext2、ext3格式。這樣,在linux下使用就更方便了。使用下面的命令直接掛接即可。
#mount /dev/sdc1 /mnt/usbhd1

通過本文的介紹希望你能學(xué)會Linux系統(tǒng)下掛接移動硬盤。

【編輯推薦】

  1. 淺析vm下Suse Linux的問題
  2. 學(xué)前指導(dǎo):SUSE Linux
  3. 淺談SUSE Linux中的縮寫
  4. 操作手冊:SUSE下安裝RDAC驅(qū)動
  5. 你的變色龍:Open Suse
責(zé)任編輯:小霞 來源: 計世網(wǎng)
相關(guān)推薦

2012-07-09 14:45:34

Ubuntulinux

2009-12-16 11:11:10

硬盤讀寫速度

2010-03-15 16:52:38

Ubuntu Linu

2009-12-15 14:29:04

2009-12-31 10:43:01

Ubuntu 8.04

2009-12-14 17:13:04

Linux系統(tǒng)修改共享

2010-01-06 16:32:45

Linux操作系統(tǒng)

2009-12-15 17:10:39

優(yōu)化Linux

2018-04-10 09:17:09

NAS移動硬盤

2009-12-02 16:16:33

linux系統(tǒng)

2009-08-18 09:04:55

Windows 7安裝移動硬盤安裝

2019-12-02 16:05:30

網(wǎng)盤硬盤移動

2018-11-08 09:56:28

服務(wù)器移動硬盤

2009-12-10 10:40:21

Linux ldd

2009-12-17 13:40:42

Linux網(wǎng)卡安裝

2010-08-04 15:16:11

USB移動硬盤

2019-11-04 11:13:31

Python硬盤Windows

2017-11-08 08:31:57

NAS存儲移動硬盤

2009-06-05 09:19:41

微軟Windows 7操作系統(tǒng)
點贊
收藏

51CTO技術(shù)棧公眾號