Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hsfplus: read-only device
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
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat May 06, 2006 11:23 pm    Post subject: hsfplus: read-only device Reply with quote

Hi,
i've got a quite strange problem with my ibook.
i cannot write in my hsfplus hds because they are read-only, despite in my fstab i clearly pass writing options.
Code:
/dev/hda4      /mnt/data   hfsplus      defaults,rw   0 0


I can't write neither with root, neither with users.
In the kernel i've the apple fs support marked as built-in.

it's driving my mad 8O
heeeeeelp! :)
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat May 06, 2006 11:35 pm    Post subject: Reply with quote

Check dmesg. If it's been incorrectly unmounted, you should check it in OSX. If it's journaled, you'll need to either disable journaling or use this patch: http://dev.gentoo.org/~josejx/hfsplus-rw-journal.patch

Background:
In 2.6.16, the kernel devs removed rw support from journaled HFS+ since they weren't checking if the journal was clean and aren't using it as a journaled HFS+ fs, just as a regular HFS+ filesystem. This patch enables the old behaviour with an added check to make sure the journal is clean before allowing writing.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sun May 07, 2006 2:05 am    Post subject: Reply with quote

JoseJX wrote:
Check dmesg. If it's been incorrectly unmounted, you should check it in OSX. If it's journaled, you'll need to either disable journaling or use this patch: http://dev.gentoo.org/~josejx/hfsplus-rw-journal.patch

Background:
In 2.6.16, the kernel devs removed rw support from journaled HFS+ since they weren't checking if the journal was clean and aren't using it as a journaled HFS+ fs, just as a regular HFS+ filesystem. This patch enables the old behaviour with an added check to make sure the journal is clean before allowing writing.

Ah! I was wondering about the change in behavior. I will probably disable journaling until this
is fixed.
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun May 07, 2006 8:46 am    Post subject: Reply with quote

@JoseJX: how do i check if OSX incorrectly unmounts the volume?? and, how do i use that patch??

thanx!
:)
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun May 07, 2006 2:50 pm    Post subject: Reply with quote

Like I said in my first post, check dmesg to see why it was being mounted r/o. The patch applies to the kernel. If you're not sure what that means or how to do it, the easiest thing to do is to just turn off journaling on your HFS+ partition.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun May 07, 2006 5:16 pm    Post subject: Reply with quote

I solved the problemi in this way:
i read in the forum that in 2.6.15 there's a patch by which if i mount the volume with "force" option enabled i can write on hfs.
it works! ;)

thx to everyone!! :)
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1556
Location: Germany

PostPosted: Wed Oct 18, 2006 10:02 pm    Post subject: Reply with quote

Code:
/dev/hda6         /mnt/MacOSX       hfsplus      defaults,force        0 0
works also here. But if they disabled rw, what is actually dangerous in copying some picture files to HFS+ and back? I just use OSX for image processing.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Oct 18, 2006 11:28 pm    Post subject: Reply with quote

The Linux kernel driver doesn't support journaling. So there's the possibility of leaving the disk in an unknown state after writing to it from Linux. That said, it will work fine most of the time.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1556
Location: Germany

PostPosted: Thu Oct 19, 2006 9:59 am    Post subject: Reply with quote

But not using journal from Linux means, it writes directly without journalizing? That would not affect OSX using journal. Just in case of an error from linux side, OSX would not be able to recover. Am I wrong?

Has disabling journal in OSX also performance impact?
Was quite hard to find out where to disable journal there :) I don't like that OS.

I also switched the uid in OSX to the same of the linux user. With netinfo and also a find|chown. Now I'm able to share files.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Oct 19, 2006 1:34 pm    Post subject: Reply with quote

Well, the problem is when there's still something in the journal. Since Linux doesn't know about it, it can't flush those commits. If you then write to the same file still in the journal, you'll get corruption once the journal is played back.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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