ntfs-3g

Differences between revisions 1 and 10 (spanning 9 versions)
Revision 1 as of 2006-08-16 23:54:23
Size: 7451
Editor: adsl-75-3-12-100
Comment:
Revision 10 as of 2006-10-09 11:57:29
Size: 5147
Editor: APuteaux-152-1-37-129
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
Based off givre's excellent guide, which can be found [http://ubuntuforums.org/showthread.php?t=217009 here].
Line 12: Line 13:
For DAPPER :
Line 13: Line 15:
deb http://givre.cabspace.com/ubuntu/ dapper main
deb-src http://givre.cabspace.com/ubuntu/ dapper main
deb http://givre.cabspace.com/ubuntu/ dapper main main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ dapper main main-all
deb http://flomertens.keo.in/ubuntu/ dapper main main-all
Line 17: Line 20:
For EDGY :
Line 18: Line 22:
deb http://flomertens.keo.in/ubuntu/ dapper main
deb-src http://flomertens.keo.in/ubuntu/ dapper main
deb http://givre.cabspace.com/ubuntu/ edgy main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ edgy main-all
deb http://flomertens.keo.in/ubuntu/ edgy main-all
Line 21: Line 26:

The main channel contains the ntfs-3g package and an up to date fuse package.

The main-all channel contains modified version of pmount and hal to have a better integration of ntfs-3g in the desktop.
If you don't want those package, just remove main-all.

If you use edgy, all needed packages are already in the ubuntu repo (main and universe), except the modified pmount, that is needed for removable device.


Packages are authenticated with a gpg key. To use it, you should execute one of the following command :

{{{
wget http://flomertens.keo.in/ubuntu/givre_key.asc -O- | sudo apt-key add -
wget http://givre.cabspace.com/ubuntu/givre_key.asc -O- | sudo apt-key add -
}}}
Line 25: Line 46:
1. Next you must [https://help.ubuntu.com/community/SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0 install] the '''''ntfs-3g''''' package for drivers and other tools. 2. Next you must [https://help.ubuntu.com/community/SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0 install] the '''''ntfs-3g''''' package for drivers and other tools.
Line 28: Line 49:
1. Find the name of your NTFS drive. In a terminal, type 3. Find the name of your NTFS drive. In a terminal, type
Line 46: Line 67:
/dev/<your partition> /media/<mount point> ntfs-3g silent,umask=007,gid=46,locale=en_US.utf8,no_def_opts,allow_other 0 0 /dev/<your partition> /media/<mount point> ntfs-3g defaults,locale=en_US.utf8 0 0
Line 55: Line 76:
Note: you can change your locale option (for example locale=fr_FR.utf8). See '''/var/lib/locales/supported.d/local''' to know which ones are supported. Note: you can change your locale option (for example locale=fr_FR.utf8). Execute 'locale -a' in a terminal to know which ones are supported.
Line 58: Line 79:
1. Finally, try it out :-): 4. Finally, try it out :-):
Line 60: Line 81:
{{{
sudo modprobe fuse
sudo umount /media/<mount point>
sudo mount /media/<mount point>
}}}

