Accessing HFS+ partition from Linux in R/W mode

Usually Mac’s HFS+ formatted drive allows you to access the drive in read-only mode. Howver, there is a way to get the drive to mount in a read write mode without turning off the journaled mode. Just follow the steps below

First check the disk to find out which drive contains the HFS+ partition
sudo fdisk -l
[sudo] password for 3300: 

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x69d2bf9e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   209922047   104857600    7  HPFS/NTFS/exFAT
/dev/sda3   *   209922048   269922047    30000000   83  Linux
/dev/sda4       269922048   625141759   177609856    5  Extended
/dev/sda5       269924352   405921791    67998720   83  Linux
/dev/sda6       405923840   409921535     1998848   82  Linux swap / Solaris
/dev/sda7       409923584   558483455    74279936    7  HPFS/NTFS/exFAT
/dev/sda8       558485504   620947455    31230976   af  HFS / HFS+
/dev/sda9       620949504   625141759     2096128   82  Linux swap / Solaris

As you can see, /dev/sda8 is the one. So we need to mount the drive. However, you will see, mounting will warn you about read-only mode

root@-3300:/media/mac# sudo mount -o force,rw /dev/sda8 /media/mac/
mount: warning: /media/mac/ seems to be mounted read-only.

So after mounting, you need to do a drive check and then remount it in read write mode. That’s it. 

root@-3300:/media/mac# fsck.hfsplus -f /dev/sda8
** /dev/sda8
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
** Checking multi-linked files.
** Checking Catalog hierarchy.
** Checking Extended Attributes file.
** Checking volume bitmap.
** Checking volume information.
** The volume Macintosh appears to be OK.
root@-3300:/media/mac# sudo umount /media/mac/
root@-3300:/media/mac# sudo mount -o force,rw /dev/sda8 /media/mac/

Leave a Reply

tuxtrixmod
Scroll to Top