1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

NTFS disk log errors

Discussion in 'Asuswrt-Merlin' started by davido, Sep 14, 2017.

  1. davido

    davido New Around Here

    Joined:
    Sep 14, 2017
    Messages:
    3
    Hi to everybody,

    I have plugged a USB External 1TB disk to my router RT-AC68U and log file show me following error information about NTFS funciona:

    Sep 13 07:05:24 asusware: re-mount partition /dev/sda1...
    Sep 13 07:05:24 disk_monitor: re-mount partition
    Sep 13 07:05:24 usb: USB /dev/sda1(ntfs) failed to mount At the first try!
    Sep 13 07:05:25 usb: USB ntfs fs at /dev/sda1 mounted on /tmp/mnt/K-HOME.
    Sep 13 07:05:25 asusware: done.
    Sep 13 07:05:25 disk_monitor: done
    Sep 13 07:06:05 kernel: tntfs error (device sda1, pid 2619): ntfs_ucstonls(): Unicode name contains characters that cannot be converted to character set utf8. You might want to try to use the mount option nls=utf8.
    Sep 13 07:06:05 kernel: tntfs

    warning (device sda1, pid 2619): ntfs_dir_emit(): Skipping unrepresentable inode 0x4a6e.
    Sep 13 07:06:07 kernel: tntfs error (device sda1, pid 2621): ntfs_ucstonls(): Unicode name contains characters that cannot be converted to character set utf8. You might want to try to use the mount option nls=utf8.
    Sep 13 07:06:07 kernel: tntfs warning (device sda1, pid 2621): ntfs_dir_emit(): Skipping unrepresentable inode 0x4a6e.
    Sep 13 07:06:13 kernel: tntfs error (device sda1, pid 909): ntfs_attr_update_mapping_pairs(): Failed to determine the size for the mapping pairs (error 22).
    Sep 13 07:06:13 kernel: tntfs error (device sda1, pid 909): ntfs_write_inode(): Failed (error 5). Run chkdsk.
    Sep 13 07:10:02 kernel: klogd started: BusyBox v1.25.1 (2017-08-18 17:39:32 EDT)


    What can occours?

    Other errors about Download Master:

    S50downloadmaster.1 start
    Sep 13 07:05:43 transmission-daemon[2453]: Couldn't bind port 51413 on ::: Address already in use (Is another copy of Transmission already running?) (net.c:380)
    Sep 13 07:05:43 transmission-daemon[2453]: UDP Failed to set receive buffer: requested 4194304, got 245760 (tr-udp.c:84)
    Sep 13 07:05:43 transmission-daemon[2453]: UDP Failed to set send buffer: requested 1048576, got 245760 (tr-udp.c:95)

    Any clears?

    Thanks !!!
     
  2. Please support SNBForums! Just click on this link before you buy something from Amazon and we'll get a small commission on anything you buy. Thanks!
  3. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    4,153
    Location:
    Switzerland
    The device seems to have file errors. Do as it says.
    I'm quoting RMerlin here from another post:
     
  4. Jack Yaz

    Jack Yaz Very Senior Member

    Joined:
    Apr 20, 2017
    Messages:
    1,091
    Personally I would avoid NTFS and use EXT4
     
  5. martinr

    martinr Very Senior Member

    Joined:
    Nov 27, 2014
    Messages:
    1,225
    Location:
    United Kingdom
  6. davido

    davido New Around Here

    Joined:
    Sep 14, 2017
    Messages:
    3
    Thanks! Finally I move my ntfs partition to ext4 and all ok!
     
  7. skeal

    skeal Very Senior Member

    Joined:
    Apr 30, 2016
    Messages:
    1,391
    Run this script as pre-mount in /jffs/scripts/ and you will cut your problems down drastically I never have errors anymore. Name this file pre-mount.
    Code:
    #!/bin/sh
    # scan drives before mount
    # 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
    
    Make it executable
    Code:
    chmod a+rx /jffs/scripts/pre-mount
    Reboot your router.
    Sometimes this script can interfere with other scripts. This is because it may at times hold up the mounting of the drive. After the router reboots a few times there is hardly ever a delay.
    This is not my script I borrowed it. Not sure of the original author.
     
  8. skeal

    skeal Very Senior Member

    Joined:
    Apr 30, 2016
    Messages:
    1,391
    Have a look at this post in your thread it may be of help. It sure helped me.
    Code:
    https://www.snbforums.com/threads/ntfs-disk-log-errors.41218/#post-359955
     
Please support SNBForums! Just click on this link before you buy something from Amazon and we'll get a small commission on anything you buy. Thanks!