Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Thunar file manager - ext4 partition mounts but cannot write

Help for Current Versions of MX
User avatar
sivaraj
Forum Novice
Forum  Novice
Posts: 32
Joined: Wed Oct 10, 2007 2:43 am

Thunar file manager - ext4 partition mounts but cannot write

#1

Post by sivaraj » Mon Dec 24, 2018 1:16 am

I have a about 5gb partition which is formatted to ext4 and empty
I could not access this partition for writing with thunar file manager .
This is a fresh install of mx18
Accessing through Thunar file manager mounts the drive partition but it does not allow the user to write.
With the right click menu I see the Create folder , Create document and Paste functions are inactive .

Code: Select all

$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev              991212       0    991212   0% /dev
tmpfs             203924    1220    202704   1% /run
/dev/sda1       23606960 5433120  16951596  25% /
tmpfs               5120       4      5116   1% /run/lock
tmpfs             841180   74920    766260   9% /run/shm
cgroup                12       0        12   0% /sys/fs/cgroup
tmpfs             203920       4    203916   1% /run/user/115
tmpfs             203920      12    203908   1% /run/user/1000
/dev/sda2        4837008   19448   4552140   1% /media/sgs/backup

Code: Select all

$  cat /proc/mounts
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=991212k,nr_inodes=247803,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=203924k,mode=755 0 0
/dev/sda1 / ext4 rw,noatime 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
pstore /sys/fs/pstore pstore rw,relatime 0 0
tmpfs /run/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=841180k 0 0
rpc_pipefs /run/rpc_pipefs rpc_pipefs rw,relatime 0 0
cgroup /sys/fs/cgroup tmpfs rw,relatime,size=12k,mode=755 0 0
systemd /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/run/cgmanager/agents/cgm-release-agent.systemd,name=systemd 0 0
tmpfs /run/user/115 tmpfs rw,nosuid,nodev,relatime,size=203920k,mode=700,uid=115,gid=126 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=203920k,mode=700,uid=1000,gid=1000 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
/dev/sda2 /media/sgs/backup ext4 rw,nosuid,nodev,relatime 0 0
Thunar Properties menu > permission shows root only read/write access.

How to change this permission and why it does not allow the write access by default

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 294
Joined: Sat Mar 10, 2018 9:06 pm

Re: Thunar file manager - ext4 partition mounts but cannot write

#2

Post by Buck Fankers » Mon Dec 24, 2018 2:10 am

Ups, just now I saw bellow your code, you wrote there is permission problem since root has ownership.

In thunar , right click on that space and choose properties from drop down menu. Then click on third tab and change ownership to you, your user.

MX had in thunar menu option you could give ownership to you, but I think it was removed with latest upgrade since there were some problems with it, See if you still have it, right click on space and look for the text in popu-up menu, such as: ownership to user

There is also terminal command available, but I'm Linux beginner, not using cli much, you will have to search internet for it. Just type: "linux change ownership" into the search engine

OK did it for you, command is chown (change ownership)

See examples:

https://www.hostingadvice.com/how-to/ch ... ups-linux/

https://askubuntu.com/questions/6723/ch ... -ownership

https://www.techonthenet.com/linux/commands/chown.php

User avatar
penguin
Forum Regular
Forum Regular
Posts: 323
Joined: Wed Jan 04, 2017 3:15 pm

Re: Thunar file manager - ext4 partition mounts but cannot write

#3

Post by penguin » Mon Dec 24, 2018 2:36 am

Also have a look.

Code: Select all

https://chmod-calculator.com
Could be worthy installing of Gnome Commander from Synaptic ( a double pane commander). Open Gnome Commander, Right Click on File or Directory > Permissions, change as you wish and Apply.

Alternatives of Gnome Commander are Midninght Commander,Sunflower or Double Commander.

The last one can be downloaded here

Code: Select all

https://sourceforge.net/p/doublecmd/wiki/Download/
. I use gkt version as portable. Unzip downloaded file somewhere. Make a shortcut to your desktop and play with it. To use is as root(pay attention) 1- open Thunar as root in the folder where you have unziped files and execute doublecmd or 2. Execute the shortcut created in your desktop as sudo.

User avatar
sivaraj
Forum Novice
Forum  Novice
Posts: 32
Joined: Wed Oct 10, 2007 2:43 am

Re: Thunar file manager - ext4 partition mounts but cannot write

#4

Post by sivaraj » Mon Dec 24, 2018 5:14 am

