Bug 137174 - Lack of fsck.hfsplus + hfsplus driver pickiness = read only mount
Summary: Lack of fsck.hfsplus + hfsplus driver pickiness = read only mount
Alias: None
Product: Fedora
Classification: Fedora
Component: hfsutils
Version: rawhide
Hardware: powerpc
OS: Linux
Target Milestone: ---
Assignee: David Woodhouse
QA Contact:
Depends On:
Blocks: fedora-ppc
TreeView+ depends on / blocked
Reported: 2004-10-26 14:44 UTC by W. Michael Petullo
Modified: 2011-10-28 10:51 UTC (History)
6 users (show)

Fixed In Version: 3.2.6-6
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2011-10-28 10:51:34 UTC

Attachments (Terms of Use)

Description W. Michael Petullo 2004-10-26 14:44:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7)
Gecko/20040626 Firefox/0.8

Description of problem:
Within its hfs code, the kernel contains the following code fragment:

if ((attrib & cpu_tobe16(HFS_SB_ATTRIB_UNMNT))
    || (attrib & cpu_to_be16(HFS_SB_ATTRIB_INCNSTNT))) {
        hfs_warn("HFS-fs warning: Filesystem was not cleanly unmounted,
                 "running fsck.hfs is recommended.  mounting
        sb->s_flags |= MS_RDONLY;

Because fsck.hfs is not provided, this causes a filesystem that was
not properly unmounted to mount read only forever.  The only fix seems
to be to boot into something like Mac OS X to repair the filesystem.

Either fsck.hfs should be implemented or this paranoia should be
removed from the kernel filesystem code.  Of course, option two may
not be safe.  Note that hfsutils' TODO does make mention of hfsck.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  Improperly remove an HFS drive from the system (do not properly
unmount it).

2.  Try to mount the drive.

Actual Results:  The kernel mounts it read only.

Additional info:

Comment 1 David Woodhouse 2005-02-20 13:31:05 UTC
hfsutils-3.2.6-6 includes hfsck.

Comment 2 W. Michael Petullo 2005-02-21 15:54:07 UTC
Has anyone tried hfsck?  It seems to like to eat filesystems more than
fix them.  On my system, running hfsck rendered an HFS+ filesystem

Also, there is no fsck.hfsplus link, so "fsck /dev/hdaX" says:

fsck 1.35 (28-Feb-2004)
fsck: fsck.hfsplus: not found
fsck: Error 2 while executing fsck.hfsplus for /dev/hda7

Comment 3 David Woodhouse 2005-02-21 15:58:08 UTC
hfsck isn't for hfs+

Comment 4 W. Michael Petullo 2005-02-21 16:11:04 UTC
That explains a lot.  Well, since hfs+ is what I am looking for, I changed the
bug summary.  I think most people use hfs+ these days, right?

Comment 5 David Woodhouse 2005-02-21 16:29:17 UTC
We should put hfsplusutils into Fedora Extras.


Comment 6 Arenas Belon, Carlo Marcelo 2005-03-07 07:02:44 UTC
the current hfsplusutils code needs lots of cleaning first to compile cleanly
with gcc3.4 (default on fc3) and later.

the spec is also not good for Fedora Extra, eventhough only needed minor tweaks.

Comment 7 K.R. Foley 2005-03-10 02:09:21 UTC
In addition, I tried every combination of hpfsck after building it with the
above package. Didn't seem to make any difference at all. However mounting the
fs with "./hpmount /dev/sda3" and then unmounting with "./hpumount" fixes the
problem. Just fyi.

Comment 8 W. Michael Petullo 2006-03-20 13:35:30 UTC
fsck.hfsplus from the hfsplusutils-1.0.4-6 package seems to corrupt HFS+

Comment 9 Red Hat Bugzilla 2007-02-05 19:24:08 UTC
REOPENED status has been deprecated. ASSIGNED with keyword of Reopened is preferred.

Comment 11 Karsten Hopp 2011-10-28 10:51:34 UTC
we have fsck.hfsplus in the latest Fedora for PPC, closing

Note You need to log in before you can comment on or make changes to this bug.