What's new

AC56U external drive and Cannot allocate memory

  • 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!

wangjunabc

Occasional Visitor
Hi there,
recently, I bought a WD MY BOOK 4 TB external hard drive and plug it into my AC56U's (runs Merlin 376.45) USB 3.0. It works well, but after the disk health scan, I got the message like this:

Failed to calloc 122093248 bytes: Cannot allocate memory
Checking cluster allocation ...
ERROR(12): Failed to setup allocation bitmap: Cannot allocate memory

Does anyone know why it happens and how to fix it?
Or do I need to return the hard drive?

Thank you.
 
The router does not have enough RAM to run a filesystem check on such a large hard drive.
 
The router does not have enough RAM to run a filesystem check on such a large hard drive.
I can't even schedule `fsck` on a 16GB USB3.0 pendrive on an AC56U. By the time the router detects the USB ports/drive it's already too late or it just ignores the relevant scripts.

Code:
# cat /jffs/scripts/pre-mount
#!/bin/sh

touch /tmp/003premountscriptd

if [ $1 = "/dev/sda5" ]
then
/usr/sbin/e2fsck $1
fi
 
Every time the syslog shows "mounting unchecked filesystem; run fsck please"; something to that extent
 

Latest threads

Sign Up For SNBForums Daily Digest

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