What's new

AC68U External Hard Drive Scan Errors

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

Never Ready Eddie

New Around Here
I have installed a new 4TB WD usb hard drive on the USB3 port of my AC68U but the health scan returns errors. I have chkdsk scanned in Windows with no errors. Log below

ntfsck 3014.5.21
Checking NTFS Superblock ...
Device name : /dev/sda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 4000750498304 bytes (4000751 MB)
Current device size: 4000750501888 bytes (4000751 MB)
Checking for bad sectors ...
Scanning $MFT ...
Actual VCN (0x0) of index buffer is different from expected VCN (0x9) in inode 0xe14.
Actual VCN (0x0) of index buffer is different from expected VCN (0x9) in inode 0xe56.
Checking directory structure ...
Corrupt directory found, inode=3604 (0xe14)
Corrupt directory found, inode=3670 (0xe56)
Repairing corrupt directories started.
0.00 percent completed
...
99.90 percent completed
100.00 percent completed
Repairing corrupt directories completed.
Repairing corrupt directories started.
0.00 percent completed
...
99.58 percent completed
99.74 percent completed
99.90 percent completed
100.00 percent completed
Repairing corrupt directories completed.
Checking for orphaned files ...
0.00 percent completed
...
99.74 percent completed
99.90 percent completed
100.00 percent completed
Scanning orphaned files completed.
Checking attributes ...
0.00 percent completed
...
99.58 percent completed
99.74 percent completed
99.90 percent completed
100.00 percent completed
Failed to calloc 122093216 bytes: Cannot allocate memory
Checking cluster allocation ...
ERROR(12): Failed to setup allocation bitmap: Cannot allocate memory
Syncing device ...
 
The disk too large for the router to check because the router does not have sufficient memory. You will have to use your Windows PC to check for errors.
 
Don't want to hijack the thread but I also have an hdd related issueI just attached a 2TB to my AC86U and did some restarting trying to get it to share on my network. I did get it to do it via guest login but unable to connect with registered user option. Health scan complains about being unable to initialize the disk cache (Volume FC has 3 partitions all HFS+ which are clean when checked on the PC):

** /dev/sda2
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
** Checking Catalog hierarchy.
** Checking Extended Attributes file.
** Checking volume bitmap.
** Checking volume information.
** The volume FC appears to be OK.


Can't initialize disk cache
** /dev/sda3


Can't initialize disk cache
** /dev/sda4

-------------------------------
I would like to be able to share the 3 partitions over the network. How do I initialize the disk cache or get this working?
 
OK first things first. You guys name your partitions please so that you are not searching for mount points. sda1 and sda2 can get confusing. Second if you are setting up a cloud that's cool, but if you are getting ready to implement this as a NAS it won't perform like you want it was never designed to be a NAS. Use this code in jffs/scripts to check your volumes at boot. * Warning depending on disk size this can take a bit*. Once this has run it checks the feature that tells linux to scan the drive as scanned. As you can see this is a premount script no need to rename this as it runs at boot. Name the code below "pre-mount" place it in /jffs/scripts/
Code:
#!/bin/sh
# pre-mount script (to be installed in /jffs/scripts)
# auto-check filesystems during boot
# first argument is the filesystem to be mounted (e.g. /dev/sda1)

CHKLOG=/var/fsck.log

# determine the type of filesystem being mounted
FSTYPE=`fdisk -l ${1:0:8} | grep $1 | cut -c55-65`

# determine the appropriate checker for the filesystem
case "$FSTYPE" in
        Linux )
                CHKCMD="e2fsck -p" ;;
        Win95* | FAT* )
                CHKCMD="fatfsck -a" ;;
        HPFS/NTFS )
                CHKCMD="ntfsck -a" ;;
        * )
                logger "$0:" "Unknown filesystem type $FSTYPE on $1 - no filesystem check run."
                exit 1 ;;
esac

logger "$0:" "Running '$CHKCMD $1' - see output at $CHKLOG"
echo -e "\nStarting '$CHKCMD $1' at `date`" >> $CHKLOG
$CHKCMD $1 >> $CHKLOG 2>&1
Then make it executable by issuing this at a command prompt.
Code:
chmod a+rx /jffs/scripts/pre-mount
I've been using this for 2 years. I started after finding that reboots can corupt drives. I highly recomend EXT4 as a file system. The router is linux this just makes sense. That or NTFS. No jumbo frames.
 
Hi, I have had a 4TB drive in my rt-ac3200 for a long time NTFS formatted (same memory size as the 68U), no problems with disk scans.. the trick is to have swapping enabled to a USB flash drive... in case the physical memory gets too short for this operation.
 

Similar threads

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