Can Mandriva 2008 write to NTFS partitions? [solved]
Posted 10 October 2007 - 09:05 AM
I have been using Sabayon for quite a while but for various reasons want to go back to a more 'conventional' distro. One of the features of Sabayon is that it can read AND write to NTFS partitions, can Mandriva 2008 do the same?
Edit: Actually what I meant to ask was can Mandriva 2008 write to NTFS by default or do you have to intall NTFS-3g or similar?
Posted 10 October 2007 - 09:52 AM
Aaaaaaah! Release notes! I read the release tour, and there is nothing about this in there! :rolleyes:/>
Anyway, thanks for pointing me in the right direction!
This post has been edited by darkscot: 10 October 2007 - 09:55 AM
Posted 14 October 2007 - 03:17 AM
I couldn't get it to work. This is my fstab
/dev/hdb2 / ext3 relatime 1 1 /dev/hdb10 /home ext3 relatime 1 2 /dev/cdrom /media/cdrom auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0 /dev/cdrom2 /media/cdrom2 auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0 /dev/fd0 /media/floppy auto umask=0022,users,iocharset=utf8,noauto,exec,flush 0 0 /dev/hda1 /mnt/win_c ntfs umask=0022,nls=utf8,ro 0 0 /dev/hdb5 /mnt/win_c2 ntfs umask=0022,nls=utf8,ro 0 0 /dev/hda5 /mnt/win_d ntfs umask=0022,nls=utf8,ro 0 0 /dev/hdb6 /mnt/win_d2 vfat umask=0000,iocharset=utf8 0 0 /dev/hda6 /mnt/win_e vfat umask=0022,iocharset=utf8 0 0 /dev/hdb7 /mnt/win_e2 vfat umask=0022,iocharset=utf8 0 0 /dev/hda7 /mnt/win_f vfat umask=0000,iocharset=utf8 0 0 /dev/hdb8 /mnt/win_f2 ntfs-3g umask=0000,nls=utf8,ro 0 0 /dev/hda8 /mnt/win_g vfat umask=0022,iocharset=utf8 0 0 /dev/hda9 /mnt/win_h ntfs-3g umask=0000,nls=utf8,ro 0 0 none /proc proc defaults 0 0 /dev/hda10 swap swap defaults 0 0 /dev/hdb9 swap swap defaults 0 0
When I try to create a new file in /mnt/win_h, /mnt/win_f2, /mnt/d2 or /mnt/f, it fails with an error message eventhough umask has been set to 0000.
Posted 14 October 2007 - 03:40 AM
Posted 31 October 2007 - 10:11 PM
I got them to work eventually. You have to reboot for the changes to take effect, it is not enough to log out of X.
Here is the relevent line from my fstab:
/dev/sdb3 /media/hd5 ntfs-3g umask=0,user,nls=utf8,sync 0 0
Posted 02 November 2007 - 02:37 PM
Here is the relevent line from my fstab:
Posted 07 November 2007 - 01:57 AM
Posted 07 November 2007 - 02:24 PM
For a local NTFS partition, something like
/dev/sdb1 /media/winxp ntfs-3g locale=el_GR.UTF-8,defaults 0 1
in fstab should be enough to handle this partition as read/write. Of course you should substitute the "el_GR.UTF8" argument I used with your actual locales, or omit this argument completely if the windoze locale happens to be the same as the Linux one!
For EXTERNAL harrddisk things it's a tad more difficult: First you must tell hal to mount NTFS parttions with ntfs-3g and not ntfs. Here's a rule which does just that:
<?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <!-- mount ntfs volume with the ntfs-3g driver to enable write support --> <device> <match key="volume.fstype" string="ntfs"> <match key="@block.storage_device:storage.hotpluggable" bool="true"> <merge key="volume.fstype" type="string">ntfs-3g</merge> <merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge> </match> </match> </device> </deviceinfo>
Save tha above as say "001-ntfs-policy.fdi" and copy it to your hal policies directory (for my distro: /etc/hal/fdi/policy ). Now restart HAL and udev, and you are ready.
If the removable drive uses a different locale than the system one, then you have to do some more work:
Delete /sbin/mount.ntfs-3g (which is just a symbolik link, so you aren't deleting anything) and replace it with a simple script:
#!/bin/bash /bin/ntfs-3g -o locale=el_GR.UTF-8 $1 $2
(replace again el_GR.UTF-8 with the actual locale your NTFS harddisk is using). Omitting the last step ALL the files with names coded in a different locale than your current one will not be visible, at all.
PS:Dont forget to flag that last script as executable before copying it to /sbin
This post has been edited by scarecrow: 19 November 2007 - 09:30 AM
Posted 07 November 2007 - 06:52 PM
Given the choice, I know which one the average newbie would choose!
This post has been edited by darkscot: 07 November 2007 - 09:01 PM
Posted 08 November 2007 - 03:10 AM
Posted 08 November 2007 - 04:51 PM
Indeed, my 12-year old daughter uses PCLinuxOS and their method (perhaps not the same as in your snapshot... :P/> ).
By the way, the easiest solution is patching the kernel so that the ntfs module would be substituted by ntfs-3g... factly this is the approach some recovery and forensics liveCD's are using. But patching the kernel with a driver that depends on an external module (fuse) is clearly enough a VERY dirty solution, which few (very few) distros will adopt. Still, nobody will ever prevent you from doing so, actually it's rather easy.
But personally, I prefer to know-what-i-am-doing-to-my-puter... and besides that, "my method" above requires just to know how to copypaste from a browser window to a texteditor, it works for EVERY freaking distro out there (excluding windows) and it depends on no desktop environment (else there's the Gnome-heavy "ntfs-config" utlity).
This post has been edited by scarecrow: 08 November 2007 - 05:00 PM
Posted 10 November 2007 - 11:08 AM
I agree with you, but a lot people do not share that view. I am happy to spend a few hours setting up my PC as I want it and like to know what it is that I have been doing. However, for a Linux distro to be competitive it has to offer users an easy (though possibly more long winded) option. I think that is why PCLinuxOS (which I don't actually like) is so popular.
About a year ago a British computer magazine (Computeractive) ran a series on Linux for beginners using Mandriva 2007 as an example. Based on the feedback in the forums a lot of people started with Mandriva but switched to PClinuxOS because certain tasks (e.g. installing to external HD, automounting HD) was easier. People brought up on Windows XP are generally put of by having to type something into a terminal.
Having said all that I have just discovered that Mandriva ALSO has a graphical method of setting up read/write for NTFS drives! Just install 'ntfs-config'! Why is this not more widely know? :unsure:/>