Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HFS Problems with kernel 2.6 (permissions)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Principal Skinner
n00b
n00b


Joined: 27 Nov 2002
Posts: 50
Location: Greenbelt, Maryland, USA

PostPosted: Fri Aug 20, 2004 6:15 am    Post subject: HFS Problems with kernel 2.6 (permissions) Reply with quote

I have always used an HFS partition to transfer data between Linux and OS X on my iBook. I almost never had any problems reading and writing to my HFS partition.

However, I've just made the plunge to the 2.6 series of kernels, starting with 2.6.8 (actually started with 2.6.7, but couldn't get that to boot). Most things appear to be working, but the apparently rewritten HFS code isn't working for me at all. Well, only partly. I seem to be able to read files on the HFS partition, and cp files to it. But if I try to create a file, say by writing some text in nano and saving it, then the permissions will look like:

----w--w-

...and doing a chmod a+r will instead turn off those two w's so no one has any permissions on those files at all! I can't read the new file in either state.

I also can't mount filesystem images when they live on the HFS partition. In one case, I copied an image file that had mounted fine over to the HFS partition, and tried to mount it from there. The error I got was: "ioctl: LOOP_SET_FD: Invalid argument"

None of this is hfsplus, just HFS. Haven't tried HFS+. I have looked high and low for info on HFS anomalies since the rewrite/kernel version change, but haven't found any mention of anything different, except some stuff related to Netatalk, which I don't use.

Am I doing anything wrong?
Back to top
View user's profile Send private message
pakkypnut
n00b
n00b


Joined: 10 Jul 2002
Posts: 26
Location: Canberra

PostPosted: Fri Aug 27, 2004 12:59 am    Post subject: Reply with quote

just noticed the same thing, well similar anyway.

I've just installed 2004.2 on an old world mac (pm 7500 with a sonnet 450 g3) and wanted to compile my own kernel. I managed to copy it once so I have a working kernel, but after tweaking the configuartion and compiling a new kernel, when copied to the hfs partition, it deletes some of the permissions, so much so that it is not readable by bootx and won't boot. Any attempt to preserve permissions dury copy is ignored, as well as any chmod etc. I have noticed that it only removes the 2nd and third permissions. (normally -rw-----, ignore the rest I cant remember what they were). it's puzzling!
_________________
And some said that even the trees had been a bad move, and that no one should ever have left the oceans.
Douglas Adams - Hitchhikers Guide to the Galaxy
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Sat Aug 28, 2004 7:59 am    Post subject: Reply with quote

Interesting - have you tried using a UID that's the same on both systems (aka, "501" on both Gentoo and OSX)? I've heard that can help many permissions issues.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
pakkypnut
n00b
n00b


Joined: 10 Jul 2002
Posts: 26
Location: Canberra

PostPosted: Sun Aug 29, 2004 10:21 pm    Post subject: Reply with quote

since I managed to boot and install from the livecd proper, the problem just went away, including the problems I had when trying to boot from my own custom kernel, must be something to do with the way it installs when using an earlier kernel release
_________________
And some said that even the trees had been a bad move, and that no one should ever have left the oceans.
Douglas Adams - Hitchhikers Guide to the Galaxy
Back to top
View user's profile Send private message
linuxopjemac
n00b
n00b


Joined: 23 Aug 2004
Posts: 35
Location: The Hague, The Netherlands

PostPosted: Sun Aug 29, 2004 10:41 pm    Post subject: Reply with quote

I have similar behaviour:
when I mount the hfs partition I cannot copy anything to it, it complains that the partition is read-only
pfff

Anyone knows how to deal with this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum