1、 首先查看當前系統連接了哪些硬盤
[root@localhost dev]# fdisk -l
Disk /dev/sda: 299.4 GB, 299439751168 bytes
47 heads, 36 sectors/track, 345652 cylinders
Units = cylinders of 1692 * 512 = 866304 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 121 102348 83 Linux
/dev/sda2 122 345652 292319226 8e Linux LVM
Disk /dev/sdb: 3293.8 GB, 3293837262848 bytes
255 heads, 63 sectors/track, 400452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 267350 2147483647+ ee EFI GPT
Disk /dev/sdc: 2994.3 GB, 2994397511680 bytes
255 heads, 63 sectors/track, 364048 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 267350 2147483647+ ee EFI GPT
Disk /dev/sdd: 750.1 GB, 750156373504 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 91202 732571648 7 HPFS/NTFS
從上面可以看到總共有sda、sdb、sdc、sdd四個盤
2、 通過硬盤的大小,可以發現sdd是我們外接的硬盤,所以可以對這個硬盤進行掛載,需要注意的是我們掛載的是硬盤分區而不是整個盤,所以在這里掛載的應該是sdd1
3、查看該硬盤的文件系統類型,注意,掛載的時候需要指定文件系統類型,如果系統類型不一樣,就會報錯,如下:
[root@localhost dev]# mount -t vfat /dev/sdd1 /diskd/
mount: wrong fs type, bad option, bad superblock on /dev/sdd,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
3、 查看該硬盤的文件同類型
[root@localhost transcoder]# file -s /dev/sdd1
/dev/sdd1: Linux rev 1.0 ext3 filesystem data (needs journal recovery)
4、 最后一步就是執行掛載命令了
mount –t ext3 /dev/sdd1 /mnt/temp/