You are not logged in.
Hello everybody,
I have Arch with Xmonad WM and pcmanfm installed.
NOw, when I plug in my external usb drive (ntfs), pcmanfm
can "see it" but it mounts it read-only..
Can I do something about that?
I would like it to be mounted read-write..
Thanks a lot in advance
Offline
I think you can edit pcmanfm mount rules as root:
vi /usr/share/pcmanfm/mount.rulesand modify/add the umask value in the correspondent area.
For an example, you can modify this section:
[ntfs]
mount_options=umask=222;utf8;exec
fstype_override=ntfs-3gto
[ntfs]
mount_options=umask=022;utf8;exec
fstype_override=ntfs-3gand the volume you mounted in pcmanfm will be readable, writable and executable.
Last edited by cwjiof (2008-09-25 11:04:16)
Offline
Hey, thanks for taking the time to answer..
Unfortunately that didn't do the job, although it makes sense ![]()
Any ideas?
Offline
Maybe, you should restart the HAL daemon or reboot your computer.
Last edited by cwjiof (2008-09-26 10:42:48)
Offline
Offline
Hi
The solutions above did not work for me either.
This line, from the above link stopped my external usb drive from showing up:
# ln -s /sbin/mount.ntfs-3g /sbin/mount.ntfs
Any help appreciated
EDIT: as a temporary solution, this
bash-3.2# mount -t ntfs-3g /dev/sdb2 /media/usb
mounted the drive rw, but I'd prefer pcfman to mount it rw instead of ro
Last edited by ZenMystic (2008-10-07 23:47:21)
Offline
After trying different umask (in /usr/share/pcmanfm/mount.rules), this works to me:
[ntfs-3g]
mount_options=locale=;exec
[ntfs]
mount_options=umask=000;utf8;exec
fstype_override=ntfs-3gHowever i don't know if there are any security issue...
Offline
After trying different umask (in /usr/share/pcmanfm/mount.rules), this works to me:
[ntfs-3g] mount_options=locale=;exec [ntfs] mount_options=umask=000;utf8;exec fstype_override=ntfs-3gHowever i don't know if there are any security issue...
I modified the ntfs fdi policy that was in the HAL wiki which Army pointed to. I think it is probably slightly more secure. You will also need to modify the pacman mount.rules too. It adds uid,gid,fmask,dmask to the ntfs-3g option under pcmanfm's mount rules.
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<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>
<append key="volume.mount.valid_options" type="strlist">uid=</append>
<append key="volume.mount.valid_options" type="strlist">gid=</append>
<append key="volume.mount.valid_options" type="strlist">dmask=</append>
<append key="volume.mount.valid_options" type="strlist">fmask=</append>
<append key="volume.mount.valid_options" type="strlist">locale=</append>
</match>
</match>
</device>
</deviceinfo>Under pcmanfm's mount.rules
[ntfs-3g]
# mount_options=locale=;exec
mount_options=uid=1000;gid=100;fmask=0113;dmask=0002;locale=;exec
[ntfs]
mount_options=umask=222;utf8;exec
fstype_override=ntfs-3gOf course you can change the 'uid,gid,fmask,dmask' options to match your own system. I think these options are specific to ntfs-3g so I put them under [ntfs-3g].
Offline