Due to a charming display of eccentric version numbering, you might be stuck with a year-old NTFS-3g version and not even be aware of it.
The developers are in the habit of tagging their versions by month and day of the release date, so 1.913 was released on 07/09/13, 1.1120 on 07/11/20 and 1.2506 (sic!) on 05/06/08. Some nice kind of mini-Y2K here, I wonder what they will surprise us with in October. Don't get me wrong: I love ntfs-3g, couldn't live without it on my dual-boot systems. Kudos to the developers!
Installing the latest:
Add one of the following software repositories in YaST (use "specify URL"):
http://ftp.gwdg.de/pub/linux/misc/suser-jengelh/SUSE-10.3/ http://download.opensuse.org/repositories/home:/benkai:/ntfs/openSUSE_Factory/
Both ship the 1.2506 release and according to ntfs.org that one is heavily recommended, the main repo still has 1.913. Note: I am not altogether comfortable about using a factory repo on a day-to-day system, and for whatever reasons, YaST reported conflicts for the 1.2506 version from the benkai repo, the jengelh repo works fine.
Showing posts with label NTFS. Show all posts
Showing posts with label NTFS. Show all posts
12/05/2008
07/12/2007
HowTo automount external ntfs-formatted USB hard drives with write permissions for normal users AND the correct locale...
To automount your hard drive with write permissions, first backup your fstab.
su
cp /etc/fstab /etc/fstab.bak
Then plug in your drive and give it write permissions in ntfs-config. This puts and entry in fstab, which effectively prevents HAL from automounting the drive. So you need to replace the new fstab with your backup. Then unmount your drive.
cp /etc/fstab.bak /etc/fstab
umount /dev/sdXY
If you now try to mount your drive in Konqueror with right-click --> Mount, it should give you an error message. Now edit your /etc/PolicyKit/PolicyKit.conf and put in any users or UIDs who need to be able to mount the drive.
Then reload the settings.
polkit-reload-config
If you now plug in your drive or mount it in Konqueror, it should be mounted with read/write permission for everyone.
To mount it (and everything else you mount with ntfs-3g as well) with the correct locale, you need to replace /sbin/mount.ntfs-3g with a small bash script.
su
mv /sbin/mount.ntfs-3g /sbin/mount.ntfs-3g.bak
touch /sbin/mount.ntfs-3g
echo '#!/bin/bash
/bin/ntfs-3g -o locale=de_DE.UTF-8 $1 $2' > /sbin/mount.ntfs-3g
chmod +x /sbin/mount.ntfs-3g
Sources (info, not code!) can be found here and here.
su
cp /etc/fstab /etc/fstab.bak
Then plug in your drive and give it write permissions in ntfs-config. This puts and entry in fstab, which effectively prevents HAL from automounting the drive. So you need to replace the new fstab with your backup. Then unmount your drive.
cp /etc/fstab.bak /etc/fstab
umount /dev/sdXY
If you now try to mount your drive in Konqueror with right-click --> Mount, it should give you an error message. Now edit your /etc/PolicyKit/PolicyKit.conf and put in any users or UIDs who need to be able to mount the drive.
<config version="0.1">
<match action="hal-storage-mount-removable-*">
<match user="taaris|1001">
<return result="yes">
</return>
</match></match>
<match action="hal-storage-mount-removable-*">
<match user="taaris|1001">
<return result="yes">
</return>
</match></match>
Then reload the settings.
polkit-reload-config
If you now plug in your drive or mount it in Konqueror, it should be mounted with read/write permission for everyone.
To mount it (and everything else you mount with ntfs-3g as well) with the correct locale, you need to replace /sbin/mount.ntfs-3g with a small bash script.
su
mv /sbin/mount.ntfs-3g /sbin/mount.ntfs-3g.bak
touch /sbin/mount.ntfs-3g
echo '#!/bin/bash
/bin/ntfs-3g -o locale=de_DE.UTF-8 $1 $2' > /sbin/mount.ntfs-3g
chmod +x /sbin/mount.ntfs-3g
Sources (info, not code!) can be found here and here.
09/10/2007
NTFS and the great thing of writing to it...
openSuSE 10.3 uses ntfs-3g and Fuse by default for mounting NTFS volumes, but doesn't allow writing access in the standard installation.
To enable writing access to NTFS partitions, execute
vi /etc/fstab
as superuser and replace in the entries for the appropriate partitions users,gid=users,fmask=133,dmask=022, by defaults but leave the comma and the entry locale=de_DE.UTF-8 right after the comma (without blank) unless you want all the files with umlauts in their names to be hidden from you :-p.
Actually, the only thing you would need to change is the umask, dmask and fmask option as stated in
here (thanks to my beloved Avocadohead).
To enable writing access to NTFS partitions, execute
vi /etc/fstab
as superuser and replace in the entries for the appropriate partitions users,gid=users,fmask=133,dmask=022, by defaults but leave the comma and the entry locale=de_DE.UTF-8 right after the comma (without blank) unless you want all the files with umlauts in their names to be hidden from you :-p.
Actually, the only thing you would need to change is the umask, dmask and fmask option as stated in
here (thanks to my beloved Avocadohead).
Subscribe to:
Posts (Atom)