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!

I am preparing to update an AC-86U to 384.13 release at a site I support later today. In the review process, I noticed the entry below when running the dcl option from amtm to view disk check log:

Code:
 Wed Aug  7 08:46:29 ICT 2019 Probing 'swap' on device /dev/sda3
 Wed Aug  7 08:46:29 ICT 2019 Unexpected filesystem type 'swap' for /dev/sda3 - skipping check

The swap file resides in the /tmp/mnt/skynet folder or /dev/sda6

df command shows the following:
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
<snip>
/dev/sda6               494820    263180    206092  56% /tmp/mnt/skynet
/dev/sda2               495844         5    470239   0% /tmp/mnt/AC86U
/dev/sda5               494820         5    469267   0% /tmp/mnt/absolution
/dev/sda7               494820    109175    360097  23% /tmp/mnt/entware
/dev/sda4               495844         5    470239   0% /tmp/mnt/backup
/dev/mtdblock8           49152      2816     46336   6% /www/Main_LogStatus_Content.asp

I am confused about the /dev/sda3 entry in the disk check log as I don't have a /dev/sda3. Any recommendations on how to fix are appreciated.
 
It looks like sda3 is a swap partition. What's the output of this command:
Code:
fdisk -lu /dev/sda

I see /dev/sda3 showing up using that command:

Code:
Disk /dev/sda: 15.6 GB, 15669919744 bytes
64 heads, 32 sectors/track, 14944 cylinders, total 30605312 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1            1985     3071999     1535007+  f Win95 Ext'd (LBA)
Partition 1 does not end on cylinder boundary
/dev/sda2         3072000     4095999      512000  83 Linux
Partition 2 does not end on cylinder boundary
/dev/sda3         4096000     4620287      262144  82 Linux swap
Partition 3 does not end on cylinder boundary
/dev/sda4         4620288     5644287      512000  83 Linux
Partition 4 does not end on cylinder boundary
/dev/sda5            2048     1023999      510976  83 Linux
/dev/sda6         1026048     2047999      510976  83 Linux
/dev/sda7         2050048     3071999      510976  83 Linux
 
I seem to remember that some of the popular scripts in this forum used to create swap partitions rather than swap files. I guess it's from that.
I think I'll remove the disk and reformat for FAT32. Then plug it in and reformat for linux using the format disk (fd) option in AMTM. I checked the disk on my development router and see I am using a separate swap partition and don't have any of the "Partition x does not end on cylinder boundary" errors.
 
Connect to the router by ssh and then simply type amtm If that doesn’t work, type

sh /jffs/scripts/amtm

Note the space after sh. No spaces anywhere else.

Does that work?
yes, of course that works.
But I thought the reference made to "menu" would describe what all theses available for installation options are and what they do. Thats all.
Thanks Martin.
 

Attachments

  • SCR 2019-08-16 at 7.21.47 PM.jpg
    SCR 2019-08-16 at 7.21.47 PM.jpg
    116.6 KB · Views: 545
Last edited:
yes, of course that works.
But I thought the reference made to "menu" would describe what all theses available for installation options are and what they do. Thats all.
Thanks Martin.

The links to the support threads for each of the options are listed on the Diversion.ch website, along with some other information.
 
How does one "open the menu in amtm" as I cannot seem to make this happen.
Thanks and regards,
By typing in the respective command for that script. When not installed it will display a short info screen with the link to the thread.
After installation it will open up the respective menu.
 
quick question that I can't seem to be able to search the answer for:
how does one determine which entware packages are installed? is it as simple as an ls from the directory that you land in when you ssh in?

EDIT: found /opt/bin/opkg...what now, nano?
 
Last edited:
quick question that I can't seem to be able to search the answer for:
how does one determine which entware packages are installed? is it as simple as an ls from the directory that you land in when you ssh in?

EDIT: found /opt/bin/opkg...what now, nano?

Code:
opkg list-installed

Or:

Code:
opkg-list



Sent from my iPhone using Tapatalk
 
quick question that I can't seem to be able to search the answer for:
how does one determine which entware packages are installed? is it as simple as an ls from the directory that you land in when you ssh in?

EDIT: found /opt/bin/opkg...what now, nano?

Or if you have “column” package installed and want to view all of the packages available, try @Martineau’s script:

Code:
[curl --retry 3 "https://raw.githubusercontent.com/MartineauUK/Entware-Report/master/EntwareApps.sh" -o "/jffs/scripts/EntwareApps.sh" && chmod 0755 /jffs/scripts/EntwareApps.sh/CODE]

Hope this helps. 


Sent from my iPhone using Tapatalk
 
Or if you have “column” package installed and want to view all of the packages available, try @Martineau’s script:

Code:
[curl --retry 3 "https://raw.githubusercontent.com/MartineauUK/Entware-Report/master/EntwareApps.sh" -o "/jffs/scripts/EntwareApps.sh" && chmod 0755 /jffs/scripts/EntwareApps.sh/CODE]

Hope this helps. 


Sent from my iPhone using Tapatalk

I do not, it seems, but it appears I should.


Sent from my iPhone using Tapatalk
 

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!

Staff online

Top