https://wiki.archlinux.org/api.php?action=feedcontributions&user=B80&feedformat=atomArchWiki - User contributions [en]2024-03-28T12:32:37ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Python-django&diff=363403Python-django2015-03-02T18:40:22Z<p>B80: Redirected page to Django</p>
<hr />
<div>#REDIRECT [[django]]</div>B80https://wiki.archlinux.org/index.php?title=NTFS-3G&diff=156105NTFS-3G2011-09-05T19:57:16Z<p>B80: /* Allowing Group/User */</p>
<hr />
<div>[[Category:File systems (English)]]<br />
{{i18n|NTFS-3G}}<br />
<br />
[http://www.tuxera.com/community/ntfs-3g-download/ NTFS-3G] is an open source implementation of Microsoft's NTFS file system that includes read and write support. Because it is considered to be easier to configure and developed write support earlier, users generally prefer NTFS-3G over {{Package Official|ntfsprogs}} ntfsmount. NTFS-3G developers use the FUSE file system to facilitate development and to help with portability. This document will describe how to setup NTFS-3G to work on your computer.<br />
<br />
== Installation ==<br />
<br />
The {{Package Official|ntfs-3g}} package is available in '''Extra''' and can be installed by:<br />
<br />
# pacman -S ntfs-3g<br />
<br />
== Manual mounting ==<br />
<br />
Two options exist for manually mounting NTFS partitions. The traditional:<br />
<br />
# mount -t ntfs-3g /dev/<your-NTFS-partition> /{mnt,...}/<folder><br />
<br />
Mount type {{Codeline|ntfs-3g}} does not need to be explicitly specified in Arch. The {{Codeline|mount}} command by default will use {{Filename|/sbin/mount.ntfs}} which is symlinked to {{Filename|/bin/ntfs-3g}} after the ntfs-3g package is installed.<br />
<br />
The second option is to call {{Codeline|ntfs-3g}} directly:<br />
<br />
# ntfs-3g /dev/<your-NTFS-partition> /<mount-location><br />
<br />
== Configuring == <br />
<br />
Your NTFS partition(s) can be setup to mount automatically, or pre-configured to be able to mount in a certain way when you would like them to be mounted. This configuration can be done in the static filesystem configuration ([[fstab]]) or by the use of udev rules.<br />
<br />
=== Default settings ===<br />
<br />
Using the default settings will mount the NTFS partition(s) at boot. With this method, '''if''' the parent folder that it is mounted upon has the proper user or group permissions, then that user or group will be able to read and write on that partition(s).<br />
<br />
Put this in {{filename|/etc/fstab}}:<br />
<br />
<pre><br />
# <file system> <dir> <type> <options> <dump> <pass><br />
/dev/<NTFS-part> /mnt/windows ntfs-3g defaults 0 0<br />
</pre><br />
<br />
=== Allowing Group/User ===<br />
<br />
You can also tell fstab (the NTFS-3G driver) other options like those who are allowed to access (read) the partition. For example, for you to allow people in the '''users''' group to have access:<br />
<br />
/dev/<NTFS-part> /mnt/windows ntfs-3g gid=users,umask=0022 0 0<br />
<br />
By default, the ntfs-3g driver enable write support for root only. To enable user writing, use the dmask parameter to enable user writing:<br />
<br />
/dev/<NTFS-part> /mnt/windows ntfs-3g gid=users,fmask=113,dmask=002 0 0<br />
<br />
If you are running on a single user machine, you may like to own the file system yourself:<br />
/dev/<NTFS-part> /mnt/windows ntfs-3g uid=USERNAME,gid=users 0 0<br />
<br />
=== Basic NTFS-3G options ===<br />
<br />
For most, the above settings should suffice. Here are a few other options that are general common options for various Linux filesystems. For a complete list, see [http://www.tuxera.com/community/ntfs-3g-manual/#6 this]<br />
<br />
* '''umask''': umask is a built-in shell command which automatically sets file permissions on newly created files. For Arch the default umask for root and user is 0022. With 0022 new folders have the directory permissions of 755 and new files have permissions of 644. You can read more about umask permissions [http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html here].<br />
* '''noauto''': If noauto is set, NTFS entries in fstab do not get mounted automatically at boot.<br />
* '''uid''' : The user id number. This allows a specific user to have full access to the partition. Your uid can be found with the {{Codeline|id}} command.<br />
* '''fmask''' and '''dmask''': Like '''umask''' but defining file and directory respectively individually.<br />
* '''locale''' : (deprecated as of 2009.1.1) - <s>some locales will need to specify their region for local characters to display properly.</s><br />
<br />
== Other configurations ==<br />
<br />
Some other configurations that might help you set up your NTFS partition.<br />
<br />
=== KDE 4 ===<br />
<br />
For >=KDE 4.4, right-click the Device Notifier applet and choose '''Device Notifier Settings''' then in '''Removable Devices''' select your partition and choose '''Automount on login'''.<br />
<br />
=== NTFS-config ===<br />
<br />
{{Package AUR|ntfs-config}} is a program that may be able to help configure your NTFS partition(s) if other methods do not work.<br />
<br />
== Troubleshooting ==<br />
<br />
Some ideas for troubleshooting common problems.<br />
<br />
=== Damaged NTFS Filesystems ===<br />
<br />
If an NTFS filesystem has errors on it, NTFS-3G will mount it as read only. To fix an NTFS filesystem, load Windows and run its disk checking program.<br />
<br />
To repair the file system without booting windows, install the the {{Package Official|ntfsprogs}} package available in '''Extra''' which can be installed by:<br />
<br />
# pacman -S ntfsprogs<br />
<br />
To fix the NTFS file system, the device must already be unmounted. For example, to fix an NTFS partition residing in /dev/sda2:<br />
<br />
# umount /dev/sda2<br />
# ntfsfix /dev/sda2<br />
Mounting volume... OK<br />
Processing of $MFT and $MFTMirr completed successfully.<br />
NTFS volume version is 3.1.<br />
NTFS partition /dev/sda2 was processed successfully.<br />
# mount /dev/sda2<br />
<br />
If all went well, the volume will now be writable.<br />
<br />
=== Mount Failure ===<br />
<br />
If you cannot mount your NTFS partion even when following this guide, try to add the UUID section to your {{Filename|fstab}} to all ntfs partitions.<br />
<br />
== Resources ==<br />
<br />
* [http://www.tuxera.com/community/ntfs-3g-manual/ Official NTFS-3G Manual]</div>B80https://wiki.archlinux.org/index.php?title=NTFS-3G&diff=156104NTFS-3G2011-09-05T19:56:48Z<p>B80: /* Allowing Group/User */</p>
<hr />
<div>[[Category:File systems (English)]]<br />
{{i18n|NTFS-3G}}<br />
<br />
[http://www.tuxera.com/community/ntfs-3g-download/ NTFS-3G] is an open source implementation of Microsoft's NTFS file system that includes read and write support. Because it is considered to be easier to configure and developed write support earlier, users generally prefer NTFS-3G over {{Package Official|ntfsprogs}} ntfsmount. NTFS-3G developers use the FUSE file system to facilitate development and to help with portability. This document will describe how to setup NTFS-3G to work on your computer.<br />
<br />
== Installation ==<br />
<br />
The {{Package Official|ntfs-3g}} package is available in '''Extra''' and can be installed by:<br />
<br />
# pacman -S ntfs-3g<br />
<br />
== Manual mounting ==<br />
<br />
Two options exist for manually mounting NTFS partitions. The traditional:<br />
<br />
# mount -t ntfs-3g /dev/<your-NTFS-partition> /{mnt,...}/<folder><br />
<br />
Mount type {{Codeline|ntfs-3g}} does not need to be explicitly specified in Arch. The {{Codeline|mount}} command by default will use {{Filename|/sbin/mount.ntfs}} which is symlinked to {{Filename|/bin/ntfs-3g}} after the ntfs-3g package is installed.<br />
<br />
The second option is to call {{Codeline|ntfs-3g}} directly:<br />
<br />
# ntfs-3g /dev/<your-NTFS-partition> /<mount-location><br />
<br />
== Configuring == <br />
<br />
Your NTFS partition(s) can be setup to mount automatically, or pre-configured to be able to mount in a certain way when you would like them to be mounted. This configuration can be done in the static filesystem configuration ([[fstab]]) or by the use of udev rules.<br />
<br />
=== Default settings ===<br />
<br />
Using the default settings will mount the NTFS partition(s) at boot. With this method, '''if''' the parent folder that it is mounted upon has the proper user or group permissions, then that user or group will be able to read and write on that partition(s).<br />
<br />
Put this in {{filename|/etc/fstab}}:<br />
<br />
<pre><br />
# <file system> <dir> <type> <options> <dump> <pass><br />
/dev/<NTFS-part> /mnt/windows ntfs-3g defaults 0 0<br />
</pre><br />
<br />
=== Allowing Group/User ===<br />
<br />
You can also tell fstab (the NTFS-3G driver) other options like those who are allowed to access (read) the partition. For example, for you to allow people in the '''users''' group to have access:<br />
<br />
/dev/<NTFS-part> /mnt/windows ntfs-3g gid=users,umask=0022 0 0<br />
<br />
By default, the ntfs-3g driver enable write support for root only. To enable user writing, use the dmask parameter to enable user writing:<br />
<br />
/dev/<NTFS-part> /mnt/windows ntfs-3g gid=users,fmask=113,dmask=002 0 0<br />
<br />
If you are running on a single user machine you may like to own the file system yourself:<br />
/dev/<NTFS-part> /mnt/windows ntfs-3g uid=USERNAME,gid=users 0 0<br />
<br />
=== Basic NTFS-3G options ===<br />
<br />
For most, the above settings should suffice. Here are a few other options that are general common options for various Linux filesystems. For a complete list, see [http://www.tuxera.com/community/ntfs-3g-manual/#6 this]<br />
<br />
* '''umask''': umask is a built-in shell command which automatically sets file permissions on newly created files. For Arch the default umask for root and user is 0022. With 0022 new folders have the directory permissions of 755 and new files have permissions of 644. You can read more about umask permissions [http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html here].<br />
* '''noauto''': If noauto is set, NTFS entries in fstab do not get mounted automatically at boot.<br />
* '''uid''' : The user id number. This allows a specific user to have full access to the partition. Your uid can be found with the {{Codeline|id}} command.<br />
* '''fmask''' and '''dmask''': Like '''umask''' but defining file and directory respectively individually.<br />
* '''locale''' : (deprecated as of 2009.1.1) - <s>some locales will need to specify their region for local characters to display properly.</s><br />
<br />
== Other configurations ==<br />
<br />
Some other configurations that might help you set up your NTFS partition.<br />
<br />
=== KDE 4 ===<br />
<br />
For >=KDE 4.4, right-click the Device Notifier applet and choose '''Device Notifier Settings''' then in '''Removable Devices''' select your partition and choose '''Automount on login'''.<br />
<br />
=== NTFS-config ===<br />
<br />
{{Package AUR|ntfs-config}} is a program that may be able to help configure your NTFS partition(s) if other methods do not work.<br />
<br />
== Troubleshooting ==<br />
<br />
Some ideas for troubleshooting common problems.<br />
<br />
=== Damaged NTFS Filesystems ===<br />
<br />
If an NTFS filesystem has errors on it, NTFS-3G will mount it as read only. To fix an NTFS filesystem, load Windows and run its disk checking program.<br />
<br />
To repair the file system without booting windows, install the the {{Package Official|ntfsprogs}} package available in '''Extra''' which can be installed by:<br />
<br />
# pacman -S ntfsprogs<br />
<br />
To fix the NTFS file system, the device must already be unmounted. For example, to fix an NTFS partition residing in /dev/sda2:<br />
<br />
# umount /dev/sda2<br />
# ntfsfix /dev/sda2<br />
Mounting volume... OK<br />
Processing of $MFT and $MFTMirr completed successfully.<br />
NTFS volume version is 3.1.<br />
NTFS partition /dev/sda2 was processed successfully.<br />
# mount /dev/sda2<br />
<br />
If all went well, the volume will now be writable.<br />
<br />
=== Mount Failure ===<br />
<br />
If you cannot mount your NTFS partion even when following this guide, try to add the UUID section to your {{Filename|fstab}} to all ntfs partitions.<br />
<br />
== Resources ==<br />
<br />
* [http://www.tuxera.com/community/ntfs-3g-manual/ Official NTFS-3G Manual]</div>B80