Notice
Recent Posts
Recent Comments
Link
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
관리 메뉴

Astro Coke

[NAS] read/write HFS+ (mac OS) USB Drive from a synology system 본문

Computer Setup

[NAS] read/write HFS+ (mac OS) USB Drive from a synology system

astrodoo 2021. 9. 25. 10:25

source: https://ssledz.github.io/blog/2016/01/10/write-to-an-hfs-plus-usb-drive-from-a-synology-nas/

 

To be albe to write/read to an HSF+ USB drive, we need first

  • disable journaling on the drive
  • connect your drive to nas
  • remount device with "ro" (read only) flag switched off

disableing journaling in the drive

To be able to do this you need to plug in your device to the mac (I couldn’t do this from my linux). Then to turn journaling off using Disk Utility do or using command as follows:

> sudo diskutil disableJournal /Volumes/TheVolumeName

 

Remount device with ro flag switched off

First log in as a root to the ds. Then have a look how the drive is mounted

ds> mount
/dev/sdq1 on /volumeUSB1/usbshare1-1 type vfat (utf8,umask=000,shortname=mixed,uid=1024,gid=100,quiet)
/dev/sdq2 on /volumeUSB1/usbshare1-2 type hfsplus (ro,force,uid=1024,gid=100,umask=000)

You can spot that the drive is mounted with the ro(read only) flag.

Now unmount the drive.

ds> umount -f /dev/sdq2

And remount so it is writable using the same info used when it was mounted automatically.

ds> mount -t hfsplus /dev/sdq2 /volumeUSB1/usbshare1-2

Finally, you can notice that device is no longer mounted as read only.

ds> mount
/dev/sdq1 on /volumeUSB1/usbshare1-1 type vfat (utf8,umask=000,shortname=mixed,uid=1024,gid=100,quiet)
/dev/sdq2 on /volumeUSB1/usbshare1-2 type hfsplus (0)