You are not logged in.

#1 2016-02-19 19:46:54

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

SOLVED: Unable to write to Ext4 USB drive

Hi

I have a usb drive formatted with Gparted to Ext4. I'm unable to write files to it from libreoffice and the create folder option in Thunar is greyed out. It seems I don't have write permissions to external media - I'm not sure how to rectify this, however.

Thanks,

~S

Last edited by Steinberg2010 (2016-02-20 02:06:48)

Offline

#2 2016-02-19 19:50:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SOLVED: Unable to write to Ext4 USB drive

How do you mount it? Paste the relevant line from the `mount` command.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-02-19 19:57:02

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SOLVED: Unable to write to Ext4 USB drive

1) https://wiki.archlinux.org/index.php/US … with_mount

Or

2)  man chown (change the owner of the mountpoint to your user)

Or

2) Try mounting with pmount from Aur

Last edited by ugjka (2016-02-19 19:58:41)

Offline

#4 2016-02-19 19:59:30

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: SOLVED: Unable to write to Ext4 USB drive

I can't see it when I run "mount" - there's only one drive listed as Ext4 and that's my internal SSD...

Offline

#5 2016-02-19 20:02:42

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SOLVED: Unable to write to Ext4 USB drive

We can't see it either! Post what you actually are doing, full commands, logs, error messages etc.

Offline

#6 2016-02-19 20:03:59

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: SOLVED: Unable to write to Ext4 USB drive

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=3934292k,nr_inodes=983573,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=787400k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)

Here is the full output of the mount command. I'm running Openbox with Thunar and few extra packages installed on top (the installation is only a few weeks old).

~S

Offline

#7 2016-02-19 20:06:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SOLVED: Unable to write to Ext4 USB drive

So you can't write to it because it is not mounted. How were you expecting to mount it?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2016-02-19 20:06:31

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SOLVED: Unable to write to Ext4 USB drive

Jesus Christ, learn how to use mount!

https://wiki.archlinux.org/index.php/Mount

man mount

Last edited by ugjka (2016-02-19 20:08:00)

Offline

#9 2016-02-19 20:08:26

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: SOLVED: Unable to write to Ext4 USB drive

I'm confused... I plug it in and it appears in Thunar and I can browse the drive, fomat partitions, eject, etc. is that not mounted already?

Offline

#10 2016-02-19 20:19:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SOLVED: Unable to write to Ext4 USB drive

If it isn't in the mount output, it isn't mounted. How are you automounting?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2016-02-19 20:21:10

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: SOLVED: Unable to write to Ext4 USB drive

I guess I'm not automounting after all - I had assumed that happened when I plugged my flash drive in. I haven't installed any packages to assist with automounting and I don't have an entry in /etc/fstab for an external drive.

Offline

#12 2016-02-19 20:22:39

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SOLVED: Unable to write to Ext4 USB drive

Steinberg2010 wrote:

I have a usb drive formatted with Gparted to Ext4. ... It seems I don't have write permissions to external media - I'm not sure how to rectify this, however.

Archwiki wrote:

Consider the following example, making a new partition with GParted for backup data. Gparted does this all as root so everything belongs to root. This is all well and good but when it came to writing data to the mounted partition, permission was denied.

Click this link and read!
https://wiki.archlinux.org/index.php/Fi … _ownership

Last edited by ugjka (2016-02-19 20:27:17)

Offline

#13 2016-02-19 20:32:26

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SOLVED: Unable to write to Ext4 USB drive

Also what's the output uname -a (because I don't understand how did you install your system without encountering mount)

Offline

#14 2016-02-19 20:52:19

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: SOLVED: Unable to write to Ext4 USB drive

uname -a
Linux archtp 4.4.1-2-ARCH #1 SMP PREEMPT Wed Feb 3 13:12:33 UTC 2016 x86_64 GNU/Linux

I encountered mount when I installed, I've just not plugged anything in physically since so I hadn't really thought about it...

Offline

#15 2016-02-19 21:00:03

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: SOLVED: Unable to write to Ext4 USB drive

So did you try changing ownership of the mountpoint as said in the wiki?

Last edited by ugjka (2016-02-19 21:01:23)

Offline

#16 2016-02-20 01:27:09

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: SOLVED: Unable to write to Ext4 USB drive

Yes - that doesn't seem to have helped. Am I meant to add line to my /etc/fstab?

BTW this is the current output I get from mount now:

/dev/sdb1 on /run/media/nicolas/5af26381-8b01-4ba0-8715-912bd73e4691 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)

~S

Last edited by Steinberg2010 (2016-02-20 01:31:26)

Offline

#17 2016-02-20 01:32:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SOLVED: Unable to write to Ext4 USB drive


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#18 2016-02-20 01:39:11

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: SOLVED: Unable to write to Ext4 USB drive

I have udisks2 installed. I don't think the issue is mounting the drive, it seems to be a permissions problems. I can view and browse the drive in Thunar, it won't let me create folders or files unless I open as root.
~S

Offline

#19 2016-02-20 02:06:33

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: SOLVED: Unable to write to Ext4 USB drive

Okay - chown seemed to solve the problem!

Thanks for all your help guys!
~S

Offline

Board footer

Powered by FluxBB