What's new

Problem with USB Flash Drive containing Swap File and Entware, no Swap File found after cold boot

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

Diamond67

Senior Member
My Entware usb flash drive died a few weeks ago and I replaced it with one of the cheapest sticks found from the local computer store. The new stick is Kingston DataTraveler Exodia 32 GB USB 3.2. And yes, I know, it is not necessarily premium quality (and possibly will die pretty soon) and it is not among the fastest ones. Write speed approx. 16 MB/s, Read 90 MB/s when tested with Windows 10 computer usb 3.0 connector. But it is not the slowest drive I have used during the last 10 years or so.

I need my Entware stick named "ASUS_ENTWARE". That is 12 characters. But with the Format disk of amtm 11 characters are the maximum. So I have formatted the stick using third-party format tools (of Puppy Linux) which allow 12 characters. But sticks formatted to Ext4 (with third-party format tools) seem to be not compatible with my Asus router and Ext4 sticks fail to mount. So, I use Ext2 as I have used for several years now with several sticks.

Anyway, I use the stick with my home router. And I am away from my home a lot. So I don't necessarily keep my router ON or Online 24/7 while I am away. I just turn it OFF when I leave. This of course means that flash drives are not cleanly unmounted when the router is powered off. But normally having Disk check (script) enabled from amtm and running it after every cold boot repairs the drives.

At the moment have two usb flash drives connected to my router:

1. Verbatim 8GB, device /dev/sda1 (FAT) containing some data files
2. Kingston 32GB, device /dev/sdb1 (Ext2) with Entware/Swap File (2GB) and containing some data files as well.

With this Kingston I have a problem with cold boots. After every cold boot when I normally go to amtm to check the Disk check script log and for script updates I see this message:

Code:
No swap file found, reference removed in
/jffs/scripts/post-mount

And e.g. Diversion is not running (1 from amtm missing).

Now, if I warm reboot the router from amtm j3 scMerlin (r. Reboot router), I normally get the router up and running normally. But as you can see, after the second boot amtm shows these messages (btw, "capture" was taken more than two weeks ago, so some scripts may seem to be out of date, but atm they are not):

Getting from fwupdate.asuswrt-merlin.net
- Module diversion.mod downloaded
- Module entware.mod downloaded
- Module pixelserv-tls.mod downloaded

Code:
amtm 3.3 FW               by thelonelycoder
RT-AC68U (armv7l) FW-386.7 @ 192.168.1.1
    The Asuswrt-Merlin Terminal Menu

1  open     Diversion                 v4.3.2
2  open     Skynet                    v7.2.8

8  open     nsrum                    v30.4.0

j1 open     connmon                   v3.0.2
j3 open     scMerlin                  v2.4.0

j5 open     uiDivStats                v3.0.2

j7 open     YazDHCP                   v1.0.4

ep manage   Entware packages

em open     email settings
dc manage   Disk check script   dcl show log
fd run      Format disk         fdl show log
lc manage   LED control  LED off
sw manage   Swap file /mnt/ASUS_ENTWARE 2.0G

i  show     all available scripts or tools
u  check    for script updates

    amtm options
e  exit      t  theme   r  reset   a  about
_____________________________________________

Getting from fwupdate.asuswrt-merlin.net
- Module diversion.mod downloaded
- Module entware.mod downloaded
- Module pixelserv-tls.mod downloaded
_____________________________________________

Seems that the Swap File won't be ready soon enough (?) after a cold boot? Or what do you think?

Is there anything I can do?

I tested the Kingston with both usb connectors of my router and it did not change anything. Setting the router usb 3.0 connector "USB Mode" to 3.0 or 2.0 doesn't change anything either.

With successfull "warm" reboot you can see that the amtm disk-check runs OK and the Disk check is done. And the stick is mounted and Entware and Diversion services start normally.
Code:
Oct  8 15:44:29 amtm disk-check: Probing 'ext2' on device /dev/sdb1
Oct  8 15:44:29 amtm disk-check: Running disk check v3.1, with command 'e2fsck -p' on /dev/sdb1
Oct  8 15:44:32 amtm disk-check: Disk check done on /dev/sdb1
Oct  8 15:44:32 syslog: USB ext2 fs at /dev/sdb1 mounted on /tmp/mnt/ASUS_ENTWARE
Oct  8 15:44:32 usb: USB ext2 fs at /dev/sdb1 mounted on /tmp/mnt/ASUS_ENTWARE.
Oct  8 15:44:32 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/ASUS_ENTWARE)
Oct  8 15:44:36 Diamond67: Started /jffs/addons/scmerlin.d/tailtopd from .
Oct  8 15:44:36 scMerlin: Mounting WebUI tabs for scMerlin
Oct  8 15:44:36 Diversion: Starting Entware and Diversion services on /tmp/mnt/ASUS_ENTWARE
Oct  8 15:44:37 Skynet: [*] Scanning /tmp/mnt For Swap Files
Oct  8 15:44:39 Skynet: [*] Restoring Damaged Swap File Entry ( /tmp/mnt/ASUS_ENTWARE/myswap.swp )

The last lines above show that Swap File was damaged (seemingly because originally I turned off the "live" router without unmounting the drives first), but is being restored now.

Later, the Swap File is ready:
Code:
Oct  8 15:44:44 kernel: Adding 2097148k swap on /tmp/mnt/ASUS_ENTWARE/myswap.swp.  Priority:-1 extents:530 across:2153180k

With unsuccessfull cold boot the amtm disk-check of sdb1 (my Entware-stick ) starts nicely...
Code:
Oct  8 15:38:24 amtm disk-check: Probing 'ext2' on device /dev/sdb1
Oct  8 15:38:24 amtm disk-check: Running disk check v3.1, with command 'e2fsck -p' on /dev/sdb1

... but is never finished.

With my other stick (sda1) amtm disk-check starts and finishes all right:
Code:
Oct  8 15:40:12 amtm disk-check: Probing 'vfat' on device /dev/sda1
Oct  8 15:40:12 amtm disk-check: Running disk check v3.1, with command 'fatfsck -a' on /dev/sda1
Oct  8 15:40:14 Skynet: [*] Problem With USB Install Location - Please Fix Immediately!
Oct  8 15:40:14 Skynet: [*] To Change Install Location Run - ( sh /jffs/scripts/firewall install )
Oct  8 15:40:15 syslog: wlceventd_proc_event(527): eth2: Auth F8:AD:CB:1A:2B:D5, status: Successful (0), rssi:0
Oct  8 15:40:15 syslog: wlceventd_proc_event(556): eth2: Assoc F8:AD:CB:1A:2B:D5, status: Successful (0), rssi:0
Oct  8 15:40:16 amtm disk-check: Disk check done on /dev/sda1

Disk Check Log shows:
Code:
 Sat Oct  8 15:38:23 DST 2022 Waited 10s for NTP to sync date
Sat Oct  8 15:38:24 DST 2022 Probing 'ext2' on device /dev/sdb1
Running disk check v3.1, with command 'e2fsck -p' on /dev/sdb1
ASUS_ENTWARE was not cleanly unmounted, check forced.

Sat Oct  8 15:40:12 DST 2022 Probing 'vfat' on device /dev/sda1
Running disk check v3.1, with command 'fatfsck -a' on /dev/sda1
fatfsck 3014.9.11
Checking boot region...
Checking fsinfo region...
Checking FAT tables...
Checking root directory...
Checking directory structure and allocations...
Checking FAT table allocation...
Using 1751259/1945600 clusters.
Clearing dirty flag...
Repair finished with no repaired inconsistencies.
File system is clean.
Sat Oct  8 15:40:16 DST 2022 Disk check done on /dev/sda1
ASUS_ENTWARE: 767/1892352 files (1.6% non-contiguous), 2068107/7567104 blocks

Normally, after "warm" reboot amtm disk-check log shows that everything is OK:
Code:
 Sat Oct  8 15:44:13 DST 2022 Probing 'vfat' on device /dev/sda1
Running disk check v3.1, with command 'fatfsck -a' on /dev/sda1
fatfsck 3014.9.11
Checking boot region...
Volume not dirty. Refusing to repair in 'automatic-repair' mode.
Sat Oct  8 15:44:13 DST 2022 Disk check done on /dev/sda1

