amtm Want to create a swap file on sdb, not selectable with AMTM

Wanabo

Occasional Visitor
Want to create a swap file on sdb, but only sda is selectable.
I'm using AMTM option sw.
I have two drives connected to my RT-AC88U. A usb hdd on sda and an ssd on sdb. I would like to create a swap file on my ssd drive (sdb) but this drive is not selectable. Drive is functioning normal.
Tried NTFS and EXT4 to no avail.

In the past I created a swap file on sdb, so it worked before. Difference is that the previous drive on sdb was a hdd and now I connected an ssd.

Also i cannot select sdb to install entware.

Edit: firmware version router, 386.7_2
AMTM version 3.3 FW

1659463965632.png
 
Last edited:

ColinTaylor

Part of the Furniture
Format the drive first using AMTM. It is best to label each drive when you have more than one. Otherwise there's no guarantee which drive will be sda and which will be sdb. If the device name changes between reboots that could cause problems with your scripts.
 

Wanabo

Occasional Visitor
1659465486027.png


1659465553209.png


1659465619627.png


1659465674591.png


After that I loose my network connection, probably a reboot from the router because the date is wrong. Just waiting for the ntp server to set the correct date and time.

1659466003929.png


Still not selectable. Drive is available.
 

ColinTaylor

Part of the Furniture
Look for messages in the syslog similar to those below when the router boots up. Look for errors.

Code:
Aug  2 20:10:23 kernel: usb 2-2: new SuperSpeed USB device number 3 using xhci-hcd
Aug  2 20:10:24 kernel: usb-storage 2-2:1.0: USB Mass Storage device detected
Aug  2 20:10:24 kernel: scsi host1: usb-storage 2-2:1.0
Aug  2 20:10:25 kernel: scsi 1:0:0:0: Direct-Access     Kingston DataTraveler 3.0      PQ: 0 ANSI: 6
Aug  2 20:10:25 kernel: sd 1:0:0:0: [sdb] 60437492 512-byte logical blocks: (30.9 GB/28.8 GiB)
Aug  2 20:10:25 kernel: sd 1:0:0:0: [sdb] Write Protect is off
Aug  2 20:10:25 kernel: sd 1:0:0:0: [sdb] Mode Sense: 4f 00 00 00
Aug  2 20:10:25 kernel: sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Aug  2 20:10:25 kernel: sd 1:0:0:0: Attached scsi generic sg1 type 0
Aug  2 20:10:25 kernel:  sdb: sdb1 sdb2 sdb3 sdb4
Aug  2 20:10:25 kernel: sd 1:0:0:0: [sdb] Attached SCSI removable disk
Aug  2 20:10:33 hotplug: USB vfat fs at /dev/sdb2 mounted on /tmp/mnt/ESP
Aug  2 20:10:33 usb: USB vfat fs at /dev/sdb2 mounted on /tmp/mnt/ESP.
Aug  2 20:10:33 rc_service: hotplug 28322:notify_rc restart_nasapps
 

ColinTaylor

Part of the Furniture
View attachment 43268

After that I loose my network connection, probably a reboot from the router because the date is wrong. Just waiting for the ntp server to set the correct date and time.
There should be a message saying that the format is complete and asking you to confirm the reboot. If not your router may have crashed while attempting to format the drive. Again, check the syslog for errors just prior to the reboot.
 

Wanabo

Occasional Visitor
Aug 2 21:24:39 kernel: sdb: unknown partition table

Strange as sdb is accessible. I'll format this ssd on a windows pc and see if that works.

Edit: Put my old hdd back, now I can select sdb again. Must be a faulty ssd drive (new out of the box). Now formatting on a windows pc leaving quick format unchecked.
 
Last edited:

Wanabo

Occasional Visitor
I give up on my attempt to attach a ssd instead of an hdd drive to my router.
In windows the ssd is ok, in my router it gives nothing but troubles.

@ColinTaylor thanks for your help and guidance.
 

L&LD

Part of the Furniture
Then either the SSD isn't working correctly or the enclosure (chipset) isn't, or, isn't compatible.
 

Wanabo

Occasional Visitor
I could try another enclosure. The enclosure is ment for a 3.5 inch drive and I put a 2.5 inch drive in it. This enclosure was available because I bought another one due to a lightning strike I had a couple of years ago. It worked but the performance was reduced.
 

L&LD

Part of the Furniture
An UGreen PCIe to USB enclosure is recommended here, along with a PCIe 3.0 x4 SSD of 128GB or larger.

A 2.5" SATA SSD in an enclosure meant for HDD's means you may have to test a few before you find one that allows the SSD to work as it needs to (with the router).
 

Sign Up For SNBForums Daily Digest

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