You are not logged in.

#1 2015-01-01 13:42:53

Baltazard2013
Member
Registered: 2013-04-05
Posts: 13

Problem mounting USB HDD with right access permissions!

Hi Everyone, Happy new year and thank you for reading.

Well, I've installed Arch and setup pretty much all I want, except I'm having a problem with file/folder permission on my external hard drive.
I don't have this problem with other *ubuntu and its derivate distros; I've experienced this problem only while using Arch.
So I've decided to start fresh with only Arch as my OS on my laptop, because I feel that Arch suit my need.
Anyway, when I plug my external HDD via usb port, I can read and write but for some reasons I can't modify the existing data (say delete or rename).
I've tried to change permission on the files/folder but it stays the same after reboot/re-insert.
While I don't want to mount the USB-HDD on boot, I do want to have the USB-HDD mounted when I plug it in and have full access to my existing data.
I scoured the forum and there seems to be few posts related to my problem, but not a simple fix is provided.
I hope someone will provide me an answer.

Many Thanks

mount (output)

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=2006628k,nr_inodes=501657,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda2 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/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
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=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/sda4 on /home type ext4 (rw,relatime,data=ordered)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=401892k,mode=700,uid=1000,gid=100)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/sdb1 on /run/media/arch/Samusng3TB type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)

lsblk (output)

lsblk -f
NAME   FSTYPE LABEL      UUID                                 MOUNTPOINT
sda                                                           
├─sda1 vfat   Boot       108B-1496                            
├─sda2 ext4              c220dbba-318e-4bdd-b539-c20a5fc3389a /
├─sda3 swap              d75fd83b-236a-4987-9642-eb87ce67cc9e [SWAP]
└─sda4 ext4              3246c321-276e-4a25-8f47-cfd44bfde38d /home
sdb                                                           
└─sdb1 ntfs   Samusng3TB 2B2171132C1266D9                     /run/media/arch/Samusng3TB
sr0

Last edited by Baltazard2013 (2015-01-01 13:58:49)

Offline

#2 2015-01-01 13:55:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Problem mounting USB HDD with right access permissions!

Please use bbcode when posting shell output.  I'm not an ntfs expert, but what about changing the ownership on that mount point to your user/group?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2015-01-01 14:02:35

Baltazard2013
Member
Registered: 2013-04-05
Posts: 13

Re: Problem mounting USB HDD with right access permissions!

Done, thanks, i didn't know that (bbcode)
no idea how to change ownership, and I don't want to add the USB HDD to fstab.

Offline

#4 2015-01-01 14:05:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Problem mounting USB HDD with right access permissions!

Baltazard2013 wrote:

no idea how to change ownership, and I don't want to add the USB HDD to fstab.

I dunno... I don't an NTFS external (just ext4) and there the permissions are changed on the mounted device and the mount point inherits them on the mount.  Not sure how to accomplish it on ntfs without a umask/fmask.  Perhaps someone else knows or the answer is out there just waiting to be found.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2015-01-01 16:10:09

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Problem mounting USB HDD with right access permissions!

NTFS has no permissions, in particular, but the mount point has. Better you see this wiki and this chapter
If you don't have installed udisk2, then you should.


do it good first, it will be faster than do it twice the saint wink

Offline

#6 2015-01-01 18:26:16

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

Re: Problem mounting USB HDD with right access permissions!


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-01-01 20:20:29

Baltazard2013
Member
Registered: 2013-04-05
Posts: 13

Re: Problem mounting USB HDD with right access permissions!

It seems that there isn't an easy fix, I feel that the solution is in fstab, but I don't really want to mess with it.
Udisks is kind of a risky business, I'm not sure but I will give both option a try.
Thx

Offline

#8 2015-01-02 01:15:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problem mounting USB HDD with right access permissions!

What would you define as an easy fix then? What exactly are the risks you're talking about?

Offline

#9 2015-01-02 10:30:10

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Problem mounting USB HDD with right access permissions!

Baltazard2013 wrote:

Udisks is kind of a risky business

Ubuntu has done that risky business, instead of you. Arch gives you the power to administer your thing.
Knowing what to do with udisks gives you the power to configure what you need. But it is no harm as long as you don't write anything on the NTFS partition. If you want to write then it's implied that you're doing a risky business wink


do it good first, it will be faster than do it twice the saint wink

Offline

#10 2015-01-02 19:33:30

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: Problem mounting USB HDD with right access permissions!

Install ntfs-3g package if you haven't already then see the Archwiki ntfs-3g entry, the part about editing /etc/fstab in particular.

Offline

#11 2015-01-02 19:36:50

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

Re: Problem mounting USB HDD with right access permissions!

cirrus wrote:

Install ntfs-3g package if you haven't already then see the Archwiki ntfs-3g entry, the part about editing /etc/fstab in particular.

OP seems uninterested in actually reading the wiki or understanding their "problem"...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2015-01-02 20:08:45

Baltazard2013
Member
Registered: 2013-04-05
Posts: 13

Re: Problem mounting USB HDD with right access permissions!

Many thanks guys, but, I did install "ntfs-3g" long before posting my problem; and if you read well I did mention that I do not want to change fstab just for the sake of an external HDD I plug once in a while (which make sense), also if I extrapolte to another level, that means I will add every USB pen I insert to the fstab!
So, maybe fstab is one solution but not the right solution.
I will keep searching, as I'm not convinced this is right.
Thx

Offline

#13 2015-01-02 20:12:42

codingman
Member
Registered: 2015-01-01
Posts: 32

Re: Problem mounting USB HDD with right access permissions!

Not sure if it's useful or not but...

https://wiki.archlinux.org/index.php/Li … ount_tools


Help Vampires --- Linux is NOT Windows! --- The Arch Way --- Get the As to your Qs!

No tak lik dis or NO ANZER!1!1!!1!

Offline

#14 2015-01-02 20:31:12

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

Re: Problem mounting USB HDD with right access permissions!

Baltazard2013 wrote:

Many thanks guys, but, I did install "ntfs-3g" long before posting my problem; and if you read well I did mention that I do not want to change fstab just for the sake of an external HDD I plug once in a while (which make sense), also if I extrapolte to another level, that means I will add every USB pen I insert to the fstab!
So, maybe fstab is one solution but not the right solution.
I will keep searching, as I'm not convinced this is right.
Thx

You aren't convinced it is right. You think udisks is a risky business. What exactly is the issue?

Install ntfs-3g and add custom mount options (as per the wiki article) for that filesystem in your udiskie config file. That's all there is to it.
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB