today to help customers mount a USB mobile hard drive 4t,ntfs format, encountered some problems, summary records as follows,
system
#fdisk-L
have seen a 4T hard drive
Warning:gpt (GUID Partition Table) detected on '/DEV/SDC '! The util Fdisk doesn ' t support GPT. Use GNU Parted.
disk/dev/sdc:4000.8 GB, 4000787029504 bytes
256 heads, Sectors/track, 484501 cylinders
Units = Cylinders of 16128 * 8257536 bytes
Sector size (logical/physical): bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk Identifier:0x0fecfae6
Device Boot Start End Blocks Id System
/DEV/SDC1 1 266306 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.
To mount a removable hard disk:
# Mount–t ntfs/dev/sdc1/mnt/windows
Mount:unknown filesystem type ' NTFS '
Tip the NTFS-formatted partition is not recognized.
Solution:
Solved by using ntfs-3g.
Open the ntfs-3g download point http://www.tuxera.com/community/ntfs-3g-download/, the latest stable (current version is Ntfs-3g_ ntfsprogs-2016.2.22), download to CentOS, and perform the following command installation:
1) Compile and install ntfs-3g:
# tar ZXVF ntfs-3g_ntfsprogs-2016.2.22.tgz
# CD ntfs-3g_ntfsprogs-2016.2.22
#./configure
#make
#make Install
Found on the Internet, the same way to install or not to mount, and finally found a way in the official station, as follows:
[Root@localhost ~]# mount-t ntfs-3g/dev/sdc1/mnt/windows
NTFS signature is missing.
Failed to Mount '/DEV/SDC1 ': Invalid parameter
The device '/dev/sdc1 ' doesn ' t seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
Partition (e.g/dev/sda, not/dev/sda1)? Or the other way around?
It's an error,
-------------------------------------------------------------------------
Try to view the 4T hard drive partition #lsblk
NAME maj:min RM SIZE RO TYPE mountpoint
SDC 8:32 0 3.7T 0 disk
|-SDC1 8:33 0 128M 0 part
'-sdc2 8:34 0 3.7T 0 part/mnt/windows partition is on SDC2
SDA 8:0 0 111.3G 0 disk
|-SDA1 8:1 0 500M 0 part/boot
'-sda2 8:2 0 110.8G 0 part
|-volgroup-lv_root (dm-0) 253:0 0 50G 0 LVM/
|-volgroup-lv_swap (dm-1) 253:1 0 7.8G 0 LVM [swap]
'-volgroup-lv_home (dm-2) 253:2 0 53G 0 lvm/home
SDB 8:16 0 10.9T 0 disk
'-sdb1 8:17 0 10.9T 0 Part/fairpur
Sr0 11:0 1 1024M 0 rom
[Root@localhost ~]# mount-t ntfs-3g/dev/sdc2/mnt/windows
Success, you can see the data
This can be mounted, if you want to boot up, on the Mount, edit the/etx/fstat file
If you just want to copy the data, you don't have to start with it:
/dev/sdc2/mnt/windows ntfs-3g Defaults 0 0
Finally, we can use Mount/mnt/windows to detect the error of fstab file modification
Copy data
#cp-R-f/mnt/windows/*/www/copy (and overwrite not prompt)
If there is a hint here or you want to enter y one override input
# VI ~/.BASHRC
Add "#" to the alias cp= ' Cp-i ' to comment out the line: wq! save and launch, and then log back on.
View a folder file size
#du-H--max-depth=1/mnt/windows/images
356m/mnt/windows/images/201608
116m/mnt/windows/images/201609
1.5m/mnt/windows/images/avatar
8.3g/mnt/windows/images/buy
581g/mnt/windows/images/content
193g/mnt/windows/images/thumb
783g/mnt/windows/images/This folder totals 783G
Can be used to compare copies of past data to see if there is a complete comparison