Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: Can't mount HFS+ external hard disk read-only

  1. #1

    Default Can't mount HFS+ external hard disk read-only

    Guys,

    I have an external hard disk (WD Firwire 3TB) with HFS+ journaled and a MacBook Pro with MacOS and OpenSuSE KDE 12.1

    I'm trying the traditional tricks to mount the external disk (fstab, mount -t hfsplus, etc) but it won't do it. Not even read-only.

    I get this message:

    mount: wrong fs type, bad option, bad superblock on /dev/loop0,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so



    And fdisk -l gives this message:

    WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.




    Disk /dev/sdc: 3000.6 GB, 3000558944256 bytes
    255 heads, 63 sectors/track, 364797 cylinders, total 5860466688 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000


    Device Boot Start End Blocks Id System
    /dev/sdc1 1 4294967288 2147483644 ee GPT
    Partition 1 does not start on physical sector boundary.


    and parted gives me this:

    Model: WD My Book 111D (scsi)
    Disk /dev/sdc: 3001GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt_sync_mbr


    Number Start End Size File system Name Flags
    1 20.5kB 210MB 210MB fat32 EFI System Partition boot
    2 210MB 3000GB 3000GB hfs+ Apple_HFS_Untitled_1




    Any idea how to mount it? Read-only would be fine!

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,519
    Blog Entries
    15

    Default Re: Can't mount HFS+ external hard disk read-only

    On Wed 16 Jan 2013 02:06:01 PM CST, jorisvda wrote:


    Guys,

    I have an external hard disk (WD Firwire 3TB) with HFS+ journaled and a
    MacBook Pro with MacOS and OpenSuSE KDE 12.1

    I'm trying the traditional tricks to mount the external disk (fstab,
    mount -t hfsplus, etc) but it won't do it. Not even read-only.

    I get this message:

    mount: wrong fs type, bad option, bad superblock on /dev/loop0,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so



    And fdisk -l gives this message:

    WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util
    fdisk doesn't support GPT. Use GNU Parted.




    Disk /dev/sdc: 3000.6 GB, 3000558944256 bytes
    255 heads, 63 sectors/track, 364797 cylinders, total 5860466688 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000


    Device Boot Start End Blocks Id System
    /dev/sdc1 1 4294967288 2147483644 ee GPT
    Partition 1 does not start on physical sector boundary.


    and parted gives me this:

    Model: WD My Book 111D (scsi)
    Disk /dev/sdc: 3001GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt_sync_mbr


    Number Start End Size File system Name
    Flags
    1 20.5kB 210MB 210MB fat32 EFI System Partition boot
    2 210MB 3000GB 3000GB hfs+ Apple_HFS_Untitled_1




    Any idea how to mount it? Read-only would be fine!


    Hi
    Use gdisk (zypper in gptfdisk) or parted and determine the offset for
    the partition your trying to mount.

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
    up 1 day 16:52, 3 users, load average: 0.07, 0.07, 0.07
    CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile


  3. #3

    Default Re: Can't mount HFS+ external hard disk read-only

    Oh and dmesg | tail gives:

    [13999.056860] hfs: invalid secondary volume header
    [13999.056865] hfs: unable to find HFS+ superblock

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,519
    Blog Entries
    15

    Default Re: Can't mount HFS+ external hard disk read-only

    On Wed 16 Jan 2013 02:46:01 PM CST, jorisvda wrote:


    Oh and dmesg | tail gives:

    [13999.056860] hfs: invalid secondary volume header
    [13999.056865] hfs: unable to find HFS+ superblock


    Hi
    Was it unmounted properly from the MAC machine?

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
    up 1 day 17:40, 3 users, load average: 0.05, 0.03, 0.05
    CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile


  5. #5

    Default Re: Can't mount HFS+ external hard disk read-only

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Use gdisk (zypper in gptfdisk) or parted and determine the offset for
    the partition your trying to mount.
    Even mounting with offset doesn't work. The only difference is that the "invalid secondary volume header" error message disappears from dmesg | tail. The other one stays.

    output:


    GPT fdisk (gdisk) version 0.8.6


    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present


    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sdc: 5860466688 sectors, 2.7 TiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): B1CEF4E4-66A9-4A81-A4C4-4C0911090F99
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 5860466654
    Partitions will be aligned on 8-sector boundaries
    Total free space is 262157 sectors (128.0 MiB)


    Number Start (sector) End (sector) Size Code Name
    1 40 409639 200.0 MiB EF00 EFI System Partition
    2 409640 5860204503 2.7 TiB AF00 Apple_HFS_Untitled_1





    > sudo mount -t hfsplus -o ro,loop,offset=409640 /dev/sdc /mnt/mijnboek/


    mount: wrong fs type, bad option, bad superblock on /dev/loop0,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so



    > dmesg | tail

    [16539.061046] hfs: unable to find HFS+ superblock

  6. #6

    Default Re: Can't mount HFS+ external hard disk read-only

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Was it unmounted properly from the MAC machine?e
    Usually I don't unmount, I just shutdown/reboot. But, I'll try that too.

  7. #7

    Default Re: Can't mount HFS+ external hard disk read-only

    Nope. Didn't help.

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,519
    Blog Entries
    15

    Default Re: Can't mount HFS+ external hard disk read-only

    On Wed 16 Jan 2013 03:26:01 PM CST, jorisvda wrote:


    malcolmlewis;2518862 Wrote:
    > Hi
    > Use gdisk (zypper in gptfdisk) or parted and determine the offset for
    > the partition your trying to mount.


    Even mounting with offset doesn't work. The only difference is that the
    "invalid secondary volume header" error message disappears from dmesg |
    tail. The other one stays.

    output:


    GPT fdisk (gdisk) version 0.8.6


    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present


    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sdc: 5860466688 sectors, 2.7 TiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): B1CEF4E4-66A9-4A81-A4C4-4C0911090F99
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 5860466654
    Partitions will be aligned on 8-sector boundaries
    Total free space is 262157 sectors (128.0 MiB)


    Number Start (sector) End (sector) Size Code Name
    1 40 409639 200.0 MiB EF00 EFI System
    Partition
    2 409640 5860204503 2.7 TiB AF00
    Apple_HFS_Untitled_1





    > sudo mount -t hfsplus -o ro,loop,offset=409640 /dev/sdc

    /mnt/mijnboek/


    mount: wrong fs type, bad option, bad superblock on /dev/loop0,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so



    > dmesg | tail


    [16539.061046] hfs: unable to find HFS+ superblock


    Hi
    The offset is 512 x 409640 so should be;
    Code:
    mount -t hfsplus -o ro,loop,offset=209735680 /dev/sdc /mnt/mijnboek/
    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
    up 1 day 18:54, 4 users, load average: 0.01, 0.06, 0.11
    CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile


  9. #9
    Join Date
    Sep 2012
    Posts
    4,976

    Default Re: Can't mount HFS+ external hard disk read-only

    Quote Originally Posted by jorisvda View Post
    Code:
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sdc: 5860466688 sectors, 2.7 TiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): B1CEF4E4-66A9-4A81-A4C4-4C0911090F99
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 5860466654
    Partitions will be aligned on 8-sector boundaries
    Total free space is 262157 sectors (128.0 MiB)
    
    
    Number  Start (sector)    End (sector)  Size       Code  Name
       1              40          409639   200.0 MiB   EF00  EFI System Partition
       2          409640      5860204503   2.7 TiB     AF00  Apple_HFS_Untitled_1
    
    
    
    
    
    > sudo mount -t hfsplus -o ro,loop,offset=409640 /dev/sdc /mnt/mijnboek/
    And why you jump through the hoops using loop mount? Does "mount -t hfsplus /dev/sdc2 /mnt/mijnboek" not work?

  10. #10

    Default Re: Can't mount HFS+ external hard disk read-only

    Quote Originally Posted by arvidjaar View Post
    And why you jump through the hoops using loop mount? Does "mount -t hfsplus /dev/sdc2 /mnt/mijnboek" not work?

    As I said in my first post, no.

Page 1 of 3 123 LastLast

Posting Permissions

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