What's new

Moving from USB Flash to USB SSD

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

TexasDave

Occasional Visitor
Hi - after some time away, I have the "Merlin bug" and am starting to tinker around again...I am on a RT-AC86U running Merlin, AMTM, Diversion, BACKUPMON, ...

I want to replace my flash drive with an SSD drive. There are several posts on how to do this.

I am planning to use the SSD and enclosure mentioned here suggested by Tech9:

https://www.snbforums.com/threads/usb-recommendations-for-diversion-skynet.84828/post-838985

And will use the instructions in a couple of posts:

https://www.snbforums.com/threads/changing-from-usb-3-0-to-ssd-for-entware-diversion-etc.84190/

https://www.snbforums.com/threads/replacing-usb-contains-entware-safest-most-efficient-way.82082/

It all looks pretty painless...Questions:
  1. Are the above thread still valid? No reason for me to think otherwise. Any other thread people would suggest?
  2. Is the suggested hardware still solid? (Patriot Burst Elite SATA 3 120GB SSD 2.5" Solid State Drive, ORICO 2.5 inch External Hard Drive Enclosure USB 3.0 to SATA III for 7mm and 9.5mm SATA HDD SSD)
  3. I see worries about using USB 3.0 and interference. Do I have to worry about this when using an SSD in an enclosure? Is it ok to plug it into USB 3.0?
  4. The drive and enclosure are so cheap I am thinking about getting two to use the second as a backup to my network backup using BACKUPMON. Or would you just use a USB Flash for this? I have network backup to my Unraid server working fine. Again, I have both a USB 2.0 and USB 3.0 slot and if I put another flash or SSD in, is it ok to use the other USB port?
Any other advice you would provide before I proceed?

I am probably going overboard asking this but I am happy with my setup and do not want to mess it up.

Thanks!
 
Last edited:
The TL;DR is you probably have better options. On my AC86U (and now my AX86U Pro) I switched from a SSD+ Enclosure to a tiny, fast USB stick. Well, more like a USB Nub - so tiny its just a small bump so you can grab it.

SanDisk 128GB Ultra Fit USB 3.2 Gen 1 Flash Drive - Up to 400MB/s, Plug-and-Stay Design - SDCZ430-128G-GAM46, Black

Its fast, and you don't need rigid usb cables coming out the back. Oh, and it was $16 on Amazon. Cheaper than SSD + Enclosure

My $0.02, if everything is under the entware directory, then all you need to do is copy over entware onto new drive. If you are not changing devices, then some of those links have more steps than I think you need.

My Steps would be to
shut down
move current drive to usb 2.0 - dont connect new drive yet (this will retain the /dev/sda device assignment)
power up, ssh to router
(use the mount command to verify /dev/sda(x) and /dev/sdb(x) mount points are as expected) you don't want to execute destructive commands on the wrong device)
execute entware-services check (or /opt/etc/init.d/rc.unslung check)
to see / verify its running.
execute entware-services stop (or /opt/etc/init.d/rc.unslung stop)
swapoff -a
insert new drive
(at this point I don't use amtm 'fd' to partition and format the disk because it forces a reboot at the end, which messed with my process and known device <> mount, and will restart entware and turn swap back on)
fdisk /dev/sdb (follow other guides to get this right)
use the mke2fs command with the correct ext4 and journaling switches (Follow other guides to get the syntax correct)
use tune2fs to label the drive (Follow other guides to get the syntax correct)
mount the new file system using mount command. (or you can unplug and re-plug your NEW device in, automount should do its thing)
check /tmp/mnt - you should see the mount point for your new device as a directory that matches the label you set with tune2fs
cp -a /tmp/mnt/Old_Device_Name/entware /tmp/mnt/New_Device_Name/entware
(caveat - I don't run diversion or skynet, not sure if they have their own directories outside the /entware hierarchy - if they do or you have other directories at the same level of entware, then repeat the above step with the other directory names)
cleanly shut down the router (GUI -> Reboot -> wait for LEDs to go out then press the power button
Unplug old drive (old drive was in usb 2.0 port, new drive should still be in usb 3.0 port)
Power on router
ssh to router, execute amtm
execute 'mount' command - you should see /dev/sda1 mounted on /tmp/mnt/Your_Label
cd / and do a 'ls -l' (you should see opt -> tmp/opt)
execute entware-services check (or /opt/etc/init.d/rc.unslung check)
you should see the same output as before - (this verifies your good)
chose 'sw' - to recreate your swapfile. the sw script should detect your drive and prompt you to create.
you could reboot again but probably not necessary.

There are probably better guides, if you understand the nuances of linux device paths, some basic CLI command, the auto-check of an entware directory and execution on bootup makes moving your entware config and data to a different drive very easy. Just make sure you don't have multiple usb devices with /entware directories plugged in at boot.

Hope this is useful,
As always, YMMV.
 
Last edited:
Thanks for this. I was (and am) running something similar. The first one died several years ago and I replaced it.

I use this now: SanDisk 64GB Ultra Fit USB 3.1 Flash Drive, up to 130 MB/s read, Black

I have been browsing the forums and many folks seem to discourage using a USB flash and moving to SSD? I have had one die once already....
 
It all looks pretty painless...Questions:
  1. Are the above thread still valid? No reason for me to think otherwise. Any other thread people would suggest?
  2. Is the suggested hardware still solid? (Patriot Burst Elite SATA 3 120GB SSD 2.5" Solid State Drive, ORICO 2.5 inch External Hard Drive Enclosure USB 3.0 to SATA III for 7mm and 9.5mm SATA HDD SSD)
  3. I see worries about using USB 3.0 and interference. Do I have to worry about this when using an SSD in an enclosure? Is it ok to plug it into USB 3.0?
  4. The drive and enclosure are so cheap I am thinking about getting two to use the second as a backup to my network backup using BACKUPMON. Or would you just use a USB Flash for this? I have network backup to my Unraid server working fine. Again, I have both a USB 2.0 and USB 3.0 slot and if I put another flash or SSD in, is it ok to use the other USB port?
2. There are plenty of options for the enclosure. I went with a USB C enclosure because....USB C. For the drive, again plenty of options. I'd think just grab something cheap as even the slowest SSD will be plenty fast for what you are using it for.
3. I set the USB port to USB 2 mode in the router settings. I suspect USB 2 is plenty fast for this use case.
4. I suppose this depends on how often you run the backup. I would think a flash drive would be fine this as it won't see as many write cycles.
 

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!

Members online

Top