You are not logged in.

#1 2013-01-08 05:23:37

shallpion
Member
Registered: 2009-12-12
Posts: 65

[solved] how to change the mounting privilege of external disk?

Hi, thanks for reading my question. I have a removable external hard drive with NTFS partitions on it and I noticed that now it is mounted automatically as :

drwx------ 1 shallpion users 4096 Jan  3 07:24 Seagate

and I wish I can add read permission to "Group" and "Others". There is nothing about removable device inside /etc/fstab and I prefer not to use static configuration to mount them. I  remember that I could play with udev ruls to achieve what I am expecting but now I am using systemd and the /etc/udev/rules.d/ is empty.  So I have no idea what to do and I didn't find useful information in wiki.

Thanks in advance.

Last edited by shallpion (2013-01-08 08:02:57)

Offline

#2 2013-01-08 05:30:07

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] how to change the mounting privilege of external disk?

Automagically like how?  Configure whatever tool you use.

Offline

#3 2013-01-08 05:34:26

shallpion
Member
Registered: 2009-12-12
Posts: 65

Re: [solved] how to change the mounting privilege of external disk?

WonderWoofy wrote:

Automagically like how?  Configure whatever tool you use.

Sorry but now I have no idea how the usb disk is *actually* mounted. All I know is when I plug it in then it is automatically mounted under /media with no read permission for "Group" and "Others"...

Thanks

Offline

#4 2013-01-08 05:46:26

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] how to change the mounting privilege of external disk?

Then no one here is going to have any idea how to help you.

Offline

#5 2013-01-08 06:00:23

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 233

Re: [solved] how to change the mounting privilege of external disk?

shallpion wrote:

Sorry but now I have no idea how the usb disk is *actually* mounted. All I know is when I plug it in then it is automatically mounted under /media with no read permission for "Group" and "Others"...

Plug in USB drive and post result of command:

cat /etc/mtab

You'll see options which disk is mounted with.

Last edited by Fixxer (2013-01-08 06:00:53)

Offline

#6 2013-01-08 06:26:17

shallpion
Member
Registered: 2009-12-12
Posts: 65

Re: [solved] how to change the mounting privilege of external disk?

Fixxer wrote:
shallpion wrote:

Sorry but now I have no idea how the usb disk is *actually* mounted. All I know is when I plug it in then it is automatically mounted under /media with no read permission for "Group" and "Others"...

Plug in USB drive and post result of command:

cat /etc/mtab

You'll see options which disk is mounted with.


Thanks Fixxer. Here is how the disk is mounted:

1. Plug in the usb drive, then the KDE system tray notifier reminds me there is a removable disk, but it does not auto mount it until I open it in file manager like dolphin
2. the output

/dev/sdb1 /media/Seagate fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0

Offline

#7 2013-01-08 07:58:44

shallpion
Member
Registered: 2009-12-12
Posts: 65

Re: [solved] how to change the mounting privilege of external disk?

I tried a udev rule and it turns out even though I am using systemd, the customized udev rule is still honored, at least partially since I ran into a similar problem as in this thread:

https://bbs.archlinux.org/viewtopic.php?id=150015

Thank you both:)

Last edited by shallpion (2013-01-08 08:02:41)

Offline

Board footer

Powered by FluxBB