Sat Oct  8 15:44:29 DST 2022 Probing 'ext2' on device /dev/sdb1
Running disk check v3.1, with command 'e2fsck -p' on /dev/sdb1
ASUS_ENTWARE: clean, 767/1892352 files, 2068107/7567104 blocks
Sat Oct  8 15:44:32 DST 2022 Disk check done on /dev/sdb1
 
Using even a low-quality SSD in an external USB enclosure and formatted via amtm with Ext4 w/journaling seems to be the fix.

The few seconds needed to change the "ASUS_ENTWARE" dependency you created for your installation will be well worth it, I believe. In addition to using slightly better storage options for your non-standard usage too.

You may want to wait for better replies, but with almost 90 views already, I don't believe they may come.
 
With this Kingston I have a problem with cold boots. After every cold boot when I normally go to amtm to check the Disk check script log and for script updates I see this message:
Of interest is the routers syslog during such a cold boot. It will probably have the answer.
Also post the full content of /jffs/scripts/post-mount.
Why does it have to be named ASUS_ENTWARE?
 
Of interest is the routers syslog during such a cold boot. It will probably have the answer.
Also post the full content of /jffs/scripts/post-mount.
Why does it have to be named ASUS_ENTWARE?

I am away from my home/router (again) at the moment, so cannot post the full content of /jffs/scripts/post-mount right now.

But I can attach the syslog.txt part which I have uploaded to the cloud earlier. See below (if I manage to attach it with my phone...). Anyway, it would be a capture from the cold boot start until I reboot with j3 r.

edit: Seemingly cannot attach. Dunno why. Cannot use Code either because

Oops! We ran into some problems.
Oops! We ran into some problems. Please try again later. More error details may be in the browser console.

Too many lines of code? What's the limit btw? The syslog text file is only 45 kilobytes, but for some reason cannot be uploaded as attached file from my browser...

When it comes to the naming of the stick, it's a long story. And I have used the "ASUS_ENTWARE" and Ext2 from the beginning (year 2015). By the way, those dayz many forum members suggested formatting usb flash drives to Ext2 (journaling causing extra usb wear.. blah...blah..). And the reason for keeping the name is that I have several computers with mapped drives and folders using that ASUS_ENTWARE path. There are several folders on the stick containing many data and backup files of different "systems" and applications of mine which also need the fixed path to ASUS_ENTWARE. Of course I could (should) edit the paths, I know. But it would take a couple of hours at least. So, I have postponed the project year after year...
 
Last edited:
until I reboot with j3 r.
BTW both amtm and Diversion have the “reboot” command built in. They always had.
Just enter reboot
 
BTW both amtm and Diversion have the “reboot” command built in. They always had.
Just enter reboot

OK. I have used scMerlin so often that I always go there. But I'll try "direct" reboot command next time.

And after these unsuccessfull cold boots option "1 open Diversion" is always missing (is it completely dead then?) and only after the next successfull warm reboot I can see these lines

Code:
Getting from fwupdate.asuswrt-merlin.net
- Module diversion.mod downloaded
- Module entware.mod downloaded
- Module pixelserv-tls.mod downloaded

and Diversion is back.

Maybe the reboot command of amtm still works if Diversion is somehow disabled just after the partially messed up cold boot when the Swap File is totally missing?
 
OK. I have used scMerlin so often that I always go there. But I'll try "direct" reboot command next time.

And after these unsuccessfull cold boots option "1 open Diversion" is always missing (is it completely dead then?) and only after the next successfull warm reboot I can see these lines

Code:
Getting from fwupdate.asuswrt-merlin.net
- Module diversion.mod downloaded
- Module entware.mod downloaded
- Module pixelserv-tls.mod downloaded

and Diversion is back.

Maybe the reboot command of amtm still works if Diversion is somehow disabled just after the partially messed up cold boot when the Swap File is totally missing?
Your USB device does not get mounted after the cold boot. Hence Diversion cannot be found. amtm resides in /jffs and is always available and detects installed scripts everytime the SSH UI is started or reloads. It auto-removes AND auto-downloads necessary files for supported scripts.
The swp file resides on the attached device.
 
Also post the full content of /jffs/scripts/post-mount.

I am back home and here you can see the contents of the post-mount (after the successfull warm reboot when everything is OK):

Code:
#!/bin/sh
swapon /tmp/mnt/ASUS_ENTWARE/myswap.swp # Skynet
. /jffs/addons/diversion/mount-entware.div # Added by Diversion
/jffs/scripts/uiDivStats startup "$@" & # uiDivStats
/jffs/scripts/connmon startup "$@" & # connmon

I think you would like to see the contents of post-mount after the COLD boot when things are not OK? Or does it make any difference?

edit: @thelonelycoder After the cold boot the post-mount looks like this:

Code:
#!/bin/sh
. /jffs/addons/diversion/mount-entware.div # Added by Diversion
/jffs/scripts/uiDivStats startup "$@" & # uiDivStats
/jffs/scripts/connmon startup "$@" & # connmon

And amtm:

Code:
 amtm 3.4 FW               by thelonelycoder
 RT-AC68U (armv7l) FW-386.7 @ 192.168.1.1
    The Asuswrt-Merlin Terminal Menu

 2  open     Skynet                    v7.2.8

 8  open     nsrum                    v30.4.0

 j1 open     connmon                   v3.0.2
 j3 open     scMerlin                  v2.4.0

 j5 open     uiDivStats                v3.0.2

 j7 open     YazDHCP                   v1.0.4
 rt open     RTRMON                     v1.31

 em open     email settings
 dc manage   Disk check script   dcl show log
 fd run      Format disk         fdl show log
 lc manage   LED control  LED off

 i  show     all available scripts or tools
 u  check    for script updates

    amtm options
 e  exit      t  theme   r  reset   a  about
_____________________________________________

 No swap file found, reference removed in
 /jffs/scripts/post-mount
_____________________________________________

 Enter option
 
Last edited:
Tested if I can attach the syslog as .pdf file but the Insert-button is missing. I can easily attach .png pictures but no joy with .log or .txt or even .pdf. :mad:

Then I tried to cut the syslog into pieces of 100 lines (of 643), which seem to fit into Code box. But seems that the total lines of 643 are too much this way as well.

Next I will post 6 messages in a row, each containing 100 lines of syslog...
Did not happen because it seems to be impossible... after 200 lines a dead end... ooops...
 
Last edited:
Part 1

Code:
May  5 08:05:10 syslogd started: BusyBox v1.25.1
May  5 08:05:10 kernel: klogd started: BusyBox v1.25.1 (2022-07-24 17:37:05 EDT)
May  5 08:05:10 kernel: Linux version 2.6.36.4brcmarm (merlin@ubuntu-dev) (gcc version 4.5.3 (Buildroot 2012.02) ) #1 SMP PREEMPT Sun Jul 24 17:39:39 EDT 2022
May  5 08:05:10 kernel: CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7f
May  5 08:05:10 kernel: CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
May  5 08:05:10 kernel: Machine: Northstar Prototype
May  5 08:05:10 kernel: Ignoring unrecognised tag 0x00000000
May  5 08:05:10 kernel: bootconsole [earlycon0] enabled
May  5 08:05:10 kernel: Memory policy: ECC disabled, Data cache writealloc
May  5 08:05:10 kernel: MPCORE found at 19020000
May  5 08:05:10 kernel: PERCPU: Embedded 7 pages/cpu @c8215000 s5472 r8192 d15008 u65536
May  5 08:05:10 kernel: pcpu-alloc: s5472 r8192 d15008 u65536 alloc=16*4096
May  5 08:05:10 kernel: pcpu-alloc: [0] 0 [0] 1
May  5 08:05:10 kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 60416
May  5 08:05:10 kernel: Kernel command line: root=/dev/mtdblock2 console=ttyS0,115200 init=/sbin/preinit earlyprintk debug
May  5 08:05:10 kernel: PID hash table entries: 1024 (order: 0, 4096 bytes)
May  5 08:05:10 kernel: Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
May  5 08:05:10 kernel: Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
May  5 08:05:10 kernel: Memory: 128MB 128MB = 256MB total
May  5 08:05:10 kernel: Memory: 255504k/255504k available, 6640k reserved, 0K highmem
May  5 08:05:10 kernel: Virtual kernel memory layout:
May  5 08:05:10 kernel:     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
May  5 08:05:10 kernel:     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
May  5 08:05:10 kernel:     DMA     : 0xf7e00000 - 0xffe00000   ( 128 MB)
May  5 08:05:10 kernel:     vmalloc : 0xd0800000 - 0xf0000000   ( 504 MB)
May  5 08:05:10 kernel:     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
May  5 08:05:10 kernel:     modules : 0xbf000000 - 0xc0000000   (  16 MB)
May  5 08:05:10 kernel:       .init : 0xc0008000 - 0xc003d000   ( 212 kB)
May  5 08:05:10 kernel:       .text : 0xc003d000 - 0xc03a7000   (3496 kB)
May  5 08:05:10 kernel:       .data : 0xc03be000 - 0xc03e12a0   ( 141 kB)
May  5 08:05:10 kernel: SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
May  5 08:05:10 kernel: * Invalid signature of oopsbuf: 7F-FF-29-78-37-FF-FF-FF (len 4294959071)
May  5 08:05:10 kernel: Hierarchical RCU implementation.
May  5 08:05:10 kernel:     RCU-based detection of stalled CPUs is disabled.
May  5 08:05:10 kernel:     Verbose stalled-CPUs detection is disabled.
May  5 08:05:10 kernel: NR_IRQS:256
May  5 08:05:10 kernel: MPCORE GIC init
May  5 08:05:10 kernel: External imprecise Data abort at addr=0x0, fsr=0x1c06 ignored.
May  5 08:05:10 kernel: MPCORE Global Timer Clock 400000000Hz
May  5 08:05:10 kernel: Calibrating delay loop... 1599.07 BogoMIPS (lpj=7995392)
May  5 08:05:10 kernel: pid_max: default: 32768 minimum: 301
May  5 08:05:10 kernel: Mount-cache hash table entries: 512
May  5 08:05:10 kernel: CPU: Testing write buffer coherency: ok
May  5 08:05:10 kernel: MPCORE Private timer setup CPU0
May  5 08:05:10 kernel: Calibrating local timer... 399.847MHz.
May  5 08:05:10 kernel: L310: cache controller enabled 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x7a130000
May  5 08:05:10 kernel: CPU1: Booted secondary processor
May  5 08:05:10 kernel: MPCORE Private timer setup CPU1
May  5 08:05:10 kernel: Brought up 2 CPUs
May  5 08:05:10 kernel: SMP: Total of 2 processors activated (3194.88 BogoMIPS).
May  5 08:05:10 kernel: devtmpfs: initialized
May  5 08:05:10 kernel: atomic64 test passed
May  5 08:05:10 kernel: NET: Registered protocol family 16
May  5 08:05:10 kernel: Found a AMD NAND flash:
May  5 08:05:10 kernel: Total size:  128MB
May  5 08:05:10 kernel: Block size:  128KB
May  5 08:05:10 kernel: Page Size:   2048B
May  5 08:05:10 kernel: OOB Size:    64B
May  5 08:05:10 kernel: Sector size: 512B
May  5 08:05:10 kernel: Spare size:  16B
May  5 08:05:10 kernel: ECC level:   8 (8-bit)
May  5 08:05:10 kernel: Device ID: 0x 1 0xf1 0x 0 0x1d 0x 1 0xf1
May  5 08:05:10 kernel: CCA UART Clock Config: Sel=1 Ovr=1 Div=48
May  5 08:05:10 kernel: CCA UART Clock rate 100000000Hz
May  5 08:05:10 kernel: bio: create slab <bio-0> at 0
May  5 08:05:10 kernel: Switching to clocksource mpcore_gtimer
May  5 08:05:10 kernel: NET: Registered protocol family 2
May  5 08:05:10 kernel: IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
May  5 08:05:10 kernel: TCP established hash table entries: 8192 (order: 4, 65536 bytes)
May  5 08:05:10 kernel: TCP bind hash table entries: 8192 (order: 4, 98304 bytes)
May  5 08:05:10 kernel: TCP: Hash tables configured (established 8192 bind 8192)
May  5 08:05:10 kernel: TCP reno registered
May  5 08:05:10 kernel: UDP hash table entries: 128 (order: 0, 4096 bytes)
May  5 08:05:10 kernel: UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
May  5 08:05:10 kernel: NET: Registered protocol family 1
May  5 08:05:10 kernel: PCI: no core
May  5 08:05:10 kernel: PCI: no core
May  5 08:05:10 kernel: PCI: scanning bus 0
May  5 08:05:10 kernel: PCI: Fixing up bus 0
May  5 08:05:10 kernel: PCIE1 link=1
May  5 08:05:10 kernel: PCIE1 switching to GEN2
May  5 08:05:10 kernel: PCIE1 link=1
May  5 08:05:10 kernel: PCI: Fixing up bus 0
May  5 08:05:10 kernel: PCI: bus0: Fast back to back transfers disabled
May  5 08:05:10 kernel: PCI: Fixing up bus 1
May  5 08:05:10 kernel: PCI: bus1: Fast back to back transfers disabled
May  5 08:05:10 kernel: pci 0001:00:00.0: BAR 8: assigned [mem 0x08000000-0x080fffff]
May  5 08:05:10 kernel: pci 0001:01:00.0: BAR 0: assigned [mem 0x08000000-0x08007fff 64bit]
May  5 08:05:10 kernel: pci 0001:01:00.0: BAR 0: set to [mem 0x08000000-0x08007fff 64bit] (PCI address [0x8000000-0x8007fff]
May  5 08:05:10 kernel: pci 0001:00:00.0: PCI bridge to [bus 01-01]
May  5 08:05:10 kernel: pci 0001:00:00.0:   bridge window [io  disabled]
May  5 08:05:10 kernel: pci 0001:00:00.0:   bridge window [mem 0x08000000-0x080fffff]
May  5 08:05:10 kernel: pci 0001:00:00.0:   bridge window [mem pref disabled]
May  5 08:05:10 kernel: PCIE2 link=1
May  5 08:05:10 kernel: PCIE2 switching to GEN2
May  5 08:05:10 kernel: PCIE2 link=1
May  5 08:05:10 kernel: PCI: Fixing up bus 0
May  5 08:05:10 kernel: PCI: bus0: Fast back to back transfers disabled
May  5 08:05:10 kernel: PCI: Fixing up bus 2
May  5 08:05:10 kernel: PCI: bus2: Fast back to back transfers disabled
 
Part 2

Code:
May  5 08:05:10 kernel: pci 0002:00:00.0: BAR 8: assigned [mem 0x40000000-0x400fffff]
May  5 08:05:10 kernel: pci 0002:02:00.0: BAR 0: assigned [mem 0x40000000-0x40007fff 64bit]
May  5 08:05:10 kernel: pci 0002:02:00.0: BAR 0: set to [mem 0x40000000-0x40007fff 64bit] (PCI address [0x40000000-0x40007fff]
May  5 08:05:10 kernel: pci 0002:00:00.0: PCI bridge to [bus 02-02]
May  5 08:05:10 kernel: pci 0002:00:00.0:   bridge window [io  disabled]
May  5 08:05:10 kernel: pci 0002:00:00.0:   bridge window [mem 0x40000000-0x400fffff]
May  5 08:05:10 kernel: pci 0002:00:00.0:   bridge window [mem pref disabled]
May  5 08:05:10 kernel: PCIE3 link=0
May  5 08:05:10 kernel: VFS: Disk quotas dquot_6.5.2
May  5 08:05:10 kernel: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
May  5 08:05:10 kernel: squashfs: version 4.0 (2009/01/31) Phillip Lougher
May  5 08:05:10 kernel: fuse init (API version 7.15)
May  5 08:05:10 kernel: msgmni has been set to 499
May  5 08:05:10 kernel: io scheduler noop registered (default)
May  5 08:05:10 kernel: io scheduler deadline registered
May  5 08:05:10 kernel: io scheduler cfq registered
May  5 08:05:10 kernel: Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
May  5 08:05:10 kernel: serial8250.0: ttyS0 at MMIO 0x18000300 (irq = 117) is a 16550
May  5 08:05:10 kernel: console [ttyS0] enabled, bootconsole disabled
May  5 08:05:10 kernel: serial8250.0: ttyS1 at MMIO 0x18000400 (irq = 117) is a 16550
May  5 08:05:10 kernel: brd: module loaded
May  5 08:05:10 kernel: loop: module loaded
May  5 08:05:10 kernel: pflash: found no supported devices
May  5 08:05:10 kernel: bcmsflash: found no supported devices
May  5 08:05:10 kernel: Boot partition size = 524288(0x80000)
May  5 08:05:10 kernel: lookup_nflash_rootfs_offset: offset = 0x200000
May  5 08:05:10 kernel: nflash: squash filesystem with lzma found at block 28
May  5 08:05:10 kernel: Creating 4 MTD partitions on "nflash":
May  5 08:05:10 kernel: 0x000000000000-0x000000080000 : "boot"
May  5 08:05:10 kernel: 0x000000080000-0x000000200000 : "nvram"
May  5 08:05:10 kernel: 0x000000200000-0x000004000000 : "linux"
May  5 08:05:10 kernel: 0x00000039dd8c-0x000004000000 : "rootfs"
May  5 08:05:10 kernel: PPP generic driver version 2.4.2
May  5 08:05:10 kernel: PPP MPPE Compression module registered
May  5 08:05:10 kernel: NET: Registered protocol family 24
May  5 08:05:10 kernel: PPTP driver version 0.8.5
May  5 08:05:10 kernel: Mirror/redirect action on
May  5 08:05:10 kernel: u32 classifier
May  5 08:05:10 kernel:     Performance counters on
May  5 08:05:10 kernel:     Actions configured
May  5 08:05:10 kernel: Netfilter messages via NETLINK v0.30.
May  5 08:05:10 kernel: nf_conntrack version 0.5.0 (3992 buckets, 15968 max)
May  5 08:05:10 kernel: ctnetlink v0.93: registering with nfnetlink.
May  5 08:05:10 kernel: xt_time: kernel timezone is -0000
May  5 08:05:10 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
May  5 08:05:10 kernel: TCP cubic registered
May  5 08:05:10 kernel: NET: Registered protocol family 10
May  5 08:05:10 kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
May  5 08:05:10 kernel: NET: Registered protocol family 17
May  5 08:05:10 kernel: L2TP core driver, V2.0
May  5 08:05:10 kernel: PPPoL2TP kernel driver, V2.0
May  5 08:05:10 kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
May  5 08:05:10 kernel: All bugs added by David S. Miller <davem@redhat.com>
May  5 08:05:10 kernel: Registering the dns_resolver key type
May  5 08:05:10 kernel: Northstar brcmnand NAND Flash Controller driver, Version 0.1 (c) Broadcom Inc. 2012
May  5 08:05:10 kernel: NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD NAND 128MiB 3,3V 8-bit)
May  5 08:05:10 kernel: Spare area=64 eccbytes 56, ecc bytes located at:
May  5 08:05:10 kernel:  2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 57 58 59 60 61 62 63
May  5 08:05:10 kernel: Available 7 bytes at (off,len):
May  5 08:05:10 kernel: (1,1) (16,2) (32,2) (48,2) (0,0) (0,0) (0,0) (0,0)
May  5 08:05:10 kernel: Scanning device for bad blocks
May  5 08:05:10 kernel: Options: NO_AUTOINCR,NO_READRDY,BBT_SCAN2NDPAGE,
May  5 08:05:10 kernel: Creating 2 MTD partitions on "brcmnand":
May  5 08:05:10 kernel: 0x000004000000-0x000007ec0000 : "brcmnand"
May  5 08:05:10 kernel: 0x000007ec0000-0x000008000000 : "asus"
May  5 08:05:10 kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
May  5 08:05:10 kernel: devtmpfs: mounted
May  5 08:05:10 kernel: Freeing init memory: 212K
May  5 08:05:10 kernel: JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
May  5 08:05:10 kernel: emf: module license 'Proprietary' taints kernel.
May  5 08:05:10 kernel: Disabling lock debugging due to kernel taint
May  5 08:05:10 kernel: et_module_init: passivemode set to 0x0
May  5 08:05:10 kernel: et_module_init: txworkq set to 0x1
May  5 08:05:10 kernel: et_module_init: et_txq_thresh set to 0xce4
May  5 08:05:10 kernel: eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.126 (r561982)
May  5 08:05:10 kernel: dpsta_init: Jun 12 2019 23:31:45 msglevel 0x1
May  5 08:05:10 kernel: wl_module_init: passivemode set to 0x0
May  5 08:05:10 kernel: wl_module_init: igs set to 0x0
May  5 08:05:10 kernel: wl_module_init: txworkq set to 0x1
May  5 08:05:10 kernel: wl0: wlc_ap_attach dynamic_ed_thresh_enable = 0
May  5 08:05:10 kernel: eth1: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.126 (r561982)
May  5 08:05:10 kernel: wl1: wlc_ap_attach dynamic_ed_thresh_enable = 0
May  5 08:05:10 kernel: eth2: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.126 (r561982)
May  5 08:05:11 kernel: device vlan1 entered promiscuous mode
May  5 08:05:11 kernel: device eth0 entered promiscuous mode
May  5 08:05:11 kernel: device eth1 entered promiscuous mode
May  5 08:05:11 kernel: device eth2 entered promiscuous mode
May  5 08:05:11 kernel: br0: topology change detected, propagating
May  5 08:05:11 kernel: br0: port 3(eth2) entering forwarding state
May  5 08:05:11 kernel: br0: port 3(eth2) entering forwarding state
May  5 08:05:11 kernel: br0: topology change detected, propagating
May  5 08:05:11 kernel: br0: port 2(eth1) entering forwarding state
May  5 08:05:11 kernel: br0: port 2(eth1) entering forwarding state
May  5 08:05:11 kernel: br0: topology change detected, propagating
May  5 08:05:11 kernel: br0: port 1(vlan1) entering forwarding state
May  5 08:05:11 kernel: br0: port 1(vlan1) entering forwarding state
May  5 08:05:11 kernel: ADDRCONF(NETDEV_UP): dpsta: link is not ready
May  5 08:05:11 kernel: ADDRCONF(NETDEV_UP): vlan2: link is not ready
May  5 08:05:12 haveged: haveged starting up
May  5 08:05:13 syslog: main(961): wlceventd Start...
 
Seems that I cannot even "spam" the log using different posts? Does the code include some words that are forbidden? IP addresses of 192.168.xxx.xxx? Or whatta F***? Or just a certain limit? Can somebody explain?
 
Last edited:
Seems that I cannot even "spam" the log using different posts? Does the code include some words that are forbidden? IP addresses of 192.168.xxx.xxx? Or whatta F***? Or just a certain limit? Can somebody explain?
Yes, you are being blocked by the keyword filter. Just upload the entire log to pastebin.com and provide a link to it.
 
I've seen this happening with few USB drives. USB controller related issue. Switching the router port to USB2 mode may help.
 
I've seen this happening with few USB drives. USB controller related issue. Switching the router port to USB2 mode may help.

You mean the router is somehow allergic to the circuitry of this stick model? And changing to another brand/stick model might help?

I tested this Kingston with both usb connectors of my router and it did not change anything. Nor setting the router usb 3.0 connector "USB Mode" to 3.0 or 2.0. Result is the same.

I also deleted the Swap File and created it again. But that did not help either.
 
Yes, but first I would change the 12 characters name to what's supported by AMTM, format the drive there, recreate the swap file and test again.

Maybe I'll try to do that next weekend. I hope 11 characters and Ext4 will make the difference.
 
When using AMTM and custom scripts try to stick to developers' recommendations. Sometimes the recommended settings don't make much sense, but are necessary for compatibility or as an issue workaround. Use more reliable storage as SSD in external USB enclosure. USB sticks fail for various reasons - memory chip, controller, overheating. They are designed for temporary storage use only. You don't want your router as reliable as an USB stick.
 
Maybe I'll try to do that next weekend. I hope 11 characters and Ext4 will make the difference.
Since your Entware USB device does not mount due to unspecified errors as seen in the syslog, I did some testing with the disk-check script.
I added a sleep of 480 seconds to it to see how the firmware handles it. If I remember correctly, any script will be terminated or jumped over after 120 seconds by it.
And it does, after the set timeout the disk is mounted as if nothing had interfered.

Do the right thing and use amtm to format the disk.
 

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