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:
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):
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.
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:
With unsuccessfull cold boot the amtm disk-check of sdb1 (my Entware-stick ) starts nicely...
... but is never finished.
With my other stick (sda1) amtm disk-check starts and finishes all right:
Disk Check Log shows:
Normally, after "warm" reboot amtm disk-check log shows that everything is OK:
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