You are not logged in.

#1 2009-06-05 18:12:11

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

HFS+ problem

Hi! In my family whe have mac, linux and windows enviroments and i need to set up my external drive so that it works for every machine with files that are larger than 4GB. I have it set to use one FAT32 partition and one HFS+ partition for the larger files, just put MacDrive installationfiles on the fat drive solves it for windows users but now i run into trouble with linux.

The HFS+ drive is showing up and i can read everything on it but i can't write to it. If i make the partition in Gparted i can write but then Mac OS X wont recognize the drive (can this be solved?) if i make the partition in Mac DiskUtils i get a partition for user "99" or whatever it calls it, i have tryide to change uid and using fstab but nothing works.

Offline

#2 2009-06-05 18:28:30

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: HFS+ problem

If an HFS+ filesystem is journaled, it'll be read-only under Linux. This may not be your problem, but it's worth checking.

Offline

#3 2009-06-05 20:37:57

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: HFS+ problem

I am not using a journaled filesystem, I have set it to be extended only.

Last edited by eldamar (2009-06-05 20:40:28)

Offline

#4 2009-06-06 22:26:14

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: HFS+ problem

You would be set to journaled if created with Mac OS X.  Just to be sure you disabled journaling with a command like:

diskutil disableJournal /dev/disk0s1

from OS X?  Or whatever that partition is named.  Also is the parition is marked as 'dirty' because it was unmounted uncleanly then you won't be able to write to it either.

Last edited by Gen2ly (2009-06-06 22:27:11)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#5 2009-06-06 22:35:22

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: HFS+ problem

Gen2ly wrote:

Also is the parition is marked as 'dirty' because it was unmounted uncleanly then you won't be able to write to it either.

To add to this: you also can't remove the "dirtiness" by fsck'ing the drive, because hfsprogs/fsck.hfsplus will probably segfault.

Offline

#6 2009-06-07 06:39:12

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: HFS+ problem

segfault, Nah!  I've never had a problem with it.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#7 2009-06-07 10:36:12

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: HFS+ problem

Is there some way one can make the partition from linux to be available for Mac OS X aswell? becouse i have tryide to disable Journal filesystem and i don't know about "dirty" but i always unmount the drive before i disconnect it, and nothing seems to work.

Offline

#8 2009-06-07 15:02:16

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

Re: HFS+ problem

What has been said before is not entirely true. You can write a journaled HFS+ with Linux.
All you need to do is to mount the filesystem with "-o rw,force"
I know, "force" sounds a bit scary, but I have not run into trouble with that yet. It works well - at least here.
To double check, you can always run the Disk Utility on the Mac.

Offline

#9 2009-06-08 14:29:13

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: HFS+ problem

Allright, thanks Blind. How exactly do you add that so that it recognize what to do once i connect the external drive? is this something i should put in fstab?
Another solution might be to use ext2 or ext3? is it posible to make mac automount ext filesystems?

Offline

Board footer

Powered by FluxBB