centos 6.8 掛載NTFS移動硬碟

來源:互聯網
上載者:User

標籤:centos 6.8 掛載ntfs移動硬碟

        CentOS 掛載NTFS格式硬碟時會報錯unknown filesystem type ‘ntfs‘,這時就需要用到第三方的插NTFS-3G來載入NTFS格式硬碟。其中NTFS-3G是一個開源軟體,支援在Linux, FreeBSD, Mac OS X, NetBSD, Haiku作業系統下讀寫NTFS格式的分區。本文只針對CentOS6的64位系統,主要的操作步驟如下:

1、下載centos6-ntfs.zip

路徑:連結:http://pan.baidu.com/s/1kVysFVT 密碼:xf6p


2、解壓安裝

unzip  centos6-ntfs.zip

rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

rpm -ivh ntfs-3g-2016.2.22-3.el6.x86_64.rpm


3、掛載移動硬碟

[[email protected] data]# fdisk -l


Disk /dev/sda: 2000.4 GB, 2000398934016 bytes

255 heads, 63 sectors/track, 243201 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk identifier: 0x0007fae8


   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          26      204800   83  Linux

/dev/sda2              26       12774   102400000   83  Linux


Disk /dev/sdb: 31.3 GB, 31331450880 bytes

43 heads, 9 sectors/track, 158124 cylinders

Units = cylinders of 387 * 512 = 198144 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xc082c082


   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1   *        3747      158125    29872256    7  HPFS/NTFS


[[email protected] data]# mount -t ntfs /dev/sdb1 /mnt/

The disk contains an unclean file system (0, 0).

The file system wasn‘t safely closed on Windows. Fixing.

[[email protected] data]# df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/sda2        96G  2.5G   89G   3% /

/dev/sda4       1.7T  488G  1.2T  31% /data

/dev/sdb1        29G   11G   19G  37% /mnt


mount -t ntfs-3g <NTFS Partition> <Mount Point>


4、開機自動掛載

在/etc/fstab裡面添加如下格式語句

<NTFS Partition> <Mount Point> ntfs-3g silent,umask=0,locale=zh_CN.utf8 0 0


5、掛載點卸載

umount <NTFS Partition> 或者 umount <Mount Point>


centos 6.8 掛載NTFS移動硬碟

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.