You are not logged in.
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
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 packages • Zsh and other configs
Offline
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
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 packages • Zsh and other configs
Offline
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
Offline
Offline
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
What would you define as an easy fix then? What exactly are the risks you're talking about?
Offline
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
do it good first, it will be faster than do it twice the saint
Offline
Install ntfs-3g package if you haven't already then see the Archwiki ntfs-3g entry, the part about editing /etc/fstab in particular.
Ancestoral Clan https://cirrus.freevar.com/mclean.html
Offline
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"...
Offline
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
Not sure if it's useful or not but...
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
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.
Offline