You should now be able to browse for files with Nautilus.
You'll need to restart your computer to the change to take effect.
Line 69: Line 84:
1. If it works well and you'd like to keep it, add the '''fuse''' module to the end of '''/etc/modules''' like so:

{{{
echo fuse | sudo tee -a /etc/modules > /dev/null
}}}

Tip: If you are using InitNG, look [https://help.ubuntu.com/community/InitNG#fuse here].

If you're having problems and would like to change things back to the way they were (you made a backup, didn't you?), type:
If you want to revert to your previous configuration :
Line 81: Line 88:
sudo rmmod fuse
Line 90: Line 96:
 * If you have an NTFS USB device, it's not recommended to add it to '''/etc/fstab''', because by definition '''/etc/fstab''' is static, whereas a removable device's name could change. If you want to easily manage your USB device, you can do it with a simple Nautilus script. To get it, install the '''ntfs-3g-nautilus-tools''' package and in a terminal type:  * About NTFS removable device :
Line 92: Line 98:
{{{
nautilus-script-manager enable mount_with_ntfs-3g
}}}

When plugged in, your device will be mounted with the NTFS driver, and by right-clicking > nautilus-script > mount_with_ntfs-3g you will be able to have full read/write access. And to unmount it, simply use right-click > eject.
The modified hal & pmount that i provide in the main-all channel, make NTFS removable device automatically mounted with ntfs-3g.
If you want to change this policy, have a look at :
For dapper : /usr/share/hal/fdi/policy/10osvendor/15-ntfs-policy.fdi
For edgy : /etc/hal/fdi/policy/15-ntfs-policy.fdi
Line 108: Line 112:
= Known Bugs = = Known Issues =
Line 110: Line 114:
 * (fixed in ntfs-3g-20070811-BETA) You may encounter problems when moving a non empty ''directories'' (files are ok) created in Windows to a another directory on the same partition (in 50% of the cases).
  * Workaround: always copy/paste/delete instead of moving directories.
  * If you already encountered an error or a problem, don't worry, a simple chkdsk in windows will solve the problem with no (hopefully) no loss.
 * Some files created by certain antivirus programs (AVG for exemple) will not be able to be moved or deleted using ntfs-3g. This is probably due to the fact that encrypted files are not yet supported.

 * If you get the following error:

{{{
Couldn't mount device '/dev/hdb1': Operation not supported Windows did not shut down properly. Try to mount volume in windows, shut down and try again. Mount failed.
}}}

ntfs-3g needs a clean partition before mounting it. This is to prevent any corruption of data. If the partition wasn't unmounted properly (suspend, hibernate, hard reboot, reset...), you will need to boot into Windows and fix the disk first.

 * (changed with version 20070803-BETA, see below)
Quote:
I've mounted 2 NTFS partitions, Windows and Data2, and they're both accessible from Nautilus, But ubuntu only shows the first one on the Desktop, as well as under Places.
Unfortunatly, there is no solution for this problem. ntfs-3g use fuse to mount partition. The system refer to /dev/fuse which refer to all the partition it control... So all for the system, it's like that all your NTFS partition are /dev/fuse. If you do 'more /etc/mtab' in a terminal, you will see it. The consequence is that gnome can only show one (the first one) on the desktop and on place.
If you want to be able to access them quikly, you can make a bookmark in nautilus, or you could also mount you partition in your home.
Ex:you can make a directory call windows in your home and change the mount point to /home/<your username>/windows in /etc/fstab.

 * (fixed with patched hal, upgrade to version 0.5.7-1ubuntu19givre1)
Quote:
none of my driver are in the desktop with the latest driver
Things change with the 20070803-BETA release, they fix the /dev/fuse problem, and now /etc/mtab show the good device, but gnome don't put anymore icone on the desktop. I don't know why yet. I'll try to find a good workaround. For the moment the only thing you can do are describe in common problem 2.
The present limitations of this driver are
  * access to encrypted files
  * writing compressed files
  * change file ownership and access right
Line 136: Line 120:
16 august 2006 :
* New version of ntfs-3g-nautilus-tools, 0.7 :
- some cleanup & bugfixing, not more.
Line 140: Line 121:
14 august 2006 :
* Solution for hal bug is now resolve. I patched it so it can manage fuse device. Be sure that you have upgrade hal to version 0.5.7-1ubuntu19givre1
* New version of ntfs-3g-nautilus-tools, 0.7 :
- now ntfs-3g-monitor & umount_ntfs-3g are obsolete
- to unmount you can now use the normal eject option.
- no more need libnotify-bin
22 september 2006 :
New upstream release : ntfs-3g-20070920-BETA
  * fix: file creation at disk-full may lead to i/o errors
  * fix: statistic of inodes and free inodes was incorrect (df -i)
  * fix: the 'umask' option wasn't always parsed as an octal number
  * fix: "too long filename" handling wasn't posix compliant
  * fix: mount failed if $MFTMirr had unused garbage at the file end
Line 147: Line 129:
11 august 2006 :
* New upstream release : ntfs-3g-20070811-BETA
- fix directory rename
- fix collision with ntfsprogs developer header files

10 august 2006 :
* New version of ntfs-3g-nautilus-tools, 0.6 : Label name with space can now be manage.

09 august 2006 :
* New version of ntfs-3g-nautilus-tools, 0.5 : add ntfs-3g-monitor

03 august 2006 :
* New upstream release : ntfs-3g-20070803-BETA. See here for more info : http://sourceforge.net/mailarchive/f...&forum_id=2697
* New version of ntfs-3g-nautilus-tools, 0.4 to follow change of the new release
* Search kde user to port ntfs-3g-nautilus-tools to a konqueror tool
10 September 2006 :
New upstream release : ntfs-3g-20070910-BETA
  * fix: rename was always denied if the target file or directory existed
  * fix: renaming like 'foo' -> 'FOO' was denied in the WIN32 namespace
  * fix: fuse kernel module is automatically loaded, no need for config
  * fix: verbose mount error messages with hints for solutions
  * fix: compilation failed with gcc 2.96
  * change: top request: full read-write access to everybody by default
  * change: file lookups are always case-sensitive

Warning: ntfs-3g is still in beta. You should not use it on production machines.

Introduction

Support for reading and writing to NTFS partitions under Linux has always been a problem; most existing projects are experimental and often buggy. However, a new project called ntfs-3g is capable of unlimited file creation and deletion. Note that although many people have had success using this driver, it is still in beta stage. Make sure you back up all valuable data before using it!

Based off givre's excellent guide, which can be found [http://ubuntuforums.org/showthread.php?t=217009 here].

Installation

1. First you will need to add one of the following [https://help.ubuntu.com/community/Repositories/Ubuntu#head-155b53308911d4d3869b3650856a41550f57f891 repositories]:

For DAPPER :

deb http://givre.cabspace.com/ubuntu/ dapper main main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ dapper main main-all
deb http://flomertens.keo.in/ubuntu/ dapper main main-all

For EDGY :

deb http://givre.cabspace.com/ubuntu/ edgy main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ edgy main-all
deb http://flomertens.keo.in/ubuntu/ edgy main-all

The main channel contains the ntfs-3g package and an up to date fuse package.

The main-all channel contains modified version of pmount and hal to have a better integration of ntfs-3g in the desktop. If you don't want those package, just remove main-all.

If you use edgy, all needed packages are already in the ubuntu repo (main and universe), except the modified pmount, that is needed for removable device.

Packages are authenticated with a gpg key. To use it, you should execute one of the following command :

wget http://flomertens.keo.in/ubuntu/givre_key.asc -O- | sudo apt-key add -
wget http://givre.cabspace.com/ubuntu/givre_key.asc -O- | sudo apt-key add -

Be sure to reload the package configuration and updating your system before continuing.

2. Next you must [https://help.ubuntu.com/community/SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0 install] the ntfs-3g package for drivers and other tools.

3. Find the name of your NTFS drive. In a terminal, type

sudo fdisk -l | grep NTFS

The name of the drive is in the first column, and should be something like /dev/hda1.

You will now need to edit your partition list, namely /etc/fstab. Make sure to save a backup first, and then open it:

sudo cp /etc/fstab /etc/fstab.bak
gksu gedit /etc/fstab

After entering your password, find the line that matches the drive name you just found. Change it to read:

/dev/<your partition> /media/<mount point> ntfs-3g defaults,locale=en_US.utf8 0 0

Replace <mount point> with the location you would like the drive to be mounted, such as Documents. You will also need to make this directory, by running:

sudo mkdir -p /media/<mount point>

Note: you can change your locale option (for example locale=fr_FR.utf8). Execute 'locale -a' in a terminal to know which ones are supported.

4. Finally, try it out :-):

You'll need to restart your computer to the change to take effect.

If you want to revert to your previous configuration :

sudo mv /etc/fstab.bak /etc/fstab
sudo umount /media/<mount point>

and uninstall the ntfs-3g package.

Notes

  • About NTFS removable device :

The modified hal & pmount that i provide in the main-all channel, make NTFS removable device automatically mounted with ntfs-3g. If you want to change this policy, have a look at : For dapper : /usr/share/hal/fdi/policy/10osvendor/15-ntfs-policy.fdi For edgy : /etc/hal/fdi/policy/15-ntfs-policy.fdi

  • If you compiled your own kernel, you probably won't have fuse installed. You can get the source with

sudo apt-get install fuse-source

and have a look at /usr/share/doc/fuse-source/README.Debian for instructions on how to compile it.

Known Issues

The present limitations of this driver are

  • access to encrypted files
  • writing compressed files
  • change file ownership and access right

News

22 september 2006 : New upstream release : ntfs-3g-20070920-BETA

  • fix: file creation at disk-full may lead to i/o errors
  • fix: statistic of inodes and free inodes was incorrect (df -i)
  • fix: the 'umask' option wasn't always parsed as an octal number
  • fix: "too long filename" handling wasn't posix compliant
  • fix: mount failed if $MFTMirr had unused garbage at the file end

10 September 2006 : New upstream release : ntfs-3g-20070910-BETA

  • fix: rename was always denied if the target file or directory existed
  • fix: renaming like 'foo' -> 'FOO' was denied in the WIN32 namespace

  • fix: fuse kernel module is automatically loaded, no need for config
  • fix: verbose mount error messages with hints for solutions
  • fix: compilation failed with gcc 2.96
  • change: top request: full read-write access to everybody by default
  • change: file lookups are always case-sensitive

ntfs-3g (last edited 2008-08-06 17:00:19 by localhost)