Hot answers tagged

128

First, make sure that you have hfsprogs installed. Example installation command: sudo apt-get install hfsprogs Next, mount or remount the HFS+ drive; commands need to be as follows: sudo mount -t hfsplus -o force,rw /dev/sdx# /media/mntpoint or sudo mount -t hfsplus -o remount,force,rw /dev/sdx# /mount/point Finally, if the drive was improperly ...


54

You need to turn off the journaling if you want to write to it from Ubuntu. Ubuntu only has support for writing to non-journaled HFS+ volumes. On your Mac: Open Disk Utility under Applications -> Utilities Select the volume to disable journaling on. Choose Disable Journaling from the File menu. (On later Mac OS versions you'll have to hold down the ...


41

You can't mount an HFS+ partition encrypted in OS X using mount's option encryption=aes. The reason is that encrypted HFS+ partitions and volumes use a proprietary format. Neither Cryptoloop nor Loop-AES, which are the underlying decryption methods used by mount and encryption, understand that format. This is what I found out: Cryptoloop can mount ...


20

You can enable writing to HFS+ in Linux even if you didn't disable journaling. In addition to hfsplus which you already have, you need to have hfsprogs installed: sudo apt-get install hfsprogs Then, use the -o force option: sudo mount -o force /dev/sdX /your/mount/point If the drive has been mounted automatically (as it should be on a desktop system ...


19

Clicking on the Time Machine icon in the menu bar and choose "Skip verification" caused the fsck_hfs process to stop itself. Maybe a bit nicer than kill...


15

It was probably running from when your Time Machine volume was mounted. If the volume isn't present anymore, I doubt it. I'm sure you can sudo killall fsck_hfs; it wouldn't hurt anything. (Have you tried restarting?) It probably is.


13

I confirm quack quixote's latest comment: the diskimage-class=CRawDiskImage setting allows an image created by dd to be mounted: hdiutil attach -imagekey diskimage-class=CRawDiskImage image-file-name P.S. I copied it here to give it more visibility.


12

MacDrive is what you're after. It's $50 for a CD or Download if that's within your budget, I can guarantee it's quality software. For a free alternative as already mentioned, HFSExplorer works well, but it will not integrate like any other disk as you prefer. If you are running Windows 7 under Boot Camp however, OS X 10.6 will include HFS drivers with Boot ...


11

Have you tried to match permissions? By default, Mac OS X formats volumes in journaled HFS+ volumes. Journaling is a feature that improves data reliability, and unfortunately it makes HFS drives read-only in Linux. To disable journaling, just boot into OS X and fire up Disk Utility. Click on your HFS partition, hold the Option key, and click File in the ...


10

HFS+ supports both case-sensitivity and case-insensitivity. You can select which when creating the partition in Disk Utility.app. Some applications (infamously: Adobe products) break when you switch to case sensitivity. To clarify: You would need to reformat the disk. It's not some switch hidden in System Preferences or anything like that.


10

You don't say what make and model disk, how you arrived at it's expected capacity or how you measured actual available capacity - so it could be some or all (or none) of the following: Disk vendors state sizes in powers of 1000, Operating systems report sizes in powers of 1024 (recent OSX doesn't) Filesystems reserve space for Filesystem structures like ...


9

With or without formatting the drive? What partition map are you using as the live resizing feature only works with GPT (GUID Partition Table) which is the default if you have an Intel Mac. It is possible to resize an HFS+ drive from the command line using diskutil or by using Disk Utility. In Disk Utility you can resize the partition using the resize ...


9

Hmm. According to one source, you need hdiutil (OSX hdiutil manpage), as in hdiutil attach -readonly cdimage.iso What you're trying to do is known as "loopback mounting", that is, mounting via the loop device. According to Wikipedia's article: Mac OS X implements a native image mounting mechanism as part of its random access disk device abstraction....


9

Actually, there is Java application hfsexplorer that is able to open encrypted .dmg files and creates decrypted .dmg images which can be mounted in Linux. I was able to create encrypted .dmg files in OS X 10.9.5 and then explore the image from a virtual machine running Ubuntu 14.04.2 LTS. Both AES-128 and AES-256 encryption worked for my test cases. This ...


6

It looks like the problem was the partition table. $ diskutil list /dev/disk0 # The internal hard disk #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *500.1 GB disk0 1: EFI 209.7 MB disk0s1 2: ...


6

How does it know what blocks that are junk and which belongs to files without support from the filesystem? I think this is an important question that nobody's really answered. The drive cannot know which blocks are valid and which blocks are valid without either understanding the filesystem being used or by getting additional information (e.g. from TRIM). ...


5

I don't know if this is the best approach, but the following command does what you want and lists you all files and directory entries for which duplicate case insensitive names exist: find /path/to/check -type f -o -type d | tr A-Z a-z | sort | uniq -d What it does is, find all files and directories in /path/to/check, makes the output lowercase, sorts ...


5

The version of Boot Camp that comes with Snow Leopard will contain HFS+ drivers for Windows. Rather than buy additional utilities, you might prefer to wait for the upgrade. "Boot Camp now includes HFS+ read support that enables you to access the files on your Mac OS X partition from Windows. It’s read-only to prevent PC viruses from affecting Mac OS X, but ...


5

For read only access you can try hfs explorer


5

FAT32 has the advantage of being completely cross-platform, but its major limitation is that the files cannot be more than 4GB. This is primarily a problem for working with video, and with virtual hard drives. VirtualBox supports VMWare's VMDK format. You can use a command-line utility to create VMDKs with the Split2G option as detailed here. It will create ...


5

? is allowed. Only 0x00 (NUL) and : are forbidden for HFS+. : however is switched in POSIX-based software to /: Thanks to Graham Lee who corrected me on this!


5

In addition to the file's path, Mac OS aliases record several pieces of additional information: the file's unique ID, its parent directory ID, file size, [possibly creation time]; which are used to locate the most probable match in case of a broken link. I think most of the time a file is found by its unique ID, which does not change after a rename. See ...


5

The Mac file system is called HFS+. It uses inode numbers in a B-tree, with the physical and logical location (three parts in total). Metadata is in another b-tree, along with the data-forks. So it knows what to expect in a place, knows of another way to refer to it, looks that up and there you go. It's like if someone moved house, you still have their ...


5

I have been running into the same issue too. My understanding from information that I read here, and on other places, is that it's a linux kernel bug in the hfsplus module. It adds random user flags to files. There are two flags that prevent editing/deleting files: uchg and uappnd. These are the two bad guys. They can be applied to a file or even to a ...


4

With Gparted, you can format a partition as either HFS or HFS+.


4

Linux has read-only support for journaled HFS+ volumes and read/write support for unjournaled volumes. a quick Google search finds MacDrive for Windows.


4

If one is a fast learner, you could use TestDisk to repair the HFS+ partition. TestDisk is […] free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a ...


4

As Daniel Beck said, NUL and ":" (aka "/" in POSIX contexts) are forbidden; however, it's more complicated than that. HFS+ filenames must be stored in UTF-8 format, in fully decomposed form, with composing characters stored in canonical order (see tn1150). So the answer to your question depends on what you mean by "character": If you're interested in the ...


4

I tackled this. I downloaded the source for hfs.util, made the changes you mentioned (so that it could compile), re-enabled the UUID functionality (like -s which is disabled in the current source), and added a new command (-S which is used to specify a UUID). The format for the new command is this: sudo hfs.util -S disk0s2 xxxxxxxx-xxxx-xxxx-xxxx-...



Only top voted, non community-wiki answers of a minimum length are eligible