OpenWrt is installed and running on a PRODESK miniPC with an SSD drive.
I want to Copy the whole SSD content along with structure onto an M.2 PCIe drive.
Both drives are mounted in the PRODESK and I can see both drives using lsblk,
I found this command on the web: dd if=/dev/sda1 of=/dev/nvme0n1
That utilise dd to make a literal copy from SSD drive to the M,2
It seems to work fine but no progress feedback.
There is also this command: dd if=/dev/sda1 | pv | dd of=/dev/nvme0n1
Which is suppose to implement some kind of visual progress feedback.
It wont work cause pv is not installed on OpenWrt.
Generally you can search the package list with grep, then install the package (if it exists). Since pv is indeed a package available for OpenWrt, the following shows how I found it and how it's installed.
$ opkg update
$ opkg list | grep 'pv'
[ bunch of noise cut out ]
pv - 1.6.6-1 - Pipe Viewer is a terminal-based tool for monitoring the progress of data through a pipeline. It can be inserted into any normal pipeline between two processes to give a visual indication of how quickly data is passing through, how long it has taken, how near to completion it is, and an estimate of how long it will be until completion.
$ opkg install pv
...
Cool !
Worked perfectly.
My mistake, I presume, was that I didn't do opkg update
prior to opkg install pv
I kept getting an error.
But now the SSD is copying. Thanks