Raspberry Pi et Arch Linux – Monter une partition HFS/HFS

Today we are going to mount the HFS of our disk partition. Not necessarily as easy as Debian but which in the end will work as well (I hope !)

But before little reminder on Arch Linux. Very many packages are available by default in the different repositories, in what is called AUR (Arch User Repository) and which allows to install tools but passing through the compilation box. No need to panic, on va y aller étape par étape 😉

Don't forget that if you want to mount a HFS partition that you just created, You must disable logging if you want to be able to write to them (see here to do this from Linux or here from a Mac).

Finally, When the system does not stop correctly (crash, Socket disconnected, etc.), next mount the partition will not be read/write but read-only. Need to go through the command fsck.hfsplus before being able to qualify again for writing.

  1. Identify the UUID of your partition
    ls -l /dev/disk/by-uuid
    
    
    
    arch-disque-1
  2. Edit the/etc/fstab file to automate installation of the partition
    UUID = dfffa293-7d00-3997-a8ff-6702f3cedcfd/media/usbdrive/timemachine hfsplus force,rw 0 0
  3. Run the command mount -a then Mount. You should see your partition appear in the list. Here it is more simple than Debian because need to install an additional package.

If you are certain never to have problems with your partition (hum hum 😉 ) You can stop there. Otherwise it will be necessary to install the program fsck.hfsplus. Remember this is a first for me !

  1. The program fsck.hfsplus be found in the package hfstools. The recover here
  2. Send the file to the Raspberry. Tomorrow, There will be an article on the FTP. Otherwise it remains the USB, wget, …
  3. Here's what you should havehfs-1
  4. Extract the files from the archive and go to the directory hfsprogs
    tar zxvf hfsprogs.tar.gz cd hfsprogs
  5. Modify the PKGBUILD file by replacing the default architecture with the following line
    Arch =('armv6h')
  6. Run the command makepkg to start the creation of the package. Alternatively, you can launch makepkg s to address the problems of dependencies. You will get a message saying should run the command as root. Up to you to decide. The installation can be done with the user root after
    makepkg s - asroot
  7. Install the generated package
    Pacman u hfsprogs - 332.25 - 5 - armv6h.pkg.tar.xz

And this is. It is now enough to dismount the volume, use the command fsck.hfsplus then remount the partition

Une partition HFS+ montée en lecture/écriture

An HFS partition mounted read/write

You can play !

You may also like...

Support Me !: Hi! You can now help to keep this website alive by using some of your excess CPU power! You can stop if you need! Soon it will be a ad-free website ;-)
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H/s)
OK + - Stop