mkfs.hfsplus does not create UUID

Bug #737002 reported by Lars Noodén
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hfsprogs (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: hfsprogs

Formatting a partition as HFSPLUS does not provide the partition with a UUID. A work around is to boot to OS X and use the disk utility to format the partition. The expected behavior is that mkfs assigns a UUID to the new partition.

Tags: patch
Revision history for this message
Lars Noodén (larsnooden) wrote :

This is on natty, alpha 3

$ lsb_release -r
Release: 11.04

Revision history for this message
Lars Noodén (larsnooden) wrote :

$ apt-cache policy hfsprogs
hfsprogs:
  Installed: 332.25-9
  Candidate: 332.25-9
  Version table:
 *** 332.25-9 0
        500 http://fi.archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote : Re: [Bug 737002] [NEW] mkfs.hfsplus does not create UUID

Dear Lars,

Thanks for reporting this bug.

On Mar 17 2011, Lars Noodén wrote:
> Formatting a partition as HFSPLUS does not provide the partition with a
> UUID. A work around is to boot to OS X and use the disk utility to
> format the partition. The expected behavior is that mkfs assigns a UUID
> to the new partition.

I see.

Since the version that I am packaging is somewhat old, I think that some
upgrade may be able to fix this *if* the generation of the UUID is
incorporated in Apple's diskdev_cmds package (which I rename to create
hfsprogs for Linux).

Failing that, I will have to study how Apple implements the UUID thing and
provide a wrapper for that.

I do hope that the 1st option actually provides us with a fix without
something flaky.

Thanks as usual for the feedback,

--
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Revision history for this message
Matthew Garrett (mjg59) wrote :

It's a bug in the Linux support patch. It byteswaps a 32-bit value as it it's a 64-bit one and so ends up with zeros. This fixes the Fedora version, I'd guess it should be applicable to the Debian one.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "hfsplus-tools-332.14-fix-uuid.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Lars Noodén (larsnooden) wrote :

Still present in Precise Pangolin

$ apt-cache policy hfsprogs
hfsprogs:
  Installed: 332.25-9build1
  Candidate: 332.25-9build1
  Version table:
 *** 332.25-9build1 0
        500 http://fi.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote : Re: [Bug 737002] Re: mkfs.hfsplus does not create UUID

Hi, Matthew.

On Sat, Nov 19, 2011 at 08:58, Matthew Garrett <email address hidden> wrote:
> It's a bug in the Linux support patch. It byteswaps a 32-bit value as it
> it's a 64-bit one and so ends up with zeros. This fixes the Fedora
> version, I'd guess it should be applicable to the Debian one.

Thank you very much for sending this patch. I will apply it in my
Debian tree and I hope that it will be integrated into Ubuntu. My
tree, BTW, is available at two places:

    https://github.com/rbrito/hfsprogs
    http://anonscm.debian.org/gitweb/?p=collab-maint/hfsprogs.git

If you happen to have patches in Fedora, I would love to get them, to
ease the pain of maintaining this Frankenstein thing.

Thanks,

--
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote :

Just for the record, Matthew's patch is already in Debian's unstable.

BTW, Matthew, what if we joined forces to maintain the package, forward porting the crufty things that I have written so far and trying to get a newer version from apple packaged?

You probably know way more than me about the Linux kernel, filesystems etc.

Regards,

Rogério Brito.

Revision history for this message
John Paul Adrian Glaubitz (glaubitz) wrote :

hfsprogs has been updated to 540.1.linux3-1 and is now available in the development version of Ubuntu.

Please see if that fixes your problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.