NTFS-3G
Data: Sabato, 07 ottobre 2006
Circa un mese fa è uscita una mia guida sullo stesso argomento  sul portale  www.suseitalia.org
 http://www.suseitalia.org/modules/wfsection/article.php?articleid=81
nella quale indicavo in un commento la via da seguire su fedora 5:
su fedora5 si procede allo stesso modo ,solo bisogna ricordarsi di installare anche il pkg fuse-libs-2.5.3-1.fc5.i386.rpm
ivi era stato segnalato che la strada del supporto ntfs gia esiste in beta è promette bene il drive si chiama ntfs-3g!

quindi qui proviamo questa via alternativa  usando Fedora 5 -- per le altre distro il discorso è uguale

vado sul sito http://fuse.sourceforge.net
scarico il pkg fuse-2.5.3.tar.gz lo scompatto
#tar xvzf fuse-2.5.3.tar.gz

e lo installo
#cd fuse-2.5.3
#./configure && make && make install
poi vado sul sito
http://mlf.linux.rulez.org/mlf/ezaz/ntfs-3g-download.html
scarico il pkg  lo scompatto
#tar xvzf ntfs-3g-20070920-BETA.tgz
lo installo
#cd /home/kio/ntfs-3g-20070920-BETA
#/configure && make && make install
monto la partizione ntfs in read/write
#mount -t ntfs-3g /dev/hda1 /mnt/win
e bingooooooooooooooo!
la smonto
#umount /mnt/win
e se non volessi installare i sorgenti  ma gli rpm per comodità in una eventuale rimozione? che faccio?
mi scarico rpm  di ckechinstall  cercandolo da
http://rpmfind.net/linux/RPM/  a meno che non voglia usare  yum
#rpm -ivh checkinstall-1.6.0-3.fc3.rf.i386.rpm
poi
rientro nelle 2 dir dove ho scompattato i tar.gz
e do
#cd /home/kio/ntfs-3g-20070920-BETA
#./configure && make && checkinstall
****************
Done. The new package has been saved to

 /usr/src/redhat/RPMS/i386/ntfs-3g-20070920-BETA-1.i386.rpm
 You can install it in your system anytime using:
   rpm -i ntfs-3g-20070920-BETA-1.i386.rpm
****************
analogamente per fuse!
che dire ancora più semplice e lineare  dell'altro metodo illustrato nell'altra guida gemella
IMPORTANTE:per il montaggio automatico allo startup basta inserire in /etc/fstab il seguente statemant
#/dev/hda1 /mnt/win ntfs-3g rw,user 0 0
e la partizione è montata in read/write for all

INCONVENIENTI LAMENTATI :NESSUNO-EVITARE DI USARE IN AMBIENTI DI PRODUZIONE  O IN PARTIZIONI CONTENENTI DATI SENSIBILI !

PS1=per dovere di cronaca segnalo questa guida di Moreno nel quale il problema è rovesciato cioè da Wndows scriviamo nelle partizioni linux Ext3 la guida è reperibile qui http://www.mandrakeitalia.org/modules/wfsection/article.php?articleid=191    anche se a mio avviso lascia il tempo che trova!

PS2=una analoga quida per la distro slackware è reperibile qui  http://www.slacky.it/wikislack/index.php?title=Scrivere_su_filesystem_NTFS

PS3= certo con i il repos di livna attivato ora
è' veramente molto facile aggiungere a Fedora-6 il supporto all'NTFS utilizzando :
# yum -y install ntfs-3g 

e fa tutto lui, poi si prosegue come suindicato!


Appendice

su slackware 11 e derivate come procediamo???

seguo la mia guida http://xoomer.alice.it/lucky341/NTFS.html

il pkg fuse  installato è il  2.5.3 lo devo solo upgradare - vado sul sito

http://fuse.sourceforge.net

e scarico la nuova versione fuse-2.6.0.tar.gz

#tar xvzf fuse-2.6.0.tar.gz

#cd fuse-2.6.0

#./configure && make && checkinstall

poi

#upgradepkg fuse-2.6.0-i386-1.tgz

poi dal sito

http://www.ntfs-3g.org/index.html

scarico l'ultima versione del drive ntfs-3g

che installo con il metodo sopra visto

#installpkg ntfs-3g-0.20061115-BETA-i386-1.tgz

poi

#mount -t ntfs-3g /dev/sda1 /mnt/win

ma incappo in un errore gossolano fuse:no such device

mentre il modulo c'è ed è caricato -che faccio????

su google non si cava un ragno dal buco

allora torno indietro rimuovo il pkg ntfs-3g-0.20061115-BETA-i386-1.tgz

cerco il driver precedente su internet lo trovo su

http://gentoo.netnitco.net/distfiles

ovvero se non più disponibile su   http://xoomer.alice.it/lucky341/ntfs-3g-20070920-BETA.tgz 

ntfs-3g-20070920-BETA.tgz

solito lavoro

# tar xvzf ntfs-3g-20070920-BETA.tgz

#cd ntfs-3g-20070920-BETA

#./configure && make && checkinstall

#installpkg ntfs-3g-20070920-BETA-i386-1.tgz

#mount -t ntfs-3g /dev/sda1 /mnt/win

e bingooooooooooooooooooo!!!!!!!!!!!!!!!

IMPORTANTE:per il montaggio automatico allo startup basta inserire in /etc/fstab il seguente statemant
#/dev/sda1 /mnt/win ntfs-3g rw,user 0 0
e la partizione è montata in read/write for all

Per smontare la partizione
#umount /mnt/win

e su suse 10.2????????????????

seguo la mia guida
http://xoomer.alice.it/lucky341/NTFS.html

installo checkinstall
linux-suse:~ # smart install checkinstall
Loading cache...
Updating cache... ######################################## [100%]

Computing transaction...

Installing packages (1):
checkinstall-1.6.0-34@i586

68.6kB of package files are needed. 221.2kB will be used.

Confirm changes? (Y/n): y

lnux-suse:~ #

vado sul sito http://fuse.sourceforge.net
scarico il pkg fuse-2.6.1.tar.gz lo scompatto
#tar xvzf fuse-2.6.1.tar.gz

e lo installo
#cd fuse-2.6.1
#./configure && make && checkinstall
Done. The new package has been saved to
/usr/src/packages/RPMS/i386/fuse-2.6.1-1.i386.rpm
You can install it in your system anytime using:

rpm -i fuse-2.6.1-1.i386.rpm
# rpm -ivh /usr/src/packages/RPMS/i386/fuse-2.6.1-1.i386.rpm
Preparing... ########################################### [100%]
1:fuse ########################################### [100%]
linux-suse:/home/kio/fuse-2.6.1 #
linux-suse:/home/kio/fuse-2.6.1 # modprobe fuse
linux-suse:/home/kio/fuse-2.6.1 #

poi i vado sul sito
http://mlf.linux.rulez.org/mlf/ezaz/ntfs-3g-download.html
scarico il pkg lo scompatto
#tar xvzf ntfs-3g-20070102-BETA.tgz
lo installo
#cd /home/kio/ntfs-3g-20070102-BETA
#/configure && make && checkinstall

Done. The new package has been saved to

/usr/src/packages/RPMS/i386/ntfs-3g-0.20070102-BETA-1.i386.rpm
You can install it in your system anytime using:

rpm -i ntfs-3g-0.20070102-BETA-1.i386.rpm

linux-suse:~ # rpm -ivh /usr/src/packages/RPMS/i386/ntfs-3g-0.20070102-BETA-1.i386.rpm
Preparing... ########################################### [100%]
1:ntfs-3g-0.20070102 ########################################### [100%]
linux-suse:~ #

provo a montare
linux-suse:~ # mkdir /mnt/win
linux-suse:~ # mount -t ntfs-3g /dev/hda1 /mnt/win
/sbin/mount.ntfs-3g: error while loading shared libraries: libntfs-3g.so.0: cannot open shared object file: No such file or directory
restarto rimonto ma incappo in un errore gossolano

