What's new

Write-error on swap-device crashed AC68U

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

RocketJSquirrel

Senior Member
I got hundreds of these messages prior to a crash. I have never seen this before. Running Merlin 386.9 on my trusty old AC68U. And I do mean "old".
Jan 30 03:24:22 kernel: Write-error on swap-device (8:1:6401688)
Jan 30 03:24:22 kernel: Write-error on swap-device (8:1:6370784)
Jan 30 03:24:22 kernel: Write-error on swap-device (8:1:6456216)
Jan 30 03:24:22 kernel: Write-error on swap-device (8:1:6373320)
May 4 22:05:02 kernel: klogd started: BusyBox v1.25.1 (2023-01-06 15:03:02 EST)

I have been swapping to a USB stick in the router for years, and this is new. What does it mean?
 
It most likely means you need a new USB stick.
 
It most likely means you need a new USB stick.
That seems probable.

It's been so long since I've had to look at this (68U has been humming along trouble free for years) that I can't remember where to look for swapping settings/activity/capacity. Could someone remind me? I kind of thought the router didn't really need to swap, that this was a kind of emergency outlet when memory filled but wouldn't actually get used. I'm not running any extra packages, just the bare bones Merlin firmware.
 
Last edited:
That seems probable.

It's been so long since I've had to look at this (68U has been humming along trouble free for years) that I can't remember where to look for swapping settings/activity/capacity. Could someone remind me? I kind of thought the router didn't really need to swap, that this was a kind of emergency outlet when memory filled but wouldn't actually get used. I'm not running any extra packages, just the bare bones Merlin firmware.
Look back in the log for the first error messages not the last. It's possible that your USB drive became unmounted or there were other disk errors. In either case unmount the filesystem and repair it. If you enable the dc option in amtm it will attempt to do this automatically when your router boots up.
 
If you heavily use swapping, then a USB stick is a bad device to use for swapping. You'd be better off with a small SSD or HDD, as most USB sticks have very low write endurance.
 
Thanks for the replies. I pulled the USB stick and will see how the router works without it. I don't think I really need to swap, I probably just plugged in the stick because it was sitting around unused. It's a 1 GB stick, try to find one that small nowadays!
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top