How to mount NTFS HDD on CentOS

1) portable HDD

su

yum install yum-priorities

rpm -ivh http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
(CentOS 5)

rpm -ivh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
(CentOS 6)

yum -y install kernel-headers

yum –enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse

2) SATA HDD

(우선 Add/Remove Software에서 fuse-ntfs-3g 가 설치되어 있어야 함)

su

fdisk -l 하면 다음과 같이 출력된다.

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       63741   511999551    7  HPFS/NTFS
/dev/sda2           63742      121601   464760450    f  W95 Ext’d (LBA)
/dev/sda5           63742      121601   464760418+   7  HPFS/NTFS

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   83  Linux
/dev/sdb2              14      121601   976655610   8e  Linux LVM

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       60801   488384000+   c  W95 FAT32 (LBA)

sda1을 마운트 해보자.

mkdir /winHDD 해서 마운트할 디렉토리를 만든 다음.

ntfs-3g /dev/sda1 /winHDD

답글 남기기