This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do I clone micro-sd cards?
#7
(2018-02-24, 11:10 AM)affinite Wrote: Sorry for slight thread drift but ...
does anyone know of a way to restore a disc image to a smaller (than the original source card) sized SD card ?
I have built my OP system on a 32GB card which was all had around at the time but I'd now like to setup an off-the-boat clone of the working system and I would really prefer to run on a 16GB card.
When I use the Windows Win32diskimager app to image my SD card I get a 30GB disk image even though less than half of the card is actually used. That of course will not restore to a 16GB card.
Thanks
Steve

If running linux, you can install gparted and shrink the image.

assuming using raspbian or ubuntu pc to shrink micro sdcard fitted in a connected card reader
First install gparted  
Code:
sudo apt-get update && sudo apt-get install gparted
to avid any fatal mistakes it is recommended to release all other usb connected storage media except for the micro sd to be shrinked before proceeding.
When your microsd card containing youur old install is plugged into the system, start gparted
Code:
sudo gparted

When gparted have started, use the drop down menu in gparted in the upper right side of the gparted window, and choose your microsd card containing the partition to be shrinked.  chose the partition to be shrinked by selecting the partition with your mouse. when selected go to the menu->partition and choose "rezize/move"  choose the new size and be sure the size will fit on the new microsd card you want to use. when done, press change size.  after the process is finished, you must press the green V  apply all changes.  After this operation, unmount your sd card and put it back. You can now use DD to copy the content to your new card
Reply


Messages In This Thread
how do I clone micro-sd cards? - by adriaan - 2018-02-23, 06:42 PM
RE: how do I clone micro-sd cards? - by monos - 2018-02-23, 07:14 PM
RE: how do I clone micro-sd cards? - by adriaan - 2018-02-26, 12:39 PM
RE: how do I clone micro-sd cards? - by monos - 2018-02-26, 01:23 PM
RE: how do I clone micro-sd cards? - by jim321 - 2018-02-23, 07:18 PM
RE: how do I clone micro-sd cards? - by adriaan - 2018-02-23, 09:45 PM
RE: how do I clone micro-sd cards? - by affinite - 2018-02-24, 11:10 AM
RE: how do I clone micro-sd cards? - by monos - 2018-02-24, 04:24 PM
RE: how do I clone micro-sd cards? - by petter5 - 2018-02-25, 03:07 PM
RE: how do I clone micro-sd cards? - by affinite - 2018-02-25, 10:54 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)