How I Fixed My Failed Synology NAS with Claude, and How He Helped Write This Article
A NAS that kept turning itself off
My Synology DS218 is back up, and the fix was a toothbrush, some isopropyl alcohol and a soldering iron. Getting there took one long evening, a serial cable and a lot of back and forth with Claude.
The DS218 is a small two-bay NAS built around a Realtek RTD1296 ARM chip. Mine started switching itself off. It would boot, beep, look perfectly normal for a minute or two, and then shut down cleanly, as if someone had pressed the power button. Sometimes I’d just find it dark, with every LED off.
The data on it mattered, so before replacing anything I wanted to know what was actually wrong.
The usual suspects, all innocent
I did what anyone would do first, and none of it helped:
- Replaced the CMOS coin cell and cleaned the unit.
- Swapped the power supply for a new, verified one.
- Checked that auto power-off, power schedules and scheduled tasks were all off.
- Unplugged LAN and USB, and checked the power and reset buttons. Mechanically fine, with good continuity.
- Reinstalled DSM fresh on one drive, then did a Mode 1 reset.
Two clues stood out. It stayed up forever with no drives in, but shut down with either drive, alone or together. And DSM’s Log Center just said Server started counting down to shutdown, with no reason. Something was telling DSM to power off, and DSM was politely obeying.
I kept the second RAID 1 drive out of the box the whole time, so whatever happened, one full copy of the data stayed safe.
Listening on the serial port
Getting the logs was my part, before Claude was involved. I googled where the serial connector sits on the DS218 board, then found the TX and RX pins myself. I wired them to an FTDI USB-to-serial converter and opened the port in PuTTY at 115200 8N1, logging every boot to a file. Claude read each log line by line, and that’s where the story started to make sense.



Hardware & pinout
On the DS218 motherboard the serial console is a 6-pin header with 2.0 mm pitch, running at 3.3 V logic levels.
⚠️ Use an FTDI USB-to-TTL adapter, not a regular serial converter. The board needs a 3.3 V TTL adapter like the red FTDI board above. A plain USB-to-serial (RS-232) converter, the kind with a 9-pin DB9 plug, will kill the board: RS-232 signals swing up to ±12 V, far more than the 3.3 V pins can survive. Many FTDI boards also have a 5 V / 3.3 V jumper, so set it to 3.3 V before you connect anything.
| Pin | Signal | Connection to USB-to-TTL adapter |
|---|---|---|
| Pin 1 | 3.3 V | Do not connect (leave disconnected) |
| Pin 2 | GND | Connect to GND |
| Pin 4 | TX (transmit) | Connect to RX (receive) |
| Pin 6 | RX (receive) | Connect to TX (transmit) |
Pins 3 and 5 are typically unused. Check the PCB silkscreen for a triangle or “1” marking to confirm orientation, or test GND continuity with a multimeter against a metal shield before powering on.
Terminal connection settings
Once wired to your computer, open a serial terminal program (such as PuTTY, screen, minicom or picocom) and configure it with the standard Synology console parameters:
- Baud rate: 115200
- Data bits: 8
- Parity: None (N)
- Stop bits: 1
- Flow control: None
What the boot log showed
The boot itself was healthy: bootloader, kernel, SATA, network, all fine. No panics, no thermal events. Then, about 70 seconds in, systemd ran a perfectly orderly power-off. This was software deciding to shut down, not hardware dying.
To find out why, I needed a shell. My old login was rejected, so I did a Mode 1 reset (hold RESET for about 4 seconds), set a new admin password through the web assistant, and enabled SSH. The answer was sitting in /var/log/scemd.log:
scemd: event_microp.c:97 power button pressed, ret = 0
scemd: event_shutdown.c:60 Shutdown the system.
scemd is Synology’s hardware monitor. microp is the small PIC16F1829 microcontroller that handles the buttons, LEDs and fan, and talks to the main chip over a serial line. The PIC was reporting a power-button press that never happened.
Two tests made that clear:
- Wake-on-LAN boot: no finger anywhere near the button, and it still shut down at the same point.
- Manual boot from the bootloader console: pressing Esc during boot gives a
Realtek>prompt, andrun bootcmdfrom there boots the normal way. Most of those boots stayed up, which pointed at something marginal rather than broken.
A clock that wasn’t ticking
While we were in the logs, something else looked off. Every boot set the system clock from the real-time clock (RTC) to exactly 2016-01-01 00:00:00. A quick check confirmed it wasn’t moving at all:
cat /sys/class/rtc/rtc0/time; sleep 5; cat /sys/class/rtc/rtc0/time
00:00:00
00:00:00
The bootloader’s date command showed the same frozen time, and hwclock timed out waiting for a tick.
Claude’s first take was that the RTC was a side issue. One boot had shut down while the RTC still held a valid date, so a wrong date couldn’t be the trigger. That’s fair. But I had a hunch, and I told Claude I wanted to be stubborn and fix the RTC first, and not to agree with me just to be agreeable.
It didn’t. It argued its case, and kept a list of what would prove either of us right. It also pointed out where my theory could actually work: if the PIC shared a timebase with the RTC, a dead clock could upset it. That turned out to be the right thread to pull.
Hunting for a schematic
Synology doesn’t publish schematics, and searching for “DS218” mostly turns up the DS218+, which is a completely different Intel board. So Claude went for the next best thing: the Banana Pi BPI-W2, an open board built on the same Realtek RTD1296 chip, with a public schematic. Its sandbox couldn’t reach Google Drive, so I downloaded the PDF and handed it over.
That schematic answered the wiring question in two pages:
- A 32.768 kHz crystal sits on the chip’s RTC pins, right next to the 27 MHz main crystal.
- The RTC is powered from the coin cell and from the power-management chip, each through its own diode. My DS218’s boot log showed the same power chip (a GMT G2227), so the design was almost certainly the same.
- The chip can also send its 32 kHz clock out on a spare pin. That gave my theory a real physical path, and Claude said so plainly.

