特殊:Badtitle/NS100:MountingWindowsPartitions/ThirdPartyNTFS3G:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/MountingWindowsPartitions/ThirdPartyNTFS3G}} | {{From|https://help.ubuntu.com/community/MountingWindowsPartitions/ThirdPartyNTFS3G}} | ||
{{Languages|UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G}} | {{Languages|UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G}} | ||
[[/PageDiscussion|Discuss this page]] | |||
== | {{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconSambaShares.png%7D%7D NTFS (New Technology File System) is a file system developed by Microsoft and used by Windows computers (Windows 2000 and later). Until 2007, linux was not able to write to this type of filesystem, it could only read from it. The stable ntfs-3g driver now allows linux systems to read ''and'' write NTFS formatted partitions. | ||
== Installation == | == Installation == | ||
=== Ubuntu 8.04 LTS (Hardy Heron) === | |||
The ntfs-3g packages comes pre-installed with the newest versions of Ubuntu, but you still need to install ntfs-config if you want the GUI configuration tool. You can search for "ntfs-config" in [[SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0| Synaptic]] or install via terminal: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install ntfs-config | |||
</nowiki></pre> | |||
You may now continue to the Configuration section. | |||
=== Ubuntu 7.04 (Feisty Fawn) and Ubuntu 7.10 (Gutsy Gibbon) === | |||
In Feisty, the ntfs-3g and ntfs-config packages are in the ''universe'' repository. In Gutsy, the ntfs-config packages is in ''universe'' and ntfs-3g is in the ''main'' repository. You can search for "ntfs-config" (which has "ntfs-3g" as a dependency) in [[SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0| Synaptic]] or install via terminal: | |||
<pre><nowiki> | <pre><nowiki> | ||
deb http:// | sudo apt-get install ntfs-config | ||
</nowiki></pre> | |||
You may now continue to the Configuration section. | |||
=== Ubuntu 6.06 LTS (Dapper Drake) === | |||
First you need to add the following [[Repositories/Ubuntu| repository]]: | |||
<pre><nowiki> | |||
deb http://flomertens.free.fr/ubuntu/ dapper main main-all | |||
</nowiki></pre> | |||
'''Authorizing the Repository:''' | |||
Packages are authenticated with a gpg key. To use it, you should execute the the following command: | |||
<pre><nowiki> | <pre><nowiki> | ||
wget http://flomertens.free.fr/ubuntu/givre_key.asc -O- | sudo apt-key add - | |||
</nowiki></pre> | |||
Be sure to reload the package configuration and update your system before continuing: | |||
wget http://flomertens.free.fr/ubuntu/givre_key.asc -O- | sudo apt-key add -</nowiki></pre> | |||
Be sure to reload the package configuration and update your system before continuing | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get upgrade | sudo apt-get upgrade | ||
</nowiki></pre> | </nowiki></pre> | ||
It is advised to reboot now, so the hal changes can take effect. | |||
You can now search for "ntfs-config" (which has "ntfs-3g" as a dependency) in [[SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0| Synaptic]] or install via terminal: | |||
[[ | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install ntfs-config | sudo apt-get install ntfs-config | ||
</nowiki></pre> | </nowiki></pre> | ||
Now | == Configuration == | ||
Now you have the choice between an automatic configuration using ntfs-config or a manual configuration. | |||
=== The Automatic Way === | |||
{{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=navigate.png%7D%7D Launch '''NTFS Configuration Tool''' from Applications->System Tools, or via the terminal: | |||
<pre><nowiki> | <pre><nowiki> | ||
gksudo ntfs-config | |||
</nowiki></pre> | </nowiki></pre> | ||
If your NTFS | {{https://help.ubuntu.com/community/MountingWindowsPartitions/ThirdPartyNTFS3G?action=AttachFile&do=get&target=ntfs-config.png%7D%7D | ||
Then | If you have at least one internal NTFS partition, it will allow you to check both boxes, otherwise you can only check the box for external devices. | ||
=== The | If your NTFS partition(s) are not yet configured, it will ask you to choose a name that will be used as the mount point (please no spaces). Then enable write support for internal and/or external devices. | ||
=== The Manual Way === | |||
{{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconGNOMETerminal.png%7D%7D First you need to find the device location of the NTFS partition(s) you want to mount. In terminal, run: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo fdisk -l | grep NTFS | awk '{print $1}' | sudo fdisk -l | grep NTFS | awk '{print $1}' | ||
</nowiki></pre> | </nowiki></pre> | ||
The name of | The name of each partition should be something like /dev/hd'''xn''' or /dev/sd'''xn''', where '''x''' is an alphabetical letter (ranges from a to z) and '''n''' is a number (e.g. /dev/hda1). | ||
If the drive is internal, you will now need to edit your [[Fstab| file systems table]] configuration file, <code><nowiki>/etc/fstab</nowiki></code>. If the drive is an external USB or firewire drive, hal should automount it. Now, be sure to save a backup of fstab first, then open the file for editing: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo cp /etc/fstab /etc/fstab.orig | sudo cp /etc/fstab /etc/fstab.orig | ||
gksudo gedit /etc/fstab | |||
</nowiki></pre> | </nowiki></pre> | ||
After entering your password, find the line that matches the | After entering your password, find the line that matches the device location you just found and change it to the following. If there is no entry yet, add a new line like the following: | ||
<pre><nowiki> | <pre><nowiki> | ||
<your partition> /media/<mount point> ntfs-3g defaults,locale=en_US.utf8 0 0 | <your partition> /media/<mount point> ntfs-3g defaults,locale=en_US.utf8 0 0 | ||
</nowiki></pre> | </nowiki></pre> | ||
Replace <your partition> | NOTE: If it displays your NTFS partition with a [[UsingUUID| UUID]], you can check the relevant device location by running one of the following commands. It is OK (and even advisable) to keep the UUID setup if that is what already exists. | ||
<pre><nowiki> | |||
sudo blkid | |||
ls -l /dev/disk/by-uuid/ | |||
</nowiki></pre> | |||
Replace <your partition> with the name of the partition you identified earlier. Replace <mount point> with the location you would like the partition to be mounted at, so you have something like <code><nowiki>/media/windows</nowiki></code> or <code><nowiki>/media/documents</nowiki></code> for that column. | |||
Note: you can also change your locale option (ex: locale=fr_FR.utf8). Execute <code><nowiki>locale -a</nowiki></code> in a terminal to know which ones are supported on your system. | |||
Save and close the file. You will now need to create the mount point for each NTFS partition before you can actually mount them: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo mkdir -p /media/<mount point> | sudo mkdir -p /media/<mount point> | ||
</nowiki></pre> | </nowiki></pre> | ||
Now remount each partition with | |||
Now remount | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo umount <your partition> | sudo umount <your partition> | ||
sudo mount -a | sudo mount -a | ||
</nowiki></pre> | </nowiki></pre> | ||
==== If you have a problem ==== | |||
== If you have a problem == | If you want to revert to your previous configuration, run: | ||
If you want to revert to your previous configuration : | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo mv /etc/fstab.orig /etc/fstab | sudo mv /etc/fstab.orig /etc/fstab | ||
sudo umount /media/<mount point> | sudo umount /media/<mount point> | ||
</nowiki></pre> | </nowiki></pre> | ||
== Known Issues == | == Known Issues == | ||
The present limitations of this driver are: | {{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=stop.png%7D%7D The present limitations of this driver are: | ||
* | * writing files encrypted or compressed at the filesystem level (does not include .zip, .gz, .rar files since they are compressed on the file, not the file system level) | ||
* changing NTFS file ownership and access rights | |||
* | |||
=== Separate /usr partition work-around === | === Separate /usr partition work-around === | ||
'''''It is unknown if this issue still exists. Please remove this line if you can confirm that it does.''''' | |||
Bug report: https://bugs.launchpad.net/ubuntu/+bug/120643 | |||
This is only needed if you have installed ubuntu with a separate /usr partition. | This is only needed if you have installed ubuntu with a separate /usr partition. | ||
Before running the Applications | Before running the Applications->System Tools->NTFS Configuration Tool provided with the installation, you will need to backup and edit your fstab file: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo cp /etc/fstab /etc/fstab.pre_ntfs3g_workaround | sudo cp /etc/fstab /etc/fstab.pre_ntfs3g_workaround | ||
gksudo gedit /etc/fstab | |||
</nowiki></pre> | </nowiki></pre> | ||
Now, carefully look through the file for all references of your ntfs partitions | |||
(this is taken from part of my fstab file and is '''ONLY''' for example, yours '''WILL''' be different). | |||
carefully look through the file for all references of your ntfs partitions | |||
(this is taken from part of my fstab file and is '''ONLY''' for example, yours '''WILL''' be different) | |||
<pre><nowiki> | <pre><nowiki> | ||
# Entry for /dev/sda9 : | # Entry for /dev/sda9 : | ||
第156行: | 第146行: | ||
UUID=582a25db-c088-427c-9279-48af84695c7b none swap sw 0 0 | UUID=582a25db-c088-427c-9279-48af84695c7b none swap sw 0 0 | ||
</nowiki></pre> | </nowiki></pre> | ||
'''Remember - these are ONLY given as an example, do not copy and paste - your fstab WILL BE DIFFERENT''' | '''Remember - these are ONLY given as an example, do not copy and paste - your fstab WILL BE DIFFERENT'''. | ||
Save your fstab file | Save your fstab file and close. Now you can continue on with either the 'automatic' or 'manual' configuration as per the instructions above. | ||
=== Custom Kernel === | |||
== | '''''It is unknown if this issue still exists. Please remove this line if you can confirm that it does.''''' | ||
If you compiled your own kernel, you probably will not have '''fuse''' installed. You can get the source with | |||
<pre><nowiki> | |||
sudo apt-get install fuse-source | |||
</nowiki></pre> | |||
and have a look at '''/usr/share/doc/fuse-source/README.Debian''' for instructions on how to compile it. | |||
== See also == | |||
== External links == | |||
{{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconBook-small.png%7D%7D | |||
* [[http://ntfs-3g.org/releases.html|ntfs-3g homepage]] | |||
* [[MountingWindowsPartitions]] | |||
* [[Fstab]] | |||
* | |||
* | |||
---- | ---- | ||
[[category: | [[category:CategoryWindows]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月19日 (日) 12:56的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MountingWindowsPartitions/ThirdPartyNTFS3G }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/af | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|Afrikaans| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/ar | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|العربية| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/az | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|azərbaycanca| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/bcc | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|جهلسری بلوچی| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/bg | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|български| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/br | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|brezhoneg| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/ca | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|català| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/cs | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|čeština| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/de | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|Deutsch| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/el | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|Ελληνικά| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/es | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|español| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/fa | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|فارسی| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/fi | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|suomi| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/fr | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|français| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/gu | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|ગુજરાતી| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/he | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|עברית| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/hu | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|magyar| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/id | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|Bahasa Indonesia| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/it | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|italiano| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/ja | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|日本語| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/ko | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|한국어| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/ksh | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|Ripoarisch| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/mr | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|मराठी| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/ms | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|Bahasa Melayu| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/nl | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|Nederlands| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/no | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|norsk| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/oc | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|occitan| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/pl | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|polski| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/pt | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|português| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/ro | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|română| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/ru | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|русский| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/si | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|සිංහල| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/sq | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|shqip| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/sr | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|српски / srpski| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/sv | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|svenska| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/th | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|ไทย| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/tr | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|Türkçe| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/vi | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|Tiếng Việt| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/yue | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|粵語| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/zh | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|中文| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/zh-hans | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|中文(简体)| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G | {{#if: | :}}MountingWindowsPartitions/ThirdPartyNTFS3G}}/zh-hant | • {{#if: UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|中文(繁體)| [[::MountingWindowsPartitions/ThirdPartyNTFS3G/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MountingWindowsPartitions/ThirdPartyNTFS3G|:MountingWindowsPartitions/ThirdPartyNTFS3G|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MountingWindowsPartitions/ThirdPartyNTFS3G/zh | | {{#ifexist: MountingWindowsPartitions/ThirdPartyNTFS3G/zh | | {{#ifeq: {{#titleparts:MountingWindowsPartitions/ThirdPartyNTFS3G|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MountingWindowsPartitions/ThirdPartyNTFS3G|1|-1|}} | zh | | }}
Discuss this page {{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconSambaShares.png%7D%7D NTFS (New Technology File System) is a file system developed by Microsoft and used by Windows computers (Windows 2000 and later). Until 2007, linux was not able to write to this type of filesystem, it could only read from it. The stable ntfs-3g driver now allows linux systems to read and write NTFS formatted partitions.
Installation
Ubuntu 8.04 LTS (Hardy Heron)
The ntfs-3g packages comes pre-installed with the newest versions of Ubuntu, but you still need to install ntfs-config if you want the GUI configuration tool. You can search for "ntfs-config" in Synaptic or install via terminal:
sudo apt-get install ntfs-config
You may now continue to the Configuration section.
Ubuntu 7.04 (Feisty Fawn) and Ubuntu 7.10 (Gutsy Gibbon)
In Feisty, the ntfs-3g and ntfs-config packages are in the universe repository. In Gutsy, the ntfs-config packages is in universe and ntfs-3g is in the main repository. You can search for "ntfs-config" (which has "ntfs-3g" as a dependency) in Synaptic or install via terminal:
sudo apt-get install ntfs-config
You may now continue to the Configuration section.
Ubuntu 6.06 LTS (Dapper Drake)
First you need to add the following repository:
deb http://flomertens.free.fr/ubuntu/ dapper main main-all
Authorizing the Repository: Packages are authenticated with a gpg key. To use it, you should execute the the following command:
wget http://flomertens.free.fr/ubuntu/givre_key.asc -O- | sudo apt-key add -
Be sure to reload the package configuration and update your system before continuing:
sudo apt-get update sudo apt-get upgrade
It is advised to reboot now, so the hal changes can take effect. You can now search for "ntfs-config" (which has "ntfs-3g" as a dependency) in Synaptic or install via terminal:
sudo apt-get install ntfs-config
Configuration
Now you have the choice between an automatic configuration using ntfs-config or a manual configuration.
The Automatic Way
{{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=navigate.png%7D%7D Launch NTFS Configuration Tool from Applications->System Tools, or via the terminal:
gksudo ntfs-config
{{https://help.ubuntu.com/community/MountingWindowsPartitions/ThirdPartyNTFS3G?action=AttachFile&do=get&target=ntfs-config.png%7D%7D If you have at least one internal NTFS partition, it will allow you to check both boxes, otherwise you can only check the box for external devices. If your NTFS partition(s) are not yet configured, it will ask you to choose a name that will be used as the mount point (please no spaces). Then enable write support for internal and/or external devices.
The Manual Way
{{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconGNOMETerminal.png%7D%7D First you need to find the device location of the NTFS partition(s) you want to mount. In terminal, run:
sudo fdisk -l | grep NTFS | awk '{print $1}'
The name of each partition should be something like /dev/hdxn or /dev/sdxn, where x is an alphabetical letter (ranges from a to z) and n is a number (e.g. /dev/hda1).
If the drive is internal, you will now need to edit your file systems table configuration file, /etc/fstab
. If the drive is an external USB or firewire drive, hal should automount it. Now, be sure to save a backup of fstab first, then open the file for editing:
sudo cp /etc/fstab /etc/fstab.orig gksudo gedit /etc/fstab
After entering your password, find the line that matches the device location you just found and change it to the following. If there is no entry yet, add a new line like the following:
<your partition> /media/<mount point> ntfs-3g defaults,locale=en_US.utf8 0 0
NOTE: If it displays your NTFS partition with a UUID, you can check the relevant device location by running one of the following commands. It is OK (and even advisable) to keep the UUID setup if that is what already exists.
sudo blkid ls -l /dev/disk/by-uuid/
Replace <your partition> with the name of the partition you identified earlier. Replace <mount point> with the location you would like the partition to be mounted at, so you have something like /media/windows
or /media/documents
for that column.
Note: you can also change your locale option (ex: locale=fr_FR.utf8). Execute locale -a
in a terminal to know which ones are supported on your system.
Save and close the file. You will now need to create the mount point for each NTFS partition before you can actually mount them:
sudo mkdir -p /media/<mount point>
Now remount each partition with
sudo umount <your partition> sudo mount -a
If you have a problem
If you want to revert to your previous configuration, run:
sudo mv /etc/fstab.orig /etc/fstab sudo umount /media/<mount point>
Known Issues
{{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=stop.png%7D%7D The present limitations of this driver are:
- writing files encrypted or compressed at the filesystem level (does not include .zip, .gz, .rar files since they are compressed on the file, not the file system level)
- changing NTFS file ownership and access rights
Separate /usr partition work-around
It is unknown if this issue still exists. Please remove this line if you can confirm that it does. Bug report: https://bugs.launchpad.net/ubuntu/+bug/120643 This is only needed if you have installed ubuntu with a separate /usr partition. Before running the Applications->System Tools->NTFS Configuration Tool provided with the installation, you will need to backup and edit your fstab file:
sudo cp /etc/fstab /etc/fstab.pre_ntfs3g_workaround gksudo gedit /etc/fstab
Now, carefully look through the file for all references of your ntfs partitions (this is taken from part of my fstab file and is ONLY for example, yours WILL be different).
# Entry for /dev/sda9 : UUID=98451ab9-d323-4a09-96a2-91b5ea58035c / ext3 defaults,errors=remount-ro 0 1 # Entry for /dev/sda3 : UUID=09f8e063-64d5-4b20-a97b-26cfb7b08989 /boot ext3 defaults 0 2 # Entry for /dev/sda11 : UUID=7b0fce56-2eb6-4e39-b428-4fe45eef5f21 /home ext3 defaults 0 2 # Entry for /dev/sda1 : UUID=68084A9E084A6B60 /media/sda1 ntfs defaults,locale=en_GB.UTF-8 0 1 # Entry for /dev/sda12 : UUID=28FEE8554059CE0D /media/sda12 ntfs defaults,locale=en_GB.UTF-8 0 1 # Entry for /dev/sda13 : UUID=ec8a8c6e-f9fb-4af6-839e-4ed5da28cd92 /tmp ext3 defaults 0 2 # Entry for /dev/sda14 : UUID=6763b394-2cd8-4830-8cb7-a4cd4b45fa41 /usr ext3 defaults 0 2 # Entry for /dev/sda15 : UUID=e53c0925-18a0-415c-8786-615b3b195c8f /var ext3 defaults 0 2 # Entry for /dev/sdb1 : UUID=582a25db-c088-427c-9279-48af84695c7b none swap sw 0 0
the lines
# Entry for /dev/sda1 : UUID=68084A9E084A6B60 /media/sda1 ntfs defaults,locale=en_GB.UTF-8 0 1 # Entry for /dev/sda12 : UUID=28FEE8554059CE0D /media/sda12 ntfs defaults,locale=en_GB.UTF-8 0 1
need to be cut and then pasted below the /var partition entry to read:
# Entry for /dev/sda9 : UUID=98451ab9-d323-4a09-96a2-91b5ea58035c / ext3 defaults,errors=remount-ro 0 1 # Entry for /dev/sda3 : UUID=09f8e063-64d5-4b20-a97b-26cfb7b08989 /boot ext3 defaults 0 2 # Entry for /dev/sda11 : UUID=7b0fce56-2eb6-4e39-b428-4fe45eef5f21 /home ext3 defaults 0 2 # Entry for /dev/sda13 : UUID=ec8a8c6e-f9fb-4af6-839e-4ed5da28cd92 /tmp ext3 defaults 0 2 # Entry for /dev/sda14 : UUID=6763b394-2cd8-4830-8cb7-a4cd4b45fa41 /usr ext3 defaults 0 2 # Entry for /dev/sda15 : UUID=e53c0925-18a0-415c-8786-615b3b195c8f /var ext3 defaults 0 2 # Entry for /dev/sda1 : UUID=68084A9E084A6B60 /media/sda1 ntfs defaults,locale=en_GB.UTF-8 0 1 # Entry for /dev/sda12 : UUID=28FEE8554059CE0D /media/sda12 ntfs defaults,locale=en_GB.UTF-8 0 1 # Entry for /dev/sdb1 : UUID=582a25db-c088-427c-9279-48af84695c7b none swap sw 0 0
Remember - these are ONLY given as an example, do not copy and paste - your fstab WILL BE DIFFERENT. Save your fstab file and close. Now you can continue on with either the 'automatic' or 'manual' configuration as per the instructions above.
Custom Kernel
It is unknown if this issue still exists. Please remove this line if you can confirm that it does. If you compiled your own kernel, you probably will not 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.
See also
External links
{{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconBook-small.png%7D%7D