Move dietpi install to larger SD card. Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
lightsout
Posts: 8
Joined: Sat Feb 20, 2021 12:02 am

Move dietpi install to larger SD card.

Post by lightsout »

I have dietpi setup on a 32gb card and want to upgrade to 256.\

I see people saying to use windisk imager to make an image of the disk. But windows sees the drive as two partitions, so when I go to create the image I can only select e or f.

I am using an Odroid Xu4. Curious if this could be accomplished by putting the new sd card in an sd card reader and putting it into the usb slot on the odroid it through dietpi. I don't want to move the userdata but replace the original sd card entirely.

Or should I just back up dietpi, burn a clean image on the new card and then restore the backup to the new card?
Edit: I guess it is good to try things first, didn't have all my stuff so didn't fully go through with it. Even though I could only select one partition looks like it flashed properly. Didn't get a chance to boot yet but looks promising.
Last edited by lightsout on Sun Feb 21, 2021 4:42 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Move dietpi install to larger SD card.

Post by Joulinar »

Hi,

Usually it should work as described on this tutorial.

viewtopic.php?f=15&t=8190
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
lightsout
Posts: 8
Joined: Sat Feb 20, 2021 12:02 am

Re: Move dietpi install to larger SD card.

Post by lightsout »

Joulinar wrote: Sun Feb 21, 2021 8:41 am Hi,

Usually it should work as described on this tutorial.

viewtopic.php?f=15&t=8190
I saw that. But like I said above win32 disk imager (and windows itself sees the two partitions on the drive and you can only make an image of one. Unless it just appears that way but it will do it correctly? In the program I can only select one partition at a time to make the image of.

Also not exactly sure what this means from the guide
.
3. Copy over the system files:
What system files exactly and to where? Wouldn't they get formatted on the ssd anyways?
lightsout
Posts: 8
Joined: Sat Feb 20, 2021 12:02 am

Re: Move dietpi install to larger SD card.

Post by lightsout »

edited first post
Barney
Posts: 14
Joined: Sat Aug 01, 2020 10:39 pm

Re: Move dietpi install to larger SD card.

Post by Barney »

lightsout wrote: Sun Feb 21, 2021 2:50 pm Wouldn't they get formatted on the ssd anyways?
For me it's not clear, what you really want:
  • substitute your 32GB sdcard by a 256 GB sdcard or
  • substitute your 32GB sdcard by a 256 GB SSD
These are different tasks and need different steps to achieve your goal.
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Move dietpi install to larger SD card.

Post by Joulinar »

it's nearly the same. Create an image of your SD card using W32 disk imager and flash the image to the new device.

@lightsout
As far as I remember W32 disk image will create an image of the entire SD
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Barney
Posts: 14
Joined: Sat Aug 01, 2020 10:39 pm

Re: Move dietpi install to larger SD card.

Post by Barney »

Joulinar wrote: Sun Feb 21, 2021 10:11 pm it's nearly the same.
That's wrong.

In the first case you don't change the boot device, in the second case you change the boot device (going from /dev/mmcX to /dev/sdX). Therefore the second case needs additional steps.
lightsout
Posts: 8
Joined: Sat Feb 20, 2021 12:02 am

Re: Move dietpi install to larger SD card.

Post by lightsout »

For some reason I couldn't boot from the image I made of my existing drive. I decided just to start fresh and do a clean install. Only had a couple apps setup. Thanks for the help folks.
Post Reply