Jump to content
  • 0

How to migrate system to smaller SD card? (OPi PC+).


laurentppol
 Share

Question

Hi there,

I want to migrate system on OPi PC+ from 32GB uSD card to 16GB card.

System is small enough to fit on 16GB, but too large for 8GB eMMC (amazingly fast according dd).

How to do it?

My idea is:

- copy (raw, using dd) first 8192 sectors from 32GB to 16GB,

- then remove partition (32GB) and recreate it with 16GB size, format using same EXT filesystem,

- copy (on another computer, or "simple" Armbian installed on eMMC) partition contents using rsync.

Will it work?

Will there be no issue with different UUID of new partition?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

On a computer where the SD is not the root filesystem, shrink the ext4 filesystem, resize the partition to match the new size, (check if it runs to be sure), dump the SD card and hen write the image to the new SD card.

This should work without any modifications to the image itself.

Link to comment
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...