Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to clone SSD (nvme) to SD Card

Featured Replies

I thought it would be easy, but I am now turning in circles, so I am asking here.

I have a working system booting on NVME (when no SD card inserted), with two partitions nvme0p1 (256Mb) and nvmeop2 (40Gb) 

 

I would like to clone my working system on a SD card.

How shall I proceed?

 

I am not asking details instruction, only the rough path I should follow (e.g. dd partitions, tune2fs ......).

 

PS: I thought it would be easy, but whatever I do, the system keep taking /boot on the nvmeop1, so I really struggle to boot on the /boot of the SD card

@Tony3 You've to edit the UUID in armbianEnv.txt to the one of your SD card.  You could find it with the Gnome Disk-utility or with blkid in terminal.

And edit the UUIDs of the mounting points in /etc/fstab

 

For "cloning" you could use sudo cp -ra /source/* /destination

Edited by royk

I'd suggest using dd to get an exact clone; that way, you don't have finagle UUIDs.


Assuming your destination is larger than your source, I'd run the following from a third device with both drives available:
 

dd if=/dev/<source> of=/dev/<destination> bs=4M 

 

That's how I migrated from SDcard to an NVME drive without any headaches whatsoever. If you want to grow the filesystem to consume the full drive after you've dd'ed, you can use fdisk/parted/gparted to do so. Just make sure you note the starting sector when re-creating the partition table. Then it's just a matter of growing the filesystem (xfs_growfs, resize2fs, etc).

  • Author

yes of course, update /etc/fstab, now working, thanks Royk.

 

To Tom1238732, I did the copy with dd, but not for the whole disk, only the partitions /boot and /

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
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.