Write access for HFS+ using hfsprogs

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Write access for HFS+ using hfsprogs

Postby iTycoon » Wed Dec 04, 2013 10:26 pm

How do I get write access to HFS+ drives? They mount as Read Only. I know I need hfsprogs but there's no package in Arch Linux Arm and I don't know how to compile it. Can someone point me in the correct direction?

I originally had Time Machine backing up to an sparsebundle image on a ext3 drive accessed via samba. It was backing up and restoring individual files and folders with no issues.

The problem arose when I needed to restore the entire system from a time machine backup and was unable to get the sparsebundle image to be visible when booted to the restore partition on the macbook. I want to have Time Machine work over the network to the Pogoplug such that I can connect the drive via usb to restore the entire system if needed, not just individual files and folders.

I figured what I needed to do was have a dedicated drive, formatted HFS+ as required by Time Machine that will mount on boot to be visible to the Time Machine restore process on the restore partition, not realizing that HFS+ is not natively supported on Linux and no package available for ALARM.

If I'm barking up the wrong tree, please advise.

Much appreciated!
iTycoon
 
Posts: 20
Joined: Sat Aug 03, 2013 11:41 pm

Re: Write access for HFS+ using hfsprogs

Postby WarheadsSE » Wed Dec 04, 2013 11:56 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Write access for HFS+ using hfsprogs

Postby iTycoon » Thu Dec 05, 2013 3:44 am

Thanks for the response WarheadsSE.

I looked into disabling journaling. There are 2 issues with that. It seems that should be a fine solution provided I'm good with a fsck if something should go awry and the drive is improperly ejected however, Mavericks does not have an option for Mac OS Extended not journaled. I can't reformat the disks to disable journaling. Is there another way to disable journaling? I don't thinks so but maybe someone else knows better.

I've read up on AUR, ABS, etc. and I understand how to make a hfsprogs package now.

My question now is does hfsprogs enable support for journaled HFS+? If so, I'd rather go that route then disabling journaling on the partitions.

Thanks!

Edit: I figured out how to disable journaling. Also, when I run makepkg, I get:
$this->bbcode_second_pass_code('', '[root@Pogoplug hfsprogs]# makepkg --asroot -s
==> ERROR: hfsprogs is not available for the 'arm' architecture.
Note that many packages may need a line added to their PKGBUILD
such as arch=('arm').')
Should I add 'arm' to the PKGBUILD?
iTycoon
 
Posts: 20
Joined: Sat Aug 03, 2013 11:41 pm

Re: Write access for HFS+ using hfsprogs

Postby graysky » Thu Dec 05, 2013 12:06 pm

$this->bbcode_second_pass_quote('iTycoon', 'S')hould I add 'arm' to the PKGBUILD?


If you want to use it on your arm processor, then, yes :)
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Write access for HFS+ using hfsprogs

Postby WarheadsSE » Thu Dec 05, 2013 12:38 pm

Or just use makepkg -A ...
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Write access for HFS+ using hfsprogs

Postby iTycoon » Fri Dec 06, 2013 4:38 am

I have successfully installed hfsprogs and hfsutils using the AUR wiki (http://wiki.archlinux.org/index.php/Arc ... Repository) and I have successfully mounted with rw access with journaling enabled:

$this->bbcode_second_pass_code('', '/dev/sdc2 on /run/media/root/hdtv type hfsplus (rw,relatime,umask=22,uid=0,gid=0,nls=utf8)
/dev/sdc3 on /run/media/root/macbook type hfsplus (rw,relatime,umask=22,uid=0,gid=0,nls=utf8)')

I should now be able to backup 2 macs over the network and have file level restore over the network. Should I need to restore a system from Time Machine backup, I should be able to do so with the usb drive directly connected.

Thanks for you help. Now if I can just get Netatalk to work ;)

$this->bbcode_second_pass_code('', 'Dec 05 23:32:59.612130 netatalk[816] {netatalk_conf.c:196} (W:AFPDaemon): volume "HDTV Time Machine" does not support Extended Attributes or read-only volume
Dec 05 23:32:59.616575 netatalk[816] {netatalk_conf.c:196} (W:AFPDaemon): volume "Macbook Time Machine" does not support Extended Attributes or read-only volume
Dec 05 23:32:59.698095 cnid_metad[818] {netatalk_conf.c:196} (W:AFPDaemon): volume "HDTV Time Machine" does not support Extended Attributes or read-only volume
Dec 05 23:32:59.705684 cnid_metad[818] {netatalk_conf.c:196} (W:AFPDaemon): volume "Macbook Time Machine" does not support Extended Attributes or read-only volume
Dec 05 23:33:29.541959 afpd[817] {netatalk_conf.c:196} (W:AFPDaemon): volume "HDTV Time Machine" does not support Extended Attributes or read-only volume
Dec 05 23:33:29.543420 afpd[817] {netatalk_conf.c:196} (W:AFPDaemon): volume "Macbook Time Machine" does not support Extended Attributes or read-only volume
Dec 05 23:33:41.985431 afpd[858] {unix.c:439} (E:AFPDaemon): realpath() cannot resolve path "/run/media/root/hdtv"
Dec 05 23:33:41.985760 afpd[858] {unix.c:439} (E:AFPDaemon): realpath() cannot resolve path "/run/media/root/macbook"
Dec 05 23:33:41.989026 afpd[858] {unix.c:439} (E:AFPDaemon): realpath() cannot resolve path "/run/media/root/hdtv"
Dec 05 23:33:41.989283 afpd[858] {unix.c:439} (E:AFPDaemon): realpath() cannot resolve path "/run/media/root/macbook"
Dec 05 23:33:44.146506 afpd[858] {dsi_stream.c:504} (E:DSI): dsi_stream_read: len:0, unexpected EOF')

Edit: After looking around a bit, all I could find was this page: http://sourceforge.net/mailarchive/forum.php?thread_name=C41F758E-293B-4C4C-9178-2961314097C9%40netafp.com&forum_name=netatalk-admins.

If I'm reading this correctly, as of July 2013, this is a Netatalk bug that no one is working on. Did I read that email chain correctly?
iTycoon
 
Posts: 20
Joined: Sat Aug 03, 2013 11:41 pm

Re: Write access for HFS+ using hfsprogs

Postby hdan42 » Mon Dec 16, 2013 3:15 pm

After installing hfsprogs and hfsutils from AUR, what else did you do to get write support for journaled HFS+ drives?

I've added an entry to my fstab:
$this->bbcode_second_pass_code('', '/dev/sdc2 /media/mac hfsplus rw,relatime,umask=0022,uid=0,gid=0,nls=utf8 0 0')

but when I run
$this->bbcode_second_pass_code('', 'mount /dev/scd2')

all I get is:
$this->bbcode_second_pass_code('', '/dev/sdc2 on /media/mac type hfsplus (ro,relatime,umask=22,uid=0,gid=0,nls=utf8)')

Any thoughts?
hdan42
 
Posts: 4
Joined: Fri Apr 12, 2013 2:54 am

Re: Write access for HFS+ using hfsprogs

Postby iTycoon » Sat Feb 01, 2014 1:28 am

@hdan42, Sorry so long on the reply. It' s been a while since I've done anything with my plug.

Actually, I don't remember what I did. I apologize. It ran flaky at best, mounting sometimes, others not. I ended up getting a wired USB drive for TM after reading that SMB support might be coming back (TM used to support it). I'll wait and see.
iTycoon
 
Posts: 20
Joined: Sat Aug 03, 2013 11:41 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 5 guests