NFTS格式移动硬盘挂载,必须要系统支持NTFS文件系统,所以在挂载之前需要安装ntfs软件包。
1、执行如下命令安装 ntfs-3g:
yum install -y ntfs-3g
2、查看接入的移动硬盘设备名称
[root@test-228 ~]# fdisk -lWARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.磁盘 /dev/sde:4000.8 GB, 4000787029504 字节,7814037167 个扇区Units = 扇区 of 1 * 512 = 512 bytes扇区大小(逻辑/物理):512 字节 / 4096 字节I/O 大小(最小/最佳):4096 字节 / 33553920 字节磁盘标签类型:gptDisk identifier: 58A31A1C-BA4A-460A-8168-3FC73CDC6D56# Start End Size Type Name 1 34 262177 128M Microsoft reser Partition 1 does not start on physical sector boundary. 2 264192 7814035455 3.7T Microsoft basic Basic data partition
3、正确挂载方式
- 3-1、错误挂载方式
[root@mada-228 ~]# mount -t ntfs-3g /dev/sde1 /newntfsNTFS signature is missing.Failed to mount '/dev/sde1': 无效的参数The device '/dev/sde1' doesn't seem to have a valid NTFS.Maybe the wrong device is used? Or the whole disk instead of apartition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
- 3-2、正确挂载方式 读取第2数据分区
[root@test-228 ~]# mount -t ntfs-3g /dev/sde2 /newntfs[root@test-228 ~]# ll /newntfs/总用量 4drwxrwxrwx 1 root root 4096 11月 15 15:26 $RECYCLE.BINdrwxrwxrwx 1 root root 0 11月 11 18:35 System Volume Informationdrwxrwxrwx 1 root root 0 10月 21 10:05 test