linux系统下如何挂载NTFS移动硬盘
首先查看一下你的硬盘在linux 里面叫什么名字
fdisk -l
它会打印出所有识别到的硬盘,然后你通过硬盘大小,找一下你自己新增磁盘
例如:
Disk /dev/sdb: 5725.6 GB, 5725561552896 bytes
255 heads, 63 sectors/track, 696093 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda: 268.4 GB, 268434407424 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007c4cf
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 32636 261629952 8e Linux LVM
Disk /dev/mapper/vg_system-lv_root: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_system-lv_swap: 8053 MB, 8053063680 bytes
255 heads, 63 sectors/track, 979 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_data-lv_data: 5725.6 GB, 5725560504320 bytes
255 heads, 63 sectors/track, 696093 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
我知道了新增磁盘是 /dev/sdc1
mount盘
新建一个/tt 的目录,然后指定磁盘的文件格式,再将磁盘mount 上去
mkdir/ttmount-t ntfs-3g /dev/sdc1 /tt -o force
lsblk 看一下移动硬盘的磁盘标示符
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 5.2T 0 disk
└─vg_data-lv_data (dm-2) 253:2 0 5.2T 0 lvm /data/c03n02
sda 8:0 0 250G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 249.5G 0 part
├─vg_system-lv_root (dm-0) 253:0 0 100G 0 lvm /
└─vg_system-lv_swap (dm-1) 253:1 0 7.5G 0 lvm [SWAP]
sr0 11:0 1 1024M 0 rom
二、安装与挂载
步骤一:解压安装NTFS-3G。
# tar -xvzf ntfs-3g_ntfsprogs-2012.1.15.tgz
# cd ntfs-3g_ntfsprogs-2012.1.15
# ./configure
# make
# make install
之后系统会提示安装成功,下面就可以用ntfs-3g来实现对NTFS分区的读写了
步骤二:配置挂载NTFS格式的移动硬盘
1. 首先得到NTFS分区的信息
# sudo fdisk -l | grep NTFS
[root@DB-Server klb]# sudo fdisk -l | grep NTFS
/dev/sdc1 * 1 244 1955776+ 7 HPFS/NTFS
2. 设置挂载点,用如下命令实现挂载
# mount -t ntfs-3g
例如得到的NTFS分区信息为/dev/sdc1,挂载点设置在/mnt/usb下,可以用
# mount -t ntfs-3g /dev/sdc1 /mnt/usb
或者直接用
# ntfs-3g ntfs-3g /dev/sdc1 /mnt/usb
3. 如果想实现开机自动挂载,可以在/etc/fstab里面添加如下格式语句
ntfs-3g silent,umask=0,locale=zh_CN.utf8 0 0
这样可以实现NTFS分区里中文文件名的显示。
4. 卸载分区可以用umount实现,用
# umount
原文链接
西数的8T硬盘最后通过https://www.jianshu.com/p/285cd90727fb
mount -t exfat /dev/sdbX(X是你的盘号) udisk