Move from micro-sd 32GB to nvme 256+ ?

Post Reply
nalbee
Posts: 15
Joined: Wed Dec 21, 2022 4:02 am
languages_spoken: english
ODROIDs: M1
Has thanked: 3 times
Been thanked: 0
Contact:

Move from micro-sd 32GB to nvme 256+ ?

Post by nalbee »

If I want to move the entire installation of a micro-sd to nvme drive, what would be the best way to do this.

I know I can dd the image over. But how do I resize partitions to use the larger storage available. Sd card being 32GB, NVMe 256GB or greater.

Is there a script for this?

Thanks for the help.

User avatar
mctom
Posts: 2592
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1, H3+, SP3, Vu8M
Location: Gdansk, Poland
Has thanked: 351 times
Been thanked: 447 times
Contact:

Re: Move from micro-sd 32GB to nvme 256+ ?

Post by mctom »

After you dd the image over, you can use parted or similar partition manipulation tool to resize the partition. That should work.
Note you probably should do that while booted from an unrelated medium, such as USB.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 11208
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1059 times
Contact:

Re: Move from micro-sd 32GB to nvme 256+ ?

Post by mad_ady »

Once you dd to nvme you can do a live resize, similar to how the stock image does it: https://github.com/hardkernel/buildroot ... afirstboot

You basically delete the 2nd partition, recreate it with the same start point, but larger, and then grow your rootfs.

User avatar
tobetter
Posts: 11390
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 779 times
Been thanked: 1934 times
Contact:

Re: Move from micro-sd 32GB to nvme 256+ ?

Post by tobetter »

nalbee wrote:
Thu Jan 19, 2023 2:55 am
If I want to move the entire installation of a micro-sd to nvme drive, what would be the best way to do this.

I know I can dd the image over. But how do I resize partitions to use the larger storage available. Sd card being 32GB, NVMe 256GB or greater.

Is there a script for this?

Thanks for the help.
What's the OS image installed to your SD card?
If it's Hardkernel's Ubuntu 20.04 image for ODROID-M1, look for the file /root/firstboot.sh.done and rename it to /root/firstboot.sh then the file system resize would be performed on next booting.

nalbee
Posts: 15
Joined: Wed Dec 21, 2022 4:02 am
languages_spoken: english
ODROIDs: M1
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Move from micro-sd 32GB to nvme 256+ ?

Post by nalbee »

Sorry I forgot to include OS. Hardkernel's Debian 10

User avatar
tobetter
Posts: 11390
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 779 times
Been thanked: 1934 times
Contact:

Re: Move from micro-sd 32GB to nvme 256+ ?

Post by tobetter »

nalbee wrote:
Thu Jan 19, 2023 5:15 am
Sorry I forgot to include OS. Hardkernel's Debian 10
Hardkernel does not release Debian officially, only Ubuntu and Android.
But if you mean the image from my server, ppa.linuxfactory.or.kr, it could have root/firstboot.sh.done so you could try.

nalbee
Posts: 15
Joined: Wed Dec 21, 2022 4:02 am
languages_spoken: english
ODROIDs: M1
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Move from micro-sd 32GB to nvme 256+ ?

Post by nalbee »

Debian 10. Available via petiboot installer.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest