On Sat, Sep 18, 2021 at 12:35:13PM +0100, Myron wrote: > Never done this one with Linux before. I know that there is less than 16Gb > of data written to the Class 10 32Gb MicroSD card which is used as the > primary system storage on a single board system-on-a-chip computer. What > I'm after is getting a 16 Gb Class 10 A1 MicroSD card and clone the entire > system from the 32Gb card to the 16Gb card. > > What I'm after is when I start the SOC computer from the replacement 16Gv > Class 10 A1 MicroSD card, it will just start like there have been no > changes, well, apart from there being 16Gb storage and not slower 32Gb > storage. > > This is relatively easy to do on Windows. No clue how to do this with > Linux.
You might find it easier to do a reinstall and then copy any data over - it will be at least as quick as shrinking the first data disk and using dd to copy the data from one SD card to the other. If you have any particular software that you must have - get a listing of what's on the first card and copy that list over as the list of packages you install dpkg --get-selections > myfile dpkg --set-selections < myfile will probably do it followed by an apt update. Then it's just a question fo copying over personal files and config files from the old SD card. All the very best, as ever, Andy Cater