Jump to content

Can Mandriva 2008 write to NTFS partitions?


darkscot
 Share

Recommended Posts

Hello!

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?

Link to comment
Share on other sites

See the release notes...

Aaaaaaah! Release notes! I read the release tour, and there is nothing about this in there! :rolleyes:

 

http://wiki.mandriva.com/en/Releases/Mandriva/2008.0/Tour

 

Anyway, thanks for pointing me in the right direction!

Edited by darkscot
Link to comment
Share on other sites

Did those instructions work for you?

 

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.

 

Any help?

Link to comment
Share on other sites

  • 3 weeks later...
Did those instructions work for you?

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

Link to comment
Share on other sites

I followed the release note instructions. Got no errors and restarted. But it doesn't seem to mount as I cannot see it from konqueror, even after I go into the Mandriva Control Center and mount it.

Here is the relevent line from my fstab:

 

/dev/hda1 /media/hd ntfs-3g umask=0022,nls=utf8,sync 0 0

Link to comment
Share on other sites

It has been already said THOUSANDS of times, but here we go again:

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

Edited by scarecrow
Link to comment
Share on other sites

Now compare that with how it is done in PCLinuxOS!

 

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).

Edited by scarecrow
Link to comment
Share on other sites

But personally, I prefer to know-what-i-am-doing-to-my-puter...

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:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...