See the following youtube video :-
you will need following software:-
Linux Mint: https://www.linuxmint.com/download.php
Virtual Clone Drive: http://download.cnet.com/Virtual-Clon…
Pishrink Script: https://github.com/Drewsif/PiShrink
Virtual Machine: https://www.virtualbox.org/
Share the folder in virtual box, run the VM.
First time open the shared folder, it may say ‘you do not have permission’. Do following in this case.
Run sudo adduser <usrname> vboxsf
restart the VM. Now it should work.
open the shared folder say ‘pi’. Right click and open terminal. then execute the pishrink.sh script
Alternate methods (mounting sdcard as disk in vbox/linux mint)
Refer to following link:-