What's new

amtm amtm - the Asuswrt-Merlin Terminal Menu

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

Moronic post, nothing else to see here, carry on :oops:

There's still something with amtm and Skynet when it comes to creating/recognizing a swapfile. I installed 384.3 this morning (clean install), downloaded amtm and created a 2 Gb swap. Amtm confirmed creation of it (and took the necessairy time). Next, I installed Entware-ng from within amtm. When I returned to amtm it showed me the option to create a swap (instead of deleting it). I installed Skynet, but Skynet didn't recognize any swap, so I created it during install, overwriting the previously created swapfile. Upon returning to the amtm menu, it now showed the swapfile and the option to delete it. Somehow a swapfile created with amtm isn't recognized by amtm afterwards, nor by Skynet. Yet a swapfile created in Skynet does get recognized by amtm. I know it's supposed to be the same code, but still...
 
Last edited by a moderator:
There's still something with amtm and Skynet when it comes to creating/recognizing a swapfile. I installed 384.3 this morning (clean install), downloaded amtm and created a 2 Gb swap. Amtm confirmed creation of it (and took the necessairy time). Next, I installed Entware-ng from within amtm. When I returned to amtm it showed me the option to create a swap (instead of deleting it). I installed Skynet, but Skynet didn't recognize any swap, so I created it during install, overwriting the previously created swapfile. Upon returning to the amtm menu, it now showed the swapfile and the option to delete it. Somehow a swapfile created with amtm isn't recognized by amtm afterwards, nor by Skynet. Yet a swapfile created in Skynet does get recognized by amtm. I know it's supposed to be the same code, but still...
You know, this rings a definite bell with me after I first installed the brilliant AMTM, but, as I got it going - probably by repeating exactly what you did - I put it down to my ineptitude, which still remains a possible explanation.
 
@M@rco and @martinr as mentioned in an earlier post here, I regret having the option to install Entware in amtm.
Installing Entware through amtm calls the script entware-setup.sh in /user/sbin/ on the router.
This script unceremoniously removes and writes a new post-mount file, deleting the one that amtm created when creating a swap file.
Hence it no longer can find the swap file as the entry it looks for in post-mount is gone.
If you still want to do it through amtm, do:
1. Install Entware
2. Create swap file
3. Install AB, Skynet, Dnscrypt installer

Scripts in position 3 will keep the existing post-mount and append to it instead of removing and writing a new file as the Entware installer does.
 
as mentioned in an earlier post here

Oh #@^&!, now I recall you already explained why it didn't work. Sorry for bothering you, I simply forgot (I forget a lot) and should have taken the trouble to read a few posts back.

*Walks to a corner*
 
@M@rco and @martinr as mentioned in an earlier post here, I regret having the option to install Entware in amtm.
Installing Entware through amtm calls the script entware-setup.sh in /user/sbin/ on the router.
This script unceremoniously removes and writes a new post-mount file, deleting the one that amtm created when creating a swap file.
Hence it no longer can find the swap file as the entry it looks for in post-mount is gone.
If you still want to do it through amtm, do:
1. Install Entware
2. Create swap file
3. Install AB, Skynet, Dnscrypt installer

Scripts in position 3 will keep the existing post-mount and append to it instead of removing and writing a new file as the Entware installer does.

So u saying we should install entware manually first then install amtm and Skynet?
 
Oh #@^&!, now I recall you already explained why it didn't work. Sorry for bothering you, I simply forgot (I forget a lot) and should have taken the trouble to read a few posts back.

*Walks to a corner*
Told you it was my ineptitude!
 
So u saying we should install entware manually first then install amtm and Skynet?
Yes and no. Depends what else you install.
If you plan to install AB-Solution then let it do it by installing pixelserv which installs Entware.
 
amtm version 1.1 is now available
Use u to update.

What's new in v1.1
- Disk check script (at boot) added. This is a slightly modified version of this script by @latenitetech.
- Disk check log viewer
- POSIX compliance changes

Users that have the original disk check script installed from the GitHub repository must remove the file /jffs/scripts/pre-mount first before installing it through amtm. It works exactly the same, I have only modified it to be compatible with amtm.
amtm includes a disk check log viewer that is shown after the scripts first run (option dcl).
 
Hello,

I don't think the disc check script works, see below. I get the same output for my WD MyBook 4TB (EXT4).

Code:
Feb 14 01:00:31 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda1)
Feb 14 01:00:31 amtm: Disk check: Unknown filesystem type  on /dev/sda1 - skipping check.
Feb 14 01:00:31 kernel: EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
...
Feb 14 01:00:39 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sdb1)
Feb 14 01:00:39 amtm: Disk check: Unknown filesystem type  on /dev/sdb1 - skipping check.
 
Disk check works here. Both USB flash drives with EXT2, one USB 2.0 (ASUS - backup and restore) and one USB 3.0 (SNB - ABS / Skynet / Entware / Pixelserv-tls)

Code:
 What do you want to do?  dcl

 ---------------------------------------------------
 /jffs/amtm-disk-check.log has this content:

 START FILE, --- lines are not part of file
 ---------------------------------------------------
 
 Starting 'e2fsck -p install' at Mon Mar  5 12:16:16 PST 2018
 SNB was not cleanly unmounted, check forced.
 SNB: 579/940240 files (15.2% non-contiguous), 617757/3753650 blocks
 
 Starting 'e2fsck -p install' at Mon Mar  5 12:16:29 PST 2018
 ASUS was not cleanly unmounted, check forced.
 ASUS: 443/956592 files (5.0% non-contiguous), 74922/3824128 blocks
 ---------------------------------------------------
 END FILE

 Press [Enter] to return to menu
 
The script doesn't generate /jffs/amtm-disk-check.log for me.

Tried rebooting again, same result...
 
Similar issues here;

Code:
Feb 14 10:00:39 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda1)
Feb 14 10:00:39 amtm: Disk check: Unknown filesystem type  on /dev/sda1 - skipping check.
Feb 14 10:00:39 kernel: EXT4-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
Feb 14 10:00:39 kernel: EXT4-fs (sda1): recovery complete
Feb 14 10:00:39 hotplug: USB ext4 fs at /dev/sda1 mounted on /tmp/mnt/Elements
 
Hello,

I don't think the disc check script works, see below. I get the same output for my WD MyBook 4TB (EXT4).

Code:
Feb 14 01:00:31 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda1)
Feb 14 01:00:31 amtm: Disk check: Unknown filesystem type  on /dev/sda1 - skipping check.
Feb 14 01:00:31 kernel: EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
...
Feb 14 01:00:39 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sdb1)
Feb 14 01:00:39 amtm: Disk check: Unknown filesystem type  on /dev/sdb1 - skipping check.
It only checks filesystems identified as Linux (ext*), Win95 (FAT) and HPFS/NTFS.
Yours appears to be none of them.
 
The script doesn't generate /jffs/amtm-disk-check.log for me.

Tried rebooting again, same result...
If there's no filesystem to check, no logfile is created. The syslog tells you why.
 
Similar issues here;

Code:
Feb 14 10:00:39 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda1)
Feb 14 10:00:39 amtm: Disk check: Unknown filesystem type  on /dev/sda1 - skipping check.
Feb 14 10:00:39 kernel: EXT4-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
Feb 14 10:00:39 kernel: EXT4-fs (sda1): recovery complete
Feb 14 10:00:39 hotplug: USB ext4 fs at /dev/sda1 mounted on /tmp/mnt/Elements
Strange, ext4 should work.
 
It only checks filesystems identified as Linux (ext*), Win95 (FAT) and HPFS/NTFS.
Yours appears to be none of them.
I'm using EXT2 for flash drive and EXT4 for MyBook 4TB.
 
Similar issues here;

Code:
Feb 14 10:00:39 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda1)
Feb 14 10:00:39 amtm: Disk check: Unknown filesystem type  on /dev/sda1 - skipping check.
Feb 14 10:00:39 kernel: EXT4-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
Feb 14 10:00:39 kernel: EXT4-fs (sda1): recovery complete
Feb 14 10:00:39 hotplug: USB ext4 fs at /dev/sda1 mounted on /tmp/mnt/Elements
I have this, what router are you running yours on? Note the fs identifier;
Code:
Mar  5 19:33:52 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda2)
Mar  5 19:33:52 disk_monitor: Finish
Mar  5 19:33:52 amtm: Running disk check 'e2fsck -p' on /dev/sda2
Mar  5 19:33:52 disk_monitor: be idle
Mar  5 19:33:53 amtm: Disk check done on /dev/sda2
Mar  5 19:33:53 hotplug: USB ext4 fs at /dev/sda2 mounted on /tmp/mnt/entware
Mar  5 19:33:53 kernel: EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: user_xattr
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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