CentOS下硬碟的掛載

來源:互聯網
上載者:User

不同的版本的Linux系統,掛再硬碟的方法是不同的。如果使用傳統的硬碟掛再命令不能解決出現的“NTFS”“FAT32”

不支援此類的問題時,需要查看自己的linux核心下的ntfs活fat32是否與linux系統的版本相符後是否安裝。 CentOS4.3下的硬碟

掛再方法如下所示:

1.首先通過 rpm -qa |grep ntfs來查看是否安裝了ntfs核心,如果已經安裝,則會顯示出起版本資訊,否則顯示未安裝


2.如果ntfs和linux核心不匹配,則需要下載最新版本的ntfs補丁來修複,並安裝,具體方法如下:


[root@localhost ~]# yum install ntfs-3g

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package fuse-ntfs-3g.i386 0:2009.4.4-2.el5.rf set to be updated

--> Processing Dependency: fuse >= 2.6.3 for package: fuse-ntfs-3g

--> Running transaction check

---> Package fuse.i386 0:2.7.4-8.el5 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package            Arch       Version                 Repository          Size

================================================================================

Installing:

fuse-ntfs-3g       i386       2009.4.4-2.el5.rf       Dag                385 k

Installing for dependencies:

fuse               i386       2.7.4-8.el5             163-com-base        83 k

Transaction Summary

================================================================================

Install      2 Package(s)        

Update       0 Package(s)        

Remove       0 Package(s)        

Total download size: 468 k

Is this ok [y/N]: y

Downloading Packages:

(1/2): fuse-2.7.4-8.el5.i386.rpm                         |  83 kB     00:00    

(2/2): fuse-ntfs-3g-2009.4.4-2.el5.rf.i386.rpm           | 385 kB     00:14    

--------------------------------------------------------------------------------

Total                                            22 kB/s | 468 kB     00:21    

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

Installing     : fuse                                                     1/2

Installing     : fuse-ntfs-3g                                             2/2

Installed:

fuse-ntfs-3g.i386 0:2009.4.4-2.el5.rf                                        

Dependency Installed:

fuse.i386 0:2.7.4-8.el5                                                      

Complete!


3.通過fsdisk -l來查看要掛載的硬碟的詳細資料

[root@localhost ~]# fdisk -l

Disk /dev/sda: 158.7 GB, 158717154816 bytes

255 heads, 63 sectors/track, 19296 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1        2612    20980858+   7  HPFS/NTFS

/dev/sda2            2613       19295   134006197+   f  W95 Ext'd (LBA)

/dev/sda5            2613        7839    41985846    7  HPFS/NTFS

/dev/sda6            7840       13066    41985846    7  HPFS/NTFS

/dev/sda7           13067       18021    39801006    b  W95 FAT32

/dev/sda8           18022       18046      200781    b  W95 FAT32

/dev/sda9           18047       19165     8988336   83  Linux

/dev/sda10          19166       19295     1044193+  82  Linux swap / Solaris

4.通過mkdir /mnt/xx 來建立相應的掛載點,即將所掛載的硬碟查看的地方

[root@localhost ~]# mkdir /mnt/myhdc5

並使用mount -t ntfs-3g /dev/sdax /mnt/E來掛載相應的硬碟

[root@localhost ~]# mount -t ntfs-3g

/dev/sda5 /mnt/E

[root@localhost ~]#

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.