I had already looked near the battery and the main chip and found no crystal. One photo later, the board’s own labels gave it away. The labels “X2” and “X3” were printed just outside the metal shield over the main chip, with no parts next to them. Both crystals were under the shield.
The photos also showed something else: next to the coin cell is an empty footprint for an 8-pin chip with its own crystal pads, also empty. That looks like an optional external RTC Synology never fitted on this board, which explains why I’d found nothing by the battery.
Under the shield
The shield was soldered to the board at a few tabs, so I desoldered those and lifted it off. Underneath was what I first took for dust or oxidation: dark, grey-black rings around the vias along the side of the main chip, in an arc that followed its decoupling capacitors.
Claude marked up my photo and pointed out the detail that mattered. The two vias right on the pads of the small 32.768 kHz crystal were black too. A 32 kHz crystal oscillator runs on tiny currents through very high-impedance pins, so a little conductive residue there is enough to stop it. Claude’s read was that it wasn’t dust, but residue that had wicked up through the vias and darkened, or corrosion, probably helped along by moisture trapped under the shield.

Under the SMD microscope it was obvious: stained rings around nearly every via next to the chip, and dull, slightly corroded joints.


Clean, reflow, boot
With the coin cell out and power disconnected, I scrubbed the whole area under the shield with 99% isopropyl alcohol and a soft brush until it came away clean. Claude warned me off an ultrasonic bath, which can destroy 32 kHz tuning-fork crystals. Then I reflowed both crystals and every joint that looked even slightly corroded.

The first boot after that was the moment of truth:
cat /sys/class/rtc/rtc0/time; sleep 5; cat /sys/class/rtc/rtc0/time
00:04:52
00:04:57
The clock was ticking. It kept counting through a full power-off, and after sudo hwclock --systohc --utc it held the correct time. One oddity: hwclock -r still times out, most likely because this RTC driver never fires the once-per-second interrupt it waits for. Reading /sys/class/rtc/rtc0/ directly works fine.
More importantly, the NAS stayed up. The last power button pressed in the scemd log is from 21:12 that evening, before I opened the board. Since then it has booted from power-restore and been power-cycled, with no phantom presses.
One honest caveat: I cleaned and reflowed at the same time, so I can’t say which of the two did it. I also can’t say whether the dead RTC caused the phantom presses, or the same residue on the PIC’s serial lines did. Both were under that shield, and one evening’s work fixed both.
What I’d tell anyone with a DS218 doing this
- Get a serial console early. The boot log turned “it just turns off” into an orderly, software-initiated shutdown in one evening.
- Read
scemd.log. If it sayspower button pressedand you didn’t press anything, look at the board, not at DSM. - Look under the shield. Moisture and old flux get trapped there, out of sight, right next to the most sensitive parts on the board.
- Don’t dismiss the small weird thing. A frozen clock looked like a side issue. It led straight to the fault.
- Keep one RAID drive out while you experiment. I never had to worry about the data.
- Fix the cause of the moisture. Whatever let condensation form will bring it back if nothing changes.
How Claude helped, including with this article
I did the hands-on work: finding and wiring up the serial port, the probing, the soldering, the cleaning. Claude was the second pair of eyes that never got tired of logs.

- Reading everything. It watched my PuTTY window on screen while I typed, and went through each boot log line by line. That’s how the
power button pressedevents and the frozen RTC surfaced. - Knowing the platform. It worked out the quirks of Realtek’s two-stage bootloader (
env printinstead ofprintenv), and gave me a short list of commands never to run there, likesaveenv. - Research. It found the Banana Pi schematic, pulled out the two pages that mattered, and marked up my board photos with the crystals, the black vias and the empty RTC footprint.
- Honesty. It pushed back when it thought I was wrong, and owned its own mistakes. It once called the manual boot a reliable workaround, and corrected itself when the next manual boot shut down too. It was too confident about where the crystal was until my photos showed otherwise.
- Continuity. When the session got long, it wrote a handover file so I could pick up on another PC.
And this article: I gave Claude the title and a folder with my microscope photos. It drafted the piece from our session, the photos included, and I edited it from there.