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.
Move from micro-sd 32GB to nvme 256+ ?
- mctom
- Posts: 2574
- 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: 347 times
- Been thanked: 441 times
- Contact:
Re: Move from micro-sd 32GB to nvme 256+ ?
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.
Note you probably should do that while booted from an unrelated medium, such as USB.
- mad_ady
- Posts: 11188
- 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: 1053 times
- Contact:
Re: Move from micro-sd 32GB to nvme 256+ ?
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.
You basically delete the 2nd partition, recreate it with the same start point, but larger, and then grow your rootfs.
- tobetter
- Posts: 11362
- Joined: Mon Feb 25, 2013 10:55 am
- languages_spoken: Korean, English
- ODROIDs: Many
- Location: Paju, South Korea
- Has thanked: 777 times
- Been thanked: 1930 times
- Contact:
Re: Move from micro-sd 32GB to nvme 256+ ?
What's the OS image installed to your SD card?nalbee wrote: ↑Thu Jan 19, 2023 2:55 amIf 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.
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.
- tobetter
- Posts: 11362
- Joined: Mon Feb 25, 2013 10:55 am
- languages_spoken: Korean, English
- ODROIDs: Many
- Location: Paju, South Korea
- Has thanked: 777 times
- Been thanked: 1930 times
- Contact:
Re: Move from micro-sd 32GB to nvme 256+ ?
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.
Who is online
Users browsing this forum: No registered users and 1 guest