Results 1 to 10 of 10

Thread: How to add HFS support for Mac CD & DVD

  1. #1

    Question How to add HFS support for Mac CD & DVD

    I am wanting to copy files from some old, Mac CDs, formatted HFS.

    I have installed hfutils.

    Attempting "sudo mount /dev/sr0 /mnt/cdrom" results in error:

    mount: wrong fs type, bad option, bad superblock on /dev/sr0,
    missing codepage or helper program, or other error

    I do not see any hfs formats listed in /proc/filesystems, which I suspect is where the problem lies.

    How do I add hfs / hfsplus support to /proc/filesystems?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: How to add HFS support for Mac CD & DVD

    Quote Originally Posted by SUSEtoad View Post
    I am wanting to copy files from some old, Mac CDs, formatted HFS.

    I have installed hfutils.

    Attempting "sudo mount /dev/sr0 /mnt/cdrom" results in error:

    mount: wrong fs type, bad option, bad superblock on /dev/sr0,
    missing codepage or helper program, or other error

    I do not see any hfs formats listed in /proc/filesystems, which I suspect is where the problem lies.

    How do I add hfs / hfsplus support to /proc/filesystems?
    Hi
    Install the hfsutils package, if you want a Tcl/Tk frontend install xhfsutil package.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: How to add HFS support for Mac CD & DVD

    Never used Mac CDs/DVDs, so I cannot really help with that.
    But:
    hfsutils is a set of command line tools to access HFS volumes/disks, similar to mtools.
    They don't add anything to the kernel (or /proc/filesystems).

    You can e.g. use "hls" to list the directory, "hcopy" to copy files, and so on.
    hmount would sound like it could mount things, though.

    And there is a GUI, "xfhs".

    See also: https://www.mars.org/home/rob/proj/hfs/

    Although, AFAICS, openSUSE's kernel package does come with hfs/hfsplus support as a module.
    Code:
    $ rpm -ql kernel-default | grep -i hfs
    /lib/modules/4.4.120-45-default/kernel/fs/hfs
    /lib/modules/4.4.120-45-default/kernel/fs/hfs/hfs.ko
    /lib/modules/4.4.120-45-default/kernel/fs/hfsplus
    /lib/modules/4.4.120-45-default/kernel/fs/hfsplus/hfsplus.ko
    /lib/modules/4.4.120-45-default/kernel/fs/squashfs
    /lib/modules/4.4.120-45-default/kernel/fs/squashfs/squashfs.ko
    /lib/modules/4.4.120-45-default/kernel/fs/squashfs3
    /lib/modules/4.4.120-45-default/kernel/fs/squashfs3/squashfs3.ko
    /lib/modules/4.4.120-45-default/kernel/net/sched/sch_hfsc.ko
    /lib/modules/4.4.126-48-default/kernel/fs/hfs
    /lib/modules/4.4.126-48-default/kernel/fs/hfs/hfs.ko
    /lib/modules/4.4.126-48-default/kernel/fs/hfsplus
    /lib/modules/4.4.126-48-default/kernel/fs/hfsplus/hfsplus.ko
    /lib/modules/4.4.126-48-default/kernel/fs/squashfs
    /lib/modules/4.4.126-48-default/kernel/fs/squashfs/squashfs.ko
    /lib/modules/4.4.126-48-default/kernel/fs/squashfs3
    /lib/modules/4.4.126-48-default/kernel/fs/squashfs3/squashfs3.ko
    /lib/modules/4.4.126-48-default/kernel/net/sched/sch_hfsc.ko

  4. #4

    Default Re: How to add HFS support for Mac CD & DVD

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Install the hfsutils package
    I guess I wasn't clear enough that I have already done that.

  5. #5

    Default Re: How to add HFS support for Mac CD & DVD

    Quote Originally Posted by wolfi323 View Post
    Although, AFAICS, openSUSE's kernel package does come with hfs/hfsplus support as a module.
    So, how do we get that working, then?

  6. #6

    Default Re: How to add HFS support for Mac CD & DVD

    Quote Originally Posted by SUSEtoad View Post
    So, how do we get that working, then?
    It should just work, you should just be able to mount hfs partitions.
    You could try to pass "-t hfs" (or "-t hfsplus") to mount to disable autodetection and force hfs(plus).

    But maybe CDs/DVDs are not supported, no idea.

    Have you tried to *use* the hfsutils already?
    (installing them alone is not enough)

  7. #7

    Default Re: How to add HFS support for Mac CD & DVD

    Quote Originally Posted by malcolmlewis View Post
    install xhfsutil package.
    xhfs sends plasmashell into 25% CPU burn on my i7 4790K, so that got deleted immediately. Looks like it hasn't had any work to update it since 1998 ...

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: How to add HFS support for Mac CD & DVD

    On Mon 14 May 2018 05:36:02 PM CDT, SUSEtoad wrote:

    wolfi323;2865419 Wrote:
    >
    > Although, AFAICS, openSUSE's kernel package does come with hfs/hfsplus
    > support as a module.
    >

    So, how do we get that working, then?


    Hi
    Well hfs is already in /etc/filesystems add hfsplus as well? It will
    use as required.

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 RC4 | GNOME Shell 3.26.2 | 4.12.14-18-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  9. #9

    Default Re: How to add HFS support for Mac CD & DVD

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Well hfs is already in /etc/filesystems add hfsplus as well? It will
    use as required.
    No effect.

    I have since dragged an old PowerMac out of the closet and am using it to copy the files. Silly to have to hook up an entire second computer just to read some CDs, but that's what's happening.

  10. #10

    Default Re: How to add HFS support for Mac CD & DVD

    Quote Originally Posted by SUSEtoad View Post
    I have since dragged an old PowerMac out of the closet and am using it to copy the files. Silly to have to hook up an entire second computer just to read some CDs, but that's what's happening.
    I ask again: have you actually tried to use the hfsutils *command line tools* (hls, hcopy, hmount) ?

    The man page suggests they should support CDs:
    https://linux.die.net/man/1/hfsutils

    Or did you try "mount -t hfs /dev/sr0 /mnt/cdrom" or similar as I suggested as well?

    PS: hmount apparently "mounts" a disk for use with the other hfsutils, it does not really mount it into the system.
    https://linux.die.net/man/1/hmount
    hmount does not actually mount an HFS partition over a UNIX directory in the traditional mount(8) sense. It is merely a "virtual" mount, as a point of convenience for future HFS operations. Each HFS command independently opens, operates on, and closes the named source path given to hmount.
    So as I understand it, e.g. one way to list the CD's directory would be:
    Code:
    hmount /dev/sr0
    hls
    Last edited by wolfi323; 14-May-2018 at 12:23.

Tags for this Thread

Posting Permissions

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