Solution to mounting ntfs usb flash drives in CentOS
Problem:
# Mount-t ntfs/dev/sdb1/mnt/usb
Mount: unknown filesystem type 'ntfs'
This is because partitions in NTFS format cannot be identified on CentOS release 5.3 (Final.
Solution:
Solved by using ntfs-3g.
Open the download point for the ntfs-3g http://www.tuxera.com/community/ntfs-3g-download/, download the latest stable (the latest version is ntfs-3g-2010.8.8.tgz) to CentOS, and run the following command to install:
1) Compile and install ntfs-3g:
#./Configure
# Make
# Make install (or sudo make install)
2) view USB device points
# Fdisk-l
Disk/dev/sda: 154.7 GB, 154750418432 bytes
255 heads, 63 sectors/track, 18814 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Device Boot Start End Blocks Id System
/Dev/sda1*1 13 104391 83 Linux
/Dev/sda2 14 18814 151019032 + 8e Linux LVM
Disk/dev/sdb: 500.1 GB, 500107861504 bytes
255 heads, 62 sectors/track, 61781 cylinders
Units = cylinders of 15810*512 = 8094720 bytes
Device Boot Start End Blocks Id System
/Dev/sdb1 1 61782 488384000 + 7 HPFS/NTFS
3) Mount NTFS partitions
# Mount-t ntfs-3g/dev/sdb1/mnt/usb
4) uninstall the NTFS partition
# Umount-l/mnt/usb