You are not logged in.

#1 2013-09-06 10:50:30

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Howto Read/write HFS+ as user

Hi, I just installed my new custom kernel with hfs+ support

Here is my fstab entry : /dev/sda2               /media/MACINTOSH_HD     hfsplus rw,exec,auto,uid=1000,gid=100 users 0    0

When i am root I have full acces to the harddriver but as a user i cant acces to some of my content in my Users directory.

What shoud I do to change that ? I dont kow if changing the chmod under macos X is a good idea...

Offline

#2 2013-09-06 11:19:36

sekret
Member
Registered: 2013-07-22
Posts: 303

Re: Howto Read/write HFS+ as user

This fstab entry looks buggy to me, since there's a missing , between gid=1000 and users.

Offline

#3 2013-09-06 14:48:37

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Re: Howto Read/write HFS+ as user

Yes I noticed when the kernel restarted in emergency mode, but beside that why is root allowed to read all content and not me ? what groupe should I be in ? disk ? I ve tried to be in storage group vut didnt help. And disk seems to be a groupe that has too many rights.

Offline

#4 2013-09-06 15:08:59

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: Howto Read/write HFS+ as user

Leaving aside the /etc/fstab entry bug pointed out by sekret, HFS+ is a Unix-style filesystem, and so the uid= and gid= options are essentially useless with it. (According to the documentation, those options work, but they only affect files that don't have explicitly-set owners and groups.) Instead, you must rely on matching your Linux and Mac OS X UID and GID values. I wrote a rather lengthy response to a question about this on another site recently, so I'll just link to it:

http://askubuntu.com/questions/315078/h … 184#315184

Offline

#5 2013-09-06 17:47:01

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Re: Howto Read/write HFS+ as user

Thank you for your help, however my suystem seemed to run differently and ram was highly used.

I did log out from my user account before i did that but apparently they where still a process that was using my user account.

Well i put back everything in uid 1000 and the system became stable again.

I will have a look at groups id and do it properly next time.

Offline

#6 2013-09-07 00:15:58

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Howto Read/write HFS+ as user

You may not want write access at all unless you are not using journalling on the HFS+ partition. (Basically because this can cause filesystem corruption as I understand it.) Read access is a different matter.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB