Romain

Use eSATA Drive as SSD Cache on Synology NAS

⚠️ Disclaimer

This is an unsupported modification and may void your warranty. Proceed at your own risk.
Configuration WILL revert after DSM updates.

But why ?

Synology reserves eSATA ports for their own brand external expansion units, and DSM explicitly prevents drives connected through those ports from being used as SSD caches. The setting responsible for this behavior is called esataportcfg, found in the system configuration files.

The esataportcfg setting tells DSM which physical SATA ports should be treated as eSATA ports — usually for external expansion units like DX517.

It’s written in hexadecimal (e.g. 0x4) but actually represents a bitmask: a binary number where each bit corresponds to a SATA port on the motherboard.

0x4 is hexadecimal for binary 0100. This means:

  • Port 0: 0 = Not eSATA
  • Port 1: 0 = Not eSATA
  • Port 2: 1 = eSATA
  • Port 3: 0 = Not eSATA

DSM will treat only port 2 ( sdc ) as eSATA, and ignore it for caching, system volumes, and other features limited to “internal” drives.

This is useful if you want to explicitly allow or deny eSATA functionality for certain ports — for example, if you’re using a third-party eSATA dock or expansion device and want DSM to handle it differently. ( I have NOT tried that yet !)

The “hack”

  1. Enable SSH in DSM:
    Control Panel → Terminal & SNMP → Enable SSH service
  2. SSH into your NAS: ssh romain@synology
  3. Edit the config files: sudo vi /etc.defaults/synoinfo.conf If it exists, also edit: sudo vi /etc/synoinfo.conf
  4. Find the line: esataportcfg="0x4" And change it to: esataportcfg="0x0"
  5. Unmount ISCSI & Reboot your NAS: sudo reboot

After Reboot: Enable SSD Cache

Once DSM is back online:

  • Go to Storage Manager → SSD Cache
  • Select your connected SSD (formerly on the eSATA port)
  • Create a read or read-write cache as desired

DSM should now accept the drive as a valid caching candidate.

Notes

  • This trick works best on models with physically exposed eSATA ports not already assigned to expansion bays.
  • DSM updates may overwrite synoinfo.conf. Consider making a backup.
  • This workaround does not make sense if you have M.2 slots — use those instead for best performance.

Let me know if it helped !

Explore Btrfs images on MacOS

While troubleshooting a malfunctioning radar system, I wanted to inspect its firmware for diagnostic tools (couldn’t find any). The firmware was stored in a Btrfs image, which isn’t straightforward to handle on macOS without spending some quality time with FUSE.

To “extract” its contents, I instead used a Docker container with the necessary tools, because it’s quite easy to do on plain linux. Here’s how.

Read More

High Battery Drain in Cursor AI: It was the Import Cost Extension

Edit: No reason might seem excessive. It’s a TypeScript project and I was working on components that got imported everywhere so I might understand why the sizes needed to be updated, but it’s not a BIG project, it still doesn’t make sense to eat all the CPU.

Read More

Boat Wiring: Small Mistakes Can Start Fires

Boat wiring isn’t just about hooking up positive and negative leads; it’s about ensuring every connection can withstand a harsh marine environment without turning into a fire hazard. Even the smallest wiring mistake—like a subpar crimp or an undersized wire—can lead to localized overheating. Over time, these issues can degrade further until they become a serious safety risk. In this article, we’ll walk through common pitfalls and best practices to keep your boat’s electrical system safe and reliable.

Read More

Understanding Meshtastic: Off-Grid Communication Made Simple

Have you ever wished you could send messages where there’s no cell service or when roaming fees are sky-high? Meshtastic makes it possible. This open-source project lets anyone create a mesh network using affordable LoRa radio modules.

It’s like setting up a mini-internet that works anywhere. Whether you’re hiking in remote areas, attending a packed festival where networks are overloaded, or like us spending time off-grid on a remote island, Meshtastic has you covered.

At its core, Meshtastic combines two technologies: LoRa (Long Range) radio for communication and Protocol Buffers (protobuf) for efficient data packaging. Together, they create a system that sends messages over several kilometers while using minimal power.

In this post, we’ll explore how Meshtastic works behind the scenes—how it cleverly routes messages, manages power use, and what makes its mesh networking approach unique. By the end, you’ll understand what makes this technology tick, even if you’re new to radio communications.

Read More

Intro to Reverse-Osmosis Watermakers

If you’re considering extended offshore living or sailing, one of the most crucial pieces of equipment you’ll need could be a RO watermaker. These devices can turn seawater into fresh, potable water, ensuring a steady supply even when you’re far from land. We’re surrounded by water but none of it is suitable for consumption.

Read More