You are not logged in.

#1 2017-06-10 13:06:01

pexea12
Member
Registered: 2017-06-10
Posts: 1

Set mount option to write to disk for PCManFM

I am using PCManFM as a file manager. I set PCManFM to autodetect my drive:

I have 2 rules for `polkit`:

    polkit.addRule(function(action, subject) {
       if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" &&
          subject.local && subject.active && subject.isInGroup("storage")))
          {
             return polkit.Result.YES;
          }
    });

and

    polkit.addAdminRule(function(action, subject) {
        return ["unix-group:wheel"];
    });

I can successfully mount my drive. However, when I want to write something to the drive, there is always an error:

https://i.stack.imgur.com/4d3gu.png

    test.png: Error opening file “/media/Library/test.png”: Read-only file system

How can I fix that error? I know I can remount my drive by command but I want to set this option to default.

Mod edit (x33a): https://wiki.archlinux.org/index.php/Co … s_and_code

Last edited by x33a (2017-06-10 17:46:19)

Offline

#2 2017-06-10 14:26:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: Set mount option to write to disk for PCManFM

Is it an ntfs file system?  https://wiki.archlinux.org/index.php/NTFS-3G


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB