How to access NTFS from CentOS 5 using ntfs3g
We need to install ntfs-3g driver, which can be downloaded from here ntfs-3g-2009.2.zip.
Check to see if you have the required pacakge, FUSE 2.6.0 or later. We
assume the system already has one. If not, read the post Installing FUSE (Filesystem in Userspace) first and come back
# yum list installed | grep fuse
Download the source code, ntfs-3g-1.913.tgz.
Extract the source codes.
# tar xvzf ntfs-3g-1.913.tgz
Install ntfs-3g driver by typing
# cd ntfs-3g-1.913
# ./configure
# make
# make install
Try to mount NTFS hard disk. In the command below, /dev/sdb1 and
/mnt/windows can be changed appropriately, if needed.
# mkdir /mnt/windows
# mount -t ntfs-3g /dev/sdb1 /mnt/windows
If it had already been mounted somehow, unmount it first.
# umount /meia/My\ Book/
# mount -t ntfs-3g /dev/sdb1 /mnt/windows
Sometimes, you may need to enforce mounting like
# mount -t ntfs-3g /dev/sdb1 /mnt/windows -o force
To unmount the volume, type
# umount /mnt/windows
To mount and unmount the volume with non-root account, type
$ ntfs-3g /dev/sdb1 /mnt/windows/
$ fusermount -u /mnt/windows/
To see the mounting information, type
# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /mnt/windows type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
# more /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

0 komentar:
Post a Comment