| View previous topic :: View next topic |
| Author |
Message |
redview Guru


Joined: 18 Feb 2004 Posts: 365 Location: Goteborg - Sweden
|
Posted: Sat May 06, 2006 6:23 pm Post subject: hsfplus: read-only device |
|
|
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
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 |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
Posted: Sat May 06, 2006 6:35 pm Post subject: |
|
|
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 |
|
 |
fb Guru


Joined: 07 Dec 2003 Posts: 592 Location: New Zealand
|
Posted: Sat May 06, 2006 9:05 pm Post subject: |
|
|
| 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 |
|
 |
redview Guru


Joined: 18 Feb 2004 Posts: 365 Location: Goteborg - Sweden
|
Posted: Sun May 07, 2006 3:46 am Post subject: |
|
|
@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 |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
Posted: Sun May 07, 2006 9:50 am Post subject: |
|
|
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 |
|
 |
redview Guru


Joined: 18 Feb 2004 Posts: 365 Location: Goteborg - Sweden
|
Posted: Sun May 07, 2006 12:16 pm Post subject: |
|
|
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 |
|
 |
Massimo B. l33t


Joined: 09 Feb 2005 Posts: 887 Location: PB, Germany
|
Posted: Wed Oct 18, 2006 5:02 pm Post subject: |
|
|
| 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. _________________ PowerBook5,8 15"(1440)-G4/1.67, 2G -- iBook12"-G3/600-750FX, 640M (pdf dev.notes) || Lila-Theme |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
Posted: Wed Oct 18, 2006 6:28 pm Post subject: |
|
|
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 |
|
 |
Massimo B. l33t


Joined: 09 Feb 2005 Posts: 887 Location: PB, Germany
|
Posted: Thu Oct 19, 2006 4:59 am Post subject: |
|
|
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. _________________ PowerBook5,8 15"(1440)-G4/1.67, 2G -- iBook12"-G3/600-750FX, 640M (pdf dev.notes) || Lila-Theme |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
Posted: Thu Oct 19, 2006 8:34 am Post subject: |
|
|
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 |
|
 |
|