← Back to team overview

kernel-packages team mailing list archive

[Bug 889928] Re: hfsplus partition will not mount

 

While I generally hate to revive an old bugs, the HFS driver still
doesn't handle CoreStorage well so I wanted to mention that it is
possible to determine the appropriate value for 'sizelimit' when HFS is
wrapped in a Core Storage volume: http://superuser.com/a/1088110/148367

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/889928

Title:
  hfsplus partition will not mount

Status in linux package in Ubuntu:
  Invalid

Bug description:
  I have a hard disk image of a Mac OS X system.
  macbook1.img is the entire disk, including partition table.
  hfs1.img is part of the entire disk from offset 209735680 onwards.
  hfs2.img is part of the entire disk from offset 209735680 onwards and then truncated according to the length of the partition.
  I tried to mount it with:
  mount -t hfsplus -o ro,loop,offset=209735680 macbook1.img /n1/macbook/fs
  Give this in dmesg
  [320231.611112] hfs: unable to find HFS+ superblock
  [320293.525940] hfs: invalid secondary volume header
  [320293.525944] hfs: unable to find HFS+ superblock
  [320629.619113] hfs: invalid secondary volume header

  After I use dd to extract just the hfsplus partition into a single file, it still fails to mount.
  Only when I truncate the image file to the exact length of the partition according to the partition table, does the mount command actually mount the image with:
  mount -t hfsplus -o ro,loop hfs2.img /n1/macbook/fs

  I conclude that there must be a bug in the Linux kernel hfsplus code,
  that wrongly locates the secondary volume header unless the image size
  is correct.

  Output of file:
  hfs1.img:     Macintosh HFS Extended version 4 data last mounted by: 'HFSJ', created: Wed May 11 07:33:43 2011, last modified: Wed Oct  5 16:49:16 2011, last checked: Wed May 11 15:33:43 2011, block size: 4096, number of blocks: 14567302, free blocks: 4402186
  hfs2.img:     Macintosh HFS Extended version 4 data last mounted by: 'HFSJ', created: Wed May 11 08:33:43 2011, last modified: Wed Oct  5 16:49:16 2011, last checked: Wed May 11 15:33:43 2011, block size: 4096, number of blocks: 14567302, free blocks: 4402186
  macbook1.img: x86 boot sector; partition 1: ID=0xee, starthead 254, startsector 1, 117210232 sectors, extended partition table (last)\011, code offset 0x0

  output of parted:
  Disk /n1/macbook/macbook1.img: 60011642880B
  Sector size (logical/physical): 512B/512B
  Partition Table: gpt

  Number  Start       End           Size          File system  Name                  Flags
   1      20480B      209735679B    209715200B    fat32        EFI system partition  boot
   2      209735680B  59877404671B  59667668992B  hfs+         Customer

  ls -l
  -rw-r--r-- 1 root root 59801907200 2011-11-13 15:12 hfs1.img
  -rw-r--r-- 1 root root 59667668992 2011-11-13 16:46 hfs2.img
  -rw-r--r-- 1 root root 60011642880 2011-10-29 14:14 macbook1.img

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: udisks 1.0.4-1
  Uname: Linux 3.1.0+ x86_64
  ApportVersion: 1.23-0ubuntu4
  Architecture: amd64
  CustomUdevRuleFiles: plcbus.rules
  Date: Sun Nov 13 18:35:30 2011
  MachineType: Dell Inc. Inspiron 1521
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.1.0+ root=/dev/mapper/inspiron--hd-root ro
  SourcePackage: udisks
  Symptom: storage
  Title: Internal hard disk partition cannot be mounted manually
  UpgradeStatus: Upgraded to oneiric on 2011-10-14 (29 days ago)
  dmi.bios.date: 02/03/2008
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A06
  dmi.board.name: 0GU163
  dmi.board.vendor: Dell Inc.
  dmi.chassis.type: 8
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: dmi:bvnDellInc.:bvrA06:bd02/03/2008:svnDellInc.:pnInspiron1521:pvr:rvnDellInc.:rn0GU163:rvr:cvnDellInc.:ct8:cvr:
  dmi.product.name: Inspiron 1521
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/889928/+subscriptions