《LINUX入門:CentOS 6.8 掛載NTFS格式移動硬盤》要點(diǎn):
本文介紹了LINUX入門:CentOS 6.8 掛載NTFS格式移動硬盤,希望對您有用。如果有疑問,可以聯(lián)系我們。
CentOS 掛載NTFS格式硬盤時(shí)會報(bào)錯(cuò)unknown filesystem type 'ntfs',這時(shí)就必要用到第三方的插NTFS-3G來加載NTFS格式硬盤.其中NTFS-3G是一個(gè)開源軟件,支持在Linux, FreeBSD, Mac OS X, NetBSD, Haiku操作系統(tǒng)下讀寫NTFS格式的分區(qū).本文只針對CentOS6的64位系統(tǒng),主要的操作步驟如下:
1、下載centos6-ntfs.zip
可以到Linux公社資源站下載:
------------------------------------------朋分線------------------------------------------
免費(fèi)下載地址在 http://linux.linuxidc.com/
用戶名與暗碼都是www.linuxidc.com
具體下載目錄在 /2017年材料/6月/11日/CentOS 6.8 掛載NTFS移動硬盤/
下載辦法見
------------------------------------------朋分線------------------------------------------
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、掛載移動硬盤
[root@linuxidcdata]# 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
?
[root@linuxidcdata]# 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.
[root@linuxidcdata]# 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、開機(jī)自動掛載
在/etc/fstab里面添加如下格局語句
<NTFS Partition> <Mount Point> ntfs-3g silent,umask=0,locale=zh_CN.utf8 0 0
?
5、掛載點(diǎn)卸載
umount <NTFS Partition> 或者 umount <Mount Point>
本文永遠(yuǎn)更新鏈接地址:
維易PHP培訓(xùn)學(xué)院每天發(fā)布《LINUX入門:CentOS 6.8 掛載NTFS格式移動硬盤》等實(shí)戰(zhàn)技能,PHP、MYSQL、LINUX、APP、JS,CSS全面培養(yǎng)人才。
轉(zhuǎn)載請注明本頁網(wǎng)址:
http://www.snjht.com/jiaocheng/12112.html