Thanks for replies
But it is not folder permission issue instead a device permission issue .
I am seeing Thunar file manager always mounts the <device> with root permission which includes the USB devices.
You cannot write into the USB unless it already has a folder with permission to user and writing into it.

I installed nemo file manager and it works fine.
Nemo mounts the <device> with owner permission to user .

But Thunar mounts the <device> with owner permission to root.

I am not clear how to make Thunar to mount the devices with permission to user like in Nemo

Mx-18 removed the Ownership to Root & Ownership to user custom actions .
I added these actions referring mx17 .
But this is only for folder permission change not device permission

If I create some folder with Nemo into the problem device , Thunar can work happily inside this folder and still cannot create a new folder in device main folder
Only alternative is to use the Thunar with root privileges

User avatar
sivaraj
Forum Novice
Forum  Novice
Posts: 32
Joined: Wed Oct 10, 2007 2:43 am

Re: Thunar file manager - ext4 partition mounts but cannot write

#5

Post by sivaraj » Mon Dec 24, 2018 5:36 am

update:
A computer restart after installation of Nemo file manager looks to be fixing the problem
Now it works and Thunar mounts the device with permission to user

May be Nemo installation with restart fixed this Thunar issue

User avatar
penguin
Forum Regular
Forum Regular
Posts: 323
Joined: Wed Jan 04, 2017 3:15 pm

Re: Thunar file manager - ext4 partition mounts but cannot write

#6

Post by penguin » Mon Dec 24, 2018 5:42 am

I use Thunar and sometimes I have noticed similar problems with SD Card when I forcibly mount it in a predefined folder /mnt/XX created by me. The only solution, is changing of permissions for this folder(User Owned) . This do not happens when USB or SD Card is mounted in a temporary folder decided by Thunar(system)
Last edited by penguin on Mon Dec 24, 2018 6:44 am, edited 1 time in total.

philotux
Forum Regular
Forum Regular
Posts: 425
Joined: Sun Apr 22, 2018 12:57 pm

Re: Thunar file manager - ext4 partition mounts but cannot write

#7

Post by philotux » Mon Dec 24, 2018 6:34 am

Find out where the partition gets mounted and then run

Code: Select all

sudo chown $USER:$USER /path/to/mountpoint

User avatar
jeanpaulberes
Forum Novice
Forum  Novice
Posts: 40
Joined: Wed Dec 19, 2018 11:56 am

Re: Thunar file manager - ext4 partition mounts but cannot write

#8

Post by jeanpaulberes » Wed Jan 09, 2019 3:47 pm

Hi,

normally all partitions are visible under the /media directory.
if you do ls -Alh you will probably notice that the Execute is not set for that particular partition ...
the first group is the Root he has drwx followed by group and user ..; to access a partitition it should show drwxr-xr-x (everybody needs execute rights)
To change that you can do simply chmod 755 nameofpartition

Best regards,
JP
:needcoffee:

User avatar
Mauser
Forum Guide
Forum Guide
Posts: 1016
Joined: Mon Jun 27, 2016 7:32 pm

Re: Thunar file manager - ext4 partition mounts but cannot write

#9

Post by Mauser » Wed Jan 09, 2019 11:13 pm

I found out the hard way that when you hook up an external HDD on MX-18 you need to open Thunar as root in order to copy and paste to it which I am re-backing up my data so I can put it on the new computer I built. In previous versions of MX you could copy and paste to it without opening Thunar as root. This has nothing to do with removing those useless destructive actions in Thunar. Looks like some file permissions have been changed in MX-18 which I am O.K. with but I wish it was mentioned earlier.
I am command line illiterate. :confused:

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 4319
Joined: Sun May 27, 2007 5:37 am

Re: Thunar file manager - ext4 partition mounts but cannot write

#10

Post by asqwerth » Wed Jan 09, 2019 11:58 pm

Mauser wrote:
Wed Jan 09, 2019 11:13 pm
I found out the hard way that when you hook up an external HDD on MX-18 you need to open Thunar as root in order to copy and paste to it which I am re-backing up my data so I can put it on the new computer I built. In previous versions of MX you could copy and paste to it without opening Thunar as root. This has nothing to do with removing those useless destructive actions in Thunar. Looks like some file permissions have been changed in MX-18 which I am O.K. with but I wish it was mentioned earlier.
Could just be a case of a different formatting type for your external device.

Is your external HDD formatted as ext4? Then you'll need to open as root or change the permissions. This was always the case.

If previously you formatted as NTFS (windows' file system) or FAT32 (thumb drives, USB sticks), it will copy with no issue.

I don't think Thunar has changed in this area otherwise.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

Post Reply

Return to “MX Help”