bluzfanmr1
Senior Member
I have a related question. Already have a 16GB USB Flash Drive partitioned to Ext4 and 2GB swap file with just about all the little Script programs installed via amtm on the USB 3.0 port. The problem I have with the flash drive is it sticks out about 2.5 inches from the back side of my AC68U. afraid that over time that I might accidently break it off, damage it.
So I bought a 16GB short (about 3/8 inch long) USB Flash Drive and have it installed into the adjacent USB 2.0 port of my AC68U. What I want to do, as simply as possible, is to copy/diskcopy/clone (whatever you wanna call it) what's on the existing Flash Drive to the new shorter Flash Drive and then swap out the New one into the USB 3.0 port. Then either keep the old one for back up, or wipe it and use it for something else, or give it to a buddy of mine for his AC68U and let him break it off
Can I do this within a ssh session on the router? When I type in "rsync" at ssh command line I get [-sh: rsync: not found]. I'm guessing rsync isn't a recognized command in the router?
EDIT: I managed using amtm to format the new shorter USB drive with the "fd" command. Is there an equally easy way to diskcopy the contents of the original USB drive with the New USB drive to be swapped?
EDIT: just installed rsync using [opkg install rsync] just not certain of the proper syntax to do the diskcopy.Too many switches/parameters...
What is the syntax for the command line? I see both flash drives on the asuswrt-merlin GUI but I don't know how to see it at the command prompt in ssh session.
If not, then what is the best way to do this within windows 10.
TIA
I did this recently and used for my purposes:
Code:
cp /tmp/mnt/sda1/* /tmp/mnt/Samsung8GB/