fusermount: 'fuseblk' support missing; try the kernel module from fuse-2.6.0 or later
Failed to create FUSE mount point.
Retry to create FUSE mount point ...
fusermount: 'fuseblk' support missing; try the kernel module from fuse-2.6.0 or later
Failed to create FUSE mount point.
Unmounting /dev/hda1


mentre il modulo c'è ed è caricato -che faccio????
vedi pure
http://forum.ntfs-3g.org/viewtopic.php?t=14

allora torno indietro rimuovo il pkg ntfs-3g-20070102-BETA-i386-1.rpm
cerco un driver precedente funzionante su internet lo trovo su
http://gentoo.netnitco.net/distfiles/ cioè ntfs-3g-20070920-BETA.tgz

ovvero se non più disponibile su     http://xoomer.alice.it/lucky341/ntfs-3g-20070920-BETA.tgz

solito lavoro
restarto
# mkdir /mnt/win
#mount -t ntfs-3g /dev/hda1 /mnt/win e bingoooooooooooooooo!!!!!!!!!!!!
IMPORTANTE:per il montaggio automatico allo startup basta inserire in /etc/fstab il seguente statemant
#/dev/hda1 /mnt/win ntfs-3g rw,user 0 0
e la partizione è montata in read/write for all
Per smontare la partizione
#umount /mnt/win

-In un altra installazione 21/01/2007 ho fatto così

1-con yast ho installato checkinstall e GCC--GCC-C++
2-vado sul sito http://fuse.sourceforge.net

scarico il pkg fuse-2.6.1.tar.gz lo scompatto
#tar xvzf fuse-2.6.1.tar.gz
e lo installo
#cd fuse-2.6.1
#./configure && make && checkinstall
Done. The new package has been saved to
/usr/src/packages/RPMS/i386/fuse-2.6.1-1.i386.rpm
You can install it in your system anytime using:

rpm -i fuse-2.6.1-1.i386.rpm
# rpm -ivh /usr/src/packages/RPMS/i386/fuse-2.6.1-1.i386.rpm
Preparing... ########################################### [100%]
1:fuse ########################################### [100%]
linux-suse:/home/kio/fuse-2.6.1 #

3-poi i vado sul sito
http://www.ntfs-3g.org/ntfs-3g-0.20070118-BETA.tgz
scarico il pkg lo scompatto
#tar xvzf ntfs-3g-20070118-BETA.tgz
lo installo
#cd /home/kio/ntfs-3g-20070118-BETA
#/configure && make && checkinstall

Done. The new package has been saved to

/usr/src/packages/RPMS/i386/ntfs-3g-0.20070102-BETA-1.i386.rpm
You can install it in your system anytime using:

rpm -i ntfs-3g-0.20070118-BETA-1.i386.rpm

linux-suse:~ # rpm -ivh /usr/src/packages/RPMS/i386/ntfs-3g-0.20070118-BETA-1.i386.rpm
Preparing... ########################################### [100%]
1:ntfs-3g-0.20070118 ########################################### [100%]
linux-suse:~ #


provo a montare
linux-suse:~ # mkdir /mnt/win
linux-suse:~ # mount -t ntfs-3g /dev/hda1 /mnt/win
/sbin/mount.ntfs-3g: error while loading shared libraries: libntfs-3g.so.0: cannot open shared object file: No such file or directory
restarto

4-suse:~ # mount -t ntfs-3g /dev/hda1 /mnt/win
WARNING: Old FUSE kernel module detected. This means, some driver features
are not available (swap file on NTFS, boot from NTFS by LILO),
and unmount is not safe unless you make sure the ntfs-3g process
naturally terminates after calling 'umount'. The safe FUSE kernel
driver is included in the official Linux kernels since version
2.6.20-rc1, or in the FUSE 2.6 software package. Please see the
next page for more help: http://www.ntfs-3g.org/support.html#fuse26

