[LineageOS Questions & Answers] PMulvany:
@Quincofish "I currently have a 32 gig SD card in my Samsung tablet running Lineage OS and would like to replace it with a 64gig card. How to copy the data from the 32 gig card to the new 64 gig card."

This is probably too late for you but I had a similar problem this week transferring from a 128Gb to a 256Gb card. I sorted it quite simply (in the end!). Here's what I did - with detailed instructions!!

MSDOS ROBOCOPY can effectively 'CLONE' SD CARD

ROBOCOPY [source] [destination] /MIR

This command copies everything, including system and other hidden files even those with very long filenames. The following instructions enable you to transfer an exact copy of the contents of your old micro SD card to your new, larger, micro SD card.

Using MS Windows: in the search window, type: Command Prompt — and then press the Enter key to open the Command Prompt window then navigate to the root directory e.g. Drive C:

1) Make a directory in the root of the C: Drive

Enter the following commands (pressing the Enter key at the end of each line):

cd /

md sd-card

cd sd-card

The first command above changes the current directory to your root drive.

The second command creates a new folder (directory) in your root drive named “sd-card”. (You can use any legal file name here, but you must remember to substitute that name in place of “sd-card” in the code below. If you use spaces in your new name, then you must put double-quote marks around the new name.)

NB ENSURE THE NEW FOLDER "SD_CARD" HAS WRITE PRIVILEGES: in the folder's Properties in Windows Explorer, UNCHECK the READ-ONLY box. (If you cannot see the folder in Windows Explorer, go to the C:\ display and in the View Tab, click on the Options button on the far right and then 'Change folder and search options' and go to the 'View' tab and uncheck 'Hide protected operating system files'. For security, you should to revert to hiding these once the copy operation is completed).

The third command changes the current directory to “sd-card”.

2) Insert your micro SD card into a USB Adapter and plug it into your computer. Check what Drive letter has been assigned to it - either by looking at the pop-up message or checking the drive letter in Windows explorer or in other ways. The following instruction assumes the SD Card is in Drive F:

3) Then, in the MSDOS screen, enter:

robocopy F:\ c:\sd-card /MIR

This is the key line. Make sure you type exactly as shown. In this line, I have used the drive letter F, if your system assigned a different drive letter for your card, use that letter instead of the F. (Remember also, if you used a different name than “sd-card” for your folder, you must use the new name here - with quote marks if you have spaces in the name).The letters at the end this line are called switches and tell the system to mirror copy all your files, including system and other hidden files on your SD card.

It may take many minutes to copy the files from your current card into the sd-card folder (or whatever you have named it).

When the copying is complete the system will tell you how many files you have copied.

Eject your micro SD card adapter from the computer and then carefully remove the micro card from the adapter.

4) Now insert your new micro SD card into the adapter and insert the adapter into your computer's USB port. The system will assign it a drive letter (almost always the same letter as before — but it could be different, so check to be sure).

In the Command Prompt window, type in the following, hitting the Enter key at the end of each line:

cd /

cd sd-card

robocopy c:\sd-card F:\ /MIR

As you are typing the above, make the necessary substitutions if you are using a different name for the folder, or if your drive letter is different.

After the files have been copied onto your new card, eject the card and remove the adapter from your computer, and then carefully remove you new card from the adapter.

Carefully insert your new card into your phone, replace the cover, and start your phone.

You will find all your files (including apps, pictures, movies, text messages as well as system and other hidden files) that were stored on your old card are now on your new card.

5) Delete the sd-card folder and its contents from your computer (if you need the space) and Check 'Hide protected operating system files' in the C: drive's root folder, as advised above.

Hope it works for you and others!!