CentOS 6.8 挂载NTFS格式移动硬盘

1、下载centos6-ntfs.zip

可以到Linux公社资源站下载:

------------------------------------------分割线------------------------------------------

具体下载目录在 /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、挂载移动硬盘

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

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

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

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>

猜你喜欢

转载自www.linuxidc.com/Linux/2017-06/144580.htm