tutto qui!
e su Debian testing/sid????????????????
su debian è banale
fuse è già installato -tramite fuse util
allora
debian:~# apt-get install  ntfs-3g
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso... Fatto
I seguenti pacchetti NUOVI (NEW) saranno installati:
  ntfs-3g
0 aggiornati, 1 installati, 0 da rimuovere e 221 non aggiornati.
È necessario prendere 0B/25,8kB di archivi.
Dopo l'estrazione, verranno occupati 98,3kB di spazio su disco.
Preconfigurazione dei pacchetti in corso
Selezionato il pacchetto ntfs-3g, che non lo era.
(Lettura del database ... 126134 file e directory attualmente installati.)
Spacchetto ntfs-3g (da .../ntfs-3g_1%3a0.0.0+20061031-4_i386.deb) ...
Configuro ntfs-3g (0.0.0+20061031-4) ...
Setting ntfs-3g suid root with group fuse...done
Users from 'fuse' group can now mount NTFS volume.

debian:~# mount -t ntfs-3g /dev/hda1 /mnt/win


IMPORTANTE:per il montaggio automatico allo startup basta inserire in /etc/fstab il seguente statemant
#/dev/hda1 /mnt/win ntfs-3g rw,user 0 0
e la partizione è montata in read/write for all

e su Mandriva -2007???????

[root@localhost ~]# rpm -qa fuse
[root@localhost ~]# smart install fuse
Caricando la cache...
Updating cache...               ######################################## [100%]

Computing transaction...

Installing packages (1):
  fuse-2.5.3-3mdk@i586

54.6kB sono necessari per i pacchetti.Saranno usati 139.1kB.

Confermi i cambiamenti? (S/n):s

Sto ricevendo pacchetti...
-> http://ftp.club-internet.fr/pub/unix/linux/.../fuse-2.5.3-3mdk.i586.rpm
fuse-2.5.3-3mdk.i586.rpm        ######################################## [100%]


Sto eseguendo la transizione...
Preparazione...                 ######################################## [  0%]
   1:Sto installando fuse       ######################################## [100%]

Salvando la cache...


[root@localhost ~]# smart install ntfs-3g
Caricando la cache...
Updating cache...               ######################################## [100%]

Computing transaction...

Installing packages (3):
  libfuse2-2.5.3-3mdk@i586
  libntfs-3g0-0.1-0.20070714.2mdv2007.0@i586
  ntfs-3g-0.1-0.20070714.2mdv2007.0@i586

160.8kB sono necessari per i pacchetti.Saranno usati 308.5kB.

Confermi i cambiamenti? (S/n):s

Sto ricevendo pacchetti...
-> http://distrib-coffee.ipsl.jussieu.fr/.../ntfs-3g-0.1-0.20070714.2mdv2007.0.i586.rpm
-> http://ftp.club-internet.fr/pub/unix/linux/.../libfuse2-2.5.3-3mdk.i586.rpm
libfuse2-2.5.3-3mdk.i586.rpm    ######################################## [ 33%]
-> http://distrib-coffee.ipsl.jussieu.fr/.../libntfs-3g0-0.1-0.20070714.2mdv2007.0.i586.rpm
libntfs-3g0-0.1-0.20070714.2m.. ######################################## [ 66%]
ntfs-3g-0.1-0.20070714.2mdv20.. ######################################## [100%]


Sto eseguendo la transizione...
Preparazione...                 ######################################## [  0%]
   1:Sto installando libntfs-.. ######################################## [ 33%]
   2:Sto installando libfuse2   ######################################## [ 66%]
   3:Sto installando ntfs-3g    ######################################## [100%]

Salvando la cache...

[root@localhost ~]# mkdir /mnt/win
[root@localhost ~]# mount -t ntfs-3g /dev/hda1 /mnt/win
The device /dev/hda1, is mounted.
Use the force option to work a mounted filesystem.
Mount failed.
[root@localhost ~]# umount /dev/hda1
[root@localhost ~]# mount -t ntfs-3g /dev/hda1 /mnt/win
fusermount: failed to open /dev/fuse: No such file or directory
fuse_mount failed.
Unmounting /dev/hda1 ()
[root@localhost ~]# modprobe fuse
[root@localhost ~]# mount -t ntfs-3g /dev/hda1 /mnt/win
[root@localhost ~]#          
riavvio ma il modulo non risulta caricato allora aggiungo  in /etc/modprobe.preload
***********
# /etc/modprobe.preload: kernel modules to load at boot time.
fuse
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a `#', and everything on the line after them are ignored.
# this file is for module-init-tools (kernel 2.5 and above) ONLY
# for old kernel use /etc/modules
*************
poi ho ricondizionato /etc/fstab per il montaggio automatico al boot della partizione for all
/dev/hda1 /mnt/win  ntfs-3g   umask=0,rw,users  0 0
bingooooooooooo!!!!!

su una derivata di mandriva :  PcLinuxOS-2007 RC1 è ancora più facile-
il modulo fuse una volta installato si carica automaticamente:

[root@localhost ~]#  rpm -qa fuse
[root@localhost ~]# apt-get install fuse
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  fuse
0 upgraded, 1 newly installed, 0 removed and 111 not upgraded.
Need to get 84.0kB of archives.
After unpacking 238kB of additional disk space will be used.
Get:1 http://ftp.heanet.ie pclinuxos/2007/main fuse 2.6.1-1pclos2007 [84.0kB]
Fetched 84.0kB in 2s (31.6kB/s)
Committing changes...
Preparing...                ########################################### [100%]
   1:fuse                   ########################################### [100%]
Done.
[root@localhost ~]#


[root@localhost ~]# apt-get install ntfs-3g
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libfuse2 libntfs-3g0
The following NEW packages will be installed:
  libfuse2 libntfs-3g0 ntfs-3g
0 upgraded, 3 newly installed, 0 removed and 111 not upgraded.
Need to get 181kB of archives.
After unpacking 360kB of additional disk space will be used.
Do you want to continue? [Y/n] y   

[root@localhost ~]# mkdir /mnt/win
[root@localhost ~]#  mount -t ntfs-3g /dev/hda1 /mnt/win
WARNING: Old FUSE kernel module detected. This means, some driver features
         are not available (swap file on NTFS, boot from NTFS by LILO),
         and unmount is not safe unless you make sure the ntfs-3g process
         naturally terminates after calling 'umount'. The safe FUSE kernel
         driver is included in the official Linux kernels since version
         2.6.20-rc1, or in the FUSE 2.6 software package. Please see the
         next page for more help: http://www.ntfs-3g.org/support.html#fuse26

[root@localhost ~]#
 
poi ho ricondiziono /etc/fstab per il montaggio automatico al boot della partizione for all
/dev/hda1 /mnt/win  ntfs-3g   umask=0,rw,users  0 0
bingooooooooooo!!!!!
  

In ambiente Gentoo(sabayon)

vado sul sito http://fuse.sourceforge.net
scarico il pkg fuse-2.6.1.tar.gz lo scompatto
#tar xvzf fuse-2.6.1.tar.gz

e lo installo
#cd fuse-2.6.1
#./configure && make && make install
poi i vado sul  sito
http://mlf.linux.rulez.org/mlf/ezaz/ntfs-3g-download.html
scarico il pkg lo scompatto
#tar xvzf ntfs-3g-20070102-BETA.tgz
lo installo
#cd /home/kio/ntfs-3g-20070102-BETA
#/configure && make && cmake install
anche se in seguito mi sono accorto che  il driver ntfs3g, è presente nel portage (e provandolo ad installare mi dava errore)
reboot
#mkdir /mnt/win
# mount -t ntfs-3g /dev/sda1 /mnt/win

IMPORTANTE:per il montaggio automatico allo startup basta inserire in /etc/fstab il seguente statemant
#/dev/sda1 /mnt/win ntfs-3g rw,user 0 0
e la partizione è montata in read/write for all

KIO

guida inserita nella versione nella versione 6.2  di  http://www.manualinux.com/