2009-10-02

Ntfs-3g

Решил выложить ранее уже опубликованный мной отчет о монтировании разделов ntfs в линуксе с использованием утилиты ntfs-3g.


HOWTO: Mount ntfs partitions in linux with ntfs-3g package

For mounting ntfs partitions under linux we will use ntfs-3g package, which can be downloaded for example from search page http://rpm.pbone.net/

This example is for Fedora 6.

1. Current work directory
 
[root@bm rpms]# pwd
     /usr/src/rpms

2. Download ntfs-3g-devel-1.913-2.fc6.i386.rpm :
 
[root@bm rpms]# wget ftp://mirror.switch.ch/mirror/fedora/linux/extras/6/i386/ntfs-3g-devel-1.913-2.fc6.i386.rpm 

3. Now try to install downloaded package:
 
[root@bm rpms]# rpm -vhi ntfs-3g-devel-1.913-2.fc6.i386.rpm 
     <...> 
error: Failed dependencies:
                  libntfs-3g.so.12 is needed by ntfs-3g-devel-1.913-2.fc6.i386
                  ntfs-3g = 2:1.913-2.fc6 is needed by ntfs-3g-devel-1.913-2.fc6.i386
but we see that some failed dependencies are present, so try to find them and then continue installation.

3.1 Download ntfs-3g = 2:1.913-2.fc6
 
[root@bm rpms]# wget ftp://mirror.switch.ch/mirror/fedora/linux/extras/6/i386/ntfs-3g-1.913-2.fc6.i386.rpm 
     <...> 

3.2 Trying to install downloaded package:
 
[root@bm rpms]# rpm -vhi ntfs-3g-1.913-2.fc6.i386.rpm 
<...> 
 
error: Failed dependencies:
             fuse is needed by ntfs-3g-1.913-2.fc6.i386
             libfuse.so.2 is needed by ntfs-3g-1.913-2.fc6.i386
             libfuse.so.2(FUSE_2.2) is needed by ntfs-3g-1.913-2.fc6.i386
             libfuse.so.2(FUSE_2.5) is needed by ntfs-3g-1.913-2.fc6.i386
             libfuse.so.2(FUSE_2.6) is needed by ntfs-3g-1.913-2.fc6.i386

but failed depencies appears again. For full install of ntfs-3g package fuse and fuse libs must be previously installed.


3.2.1 Download and install fuse libs :
 
[root@bm rpms]# wget ftp://mirror.switch.ch/mirror/fedora/linux/extras/6/i386/fuse-libs-2.7.0-6.fc6.i386.rpm
[root@bm rpms]# rpm -vhi fuse-libs-2.7.0-6.fc6.i386.rpm

3.2.2 Download and install fuse :
 
[root@bm rpms]# wget ftp://mirror.switch.ch/mirror/fedora/linux/extras/6/i386/fuse-2.7.0-6.fc6.i386.rpm

[root@bm rpms]# rpm -vhi fuse-2.7.0-6.fc6.i386.rpm

4. And finally installing ntfs-3g and ntfs-3g-devel :
 
[root@bm rpms]# rpm -vhi ntfs-3g-1.913-2.fc6.i386.rpm

[root@bm rpms]# rpm -vhi ntfs-3g-devel-1.913-2.fc6.i386.rpm

5. Now checking if really ntfs-3g installed in the system :
 
[root@bm rpms]# rpm -qa | grep ntfs
     ntfs-3g-1.913-2.fc6
     ntfs-3g-devel-1.913-2.fc6

6. How to use ntfs-3g.

There are two ways to use ntfs-3g for mounting ntfs partitions:

6.1 In the terminal command line anyone can type

[root@bm rpms]# ntfs-3g /dev/hda1 /mnt/drive_c 

or 

[root@bm rpms]# mount -t ntfs-3g /dev/hda1 /mnt/drive_c
for mounting windows system partition ( C: drive under windows ). 

6.2 Also we can put some strings into /etc/fstab file, and partitions will be mounted on system startup:
 
[root@bm]# cat /etc/fstab
<...> 

 
/dev/hda1         /mnt/drive_c            ntfs-3g rw,uid=1000     0 0
/dev/hda5         /mnt/drive_d            ntfs-3g rw,uid=1000     0 0
/dev/hda6         /mnt/drive_e            ntfs-3g rw,uid=1000     0 0

 
Any questions? Visit GSM-Center for more information. 
 

Комментариев нет:

Отправить комментарий