You are not logged in.

#1 2008-09-25 03:07:41

geo909
Member
Registered: 2008-09-07
Posts: 309

External USB drive mounted read-only by pcmanfm

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

#2 2008-09-25 10:07:57

cwjiof
Member
From: Taichung, TW
Registered: 2008-01-27
Posts: 131

Re: External USB drive mounted read-only by pcmanfm

I think you can edit pcmanfm mount rules as root:

vi /usr/share/pcmanfm/mount.rules

and 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-3g

to

[ntfs]
mount_options=umask=022;utf8;exec
fstype_override=ntfs-3g

and the volume you mounted in pcmanfm will be readable, writable and executable.

Last edited by cwjiof (2008-09-25 11:04:16)

Offline

#3 2008-09-25 22:39:47

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: External USB drive mounted read-only by pcmanfm

Hey, thanks for taking the time to answer..
Unfortunately that didn't do the job, although it makes sense sad

Any ideas?

Offline

#4 2008-09-26 10:42:08

cwjiof
Member
From: Taichung, TW
Registered: 2008-01-27
Posts: 131

Re: External USB drive mounted read-only by pcmanfm

Maybe, you should restart the HAL daemon or reboot your computer.

Last edited by cwjiof (2008-09-26 10:42:48)

Offline

#5 2008-09-26 15:32:55

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: External USB drive mounted read-only by pcmanfm

Offline

#6 2008-10-07 20:44:41

ZenMystic
Member
Registered: 2008-08-25
Posts: 25

Re: External USB drive mounted read-only by pcmanfm

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

#7 2008-10-19 19:16:36

xisal
Member
Registered: 2007-10-19
Posts: 24

Re: External USB drive mounted read-only by pcmanfm

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-3g

However i don't know if there are any security issue...

Offline

#8 2008-10-20 16:07:31

sparchy
Member
From: arizona, usa
Registered: 2007-11-20
Posts: 32

Re: External USB drive mounted read-only by pcmanfm

xisal wrote:

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-3g

However 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-3g

Of 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

Board footer

Powered by FluxBB