amtm amtm - the Asuswrt-Merlin Terminal Menu

  • ATTENTION! You'll notice a Prefix dropdown when you create a thread. If your post applies to one of the topics listed, please use that Prefix for your post. When browsing the thread list you can use the Prefix to filter the view.
  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

Xentrk

Part of the Furniture
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.
 

ColinTaylor

Part of the Furniture
I am confused about the /dev/sda3 entry in the disk check log as I don't have a /dev/sda3.
It looks like sda3 is a swap partition. What's the output of this command:
Code:
fdisk -lu /dev/sda
 

Xentrk

Part of the Furniture
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
 

ColinTaylor

Part of the Furniture
I see /dev/sda3 showing up using that command:
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.
 

Xentrk

Part of the Furniture
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.
 

unclebuk

Regular Contributor
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

Last edited:

Xentrk

Part of the Furniture
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.
 

thelonelycoder

Part of the Furniture
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.
 

heysoundude

Very Senior Member
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:

Marin

Very Senior Member
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
 

Marin

Very Senior Member
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
 

heysoundude

Very Senior Member
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

Sign Up For SNBForums Daily Digest

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