Results 1 to 10 of 10

Thread: Disable HFS+ journaling from within Ubuntu

  1. #1
    Join Date
    Oct 2009
    Beans
    133
    Distro
    Ubuntu Development Release

    Question Disable HFS+ journaling from within Ubuntu

    Hello,

    I have an external hard drive with a single HFS+ partition on it. I'd like to shrink this partition to make room for other partitions. It is to my understanding that I need to disable the HFS journaling before proceeding, and that journaling may be disabled from within MAC OSX.

    I do not have access to an OSX machine so I was wondering if it was possible to disable Journaling from within Ubuntu?


    P.D: I would rather not wipe the whole hard drive and create the partitions from scratch.

    Thanks.

  2. #2
    Join Date
    Oct 2009
    Beans
    133
    Distro
    Ubuntu Development Release

    Re: Disable HFS+ journaling from within Ubuntu

    I ended wiping the whole hard drive and creating partitions from scratch.

    This would be a nice project. I mean, implementing disable journaling can't be that difficult. Perhaps it's just a boolean flag somewhere or something.

  3. #3
    Join Date
    Jun 2007
    Beans
    3

    Re: Disable HFS+ journaling from within Ubuntu

    It *can* be done. And there's code already written to do it. Please see http://dmunsie.wordpress.com/code/hacks/ and http://loquerasparalinux.blogspot.co...aling-sin.html for the particulars. In short, dmunsie wrote a brief C program for OSX that can change the necessary bits in the partition header and the second link points to a very simple patch to make it compile under linux along with instructions for use.

  4. #4
    Join Date
    Oct 2009
    Beans
    133
    Distro
    Ubuntu Development Release

    Re: Disable HFS+ journaling from within Ubuntu

    Thanks, Bladehawke!
    This will be definitely useful in the future.

  5. #5
    Join Date
    Feb 2006
    Beans
    57
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Arrow Re: Disable HFS+ journaling from within Ubuntu

    Using information from the following link, I removed all references CFSwapInt32HostToBig and its dependencies and substituted CFSwapInt32HostToBig with bswap_32.

    The program compiled (albeit with warning messages).

    To run the program, simply use
    Code:
    sudo ./a.out /dev/sdXX
    where /dev/sdXX is the partition you need to mount.

    Then you should be able to mount using the following
    Code:
    sudo mount -t hfsplus -o rw,user /dev/sdXX /media/hfspart
    For your convenience, you may find the code at the following url:

    http://pastebin.com/7rvxR38d

  6. #6
    Join Date
    Nov 2006
    Beans
    41

    Re: Disable HFS+ journaling from within Ubuntu

    Cannot get it compiled:S

    Code:
    gcc -o disable_journal disable_journal.c
    disable_journal.c: In function ‘main’:
    disable_journal.c:31: warning: format ‘%8.8x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’
    /tmp/ccz3QZ1P.o: In function `main':
    disable_journal.c:(.text+0xfe): undefined reference to `bswap_32'
    disable_journal.c:(.text+0x14f): undefined reference to `bswap_32'
    collect2: ld returned 1 exit status
    Be free, use linux!

  7. #7
    Join Date
    Oct 2006
    Beans
    8

    Re: Disable HFS+ journaling from within Ubuntu

    I tweaked the code to compile cleanly on ubuntu. The two line difference is highlighted in yellow on the pastebin link.

    http://pastebin.com/W8pfgHRe

    Cheers,
    bk

  8. #8
    Join Date
    Mar 2008
    Beans
    20

    Re: Disable HFS+ journaling from within Ubuntu

    Thanks a lot, helped me a lot when fixing my hackintosh

  9. #9
    Join Date
    Oct 2011
    Beans
    3

    Re: Disable HFS+ journaling from within Ubuntu

    can someone please help me with compiling this and getting it to work. im Noobuntu..

  10. #10
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Disable HFS+ journaling from within Ubuntu

    Please start a new thread for your problem, and give as much detail as possible.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •