vendredi 9 juin 2023

Orange Pi 5 - Transfert System and boot ... EASY

From this thread : https://forum.armbian.com/topic/27048-not-booting-to-system-on-nvme/

Thanx to robnielsen


Deleted partition on NVMe (if needed)

gdisk /dev/nvme0n1

 

d

1

d


Copied SD card to NVMD

cat /dev/mmcblk1 > /dev/nvme0n1


Could take some time 


Powered off the Orange Pi 5, removed the SD card and then powered it back on and it booted from the NVMe. 


Then resized the filesystem

 /usr/lib/armbian/armbian-resize-filesystem start

 

Now I have some thing like:

$ df -H
Filesystem      Size  Used Avail Use% Mounted on
udev            8.3G     0  8.3G   0% /dev
tmpfs           1.7G   10M  1.7G   1% /run
/dev/nvme0n1p2  254G  5.7G  245G   3% /
tmpfs           8.3G     0  8.3G   0% /dev/shm
tmpfs           5.3M  4.1k  5.3M   1% /run/lock
tmpfs           8.3G     0  8.3G   0% /tmp
/dev/nvme0n1p1  269M  158M  111M  59% /boot
/dev/zram1       51M  4.8M   43M  11% /var/log
tmpfs           1.7G     0  1.7G   0% /run/user/1000

$ mount | grep /dev/n
/dev/nvme0n1p2 on / type ext4 (rw,noatime,errors=remount-ro,commit=600)
/dev/nvme0n1p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=936,iocharset=utf8,shortname=mixed,errors=remount-ro)
/dev/nvme0n1p2 on /var/log.hdd type ext4 (rw,noatime,errors=remount-ro,commit=600)


 

Aucun commentaire:

Enregistrer un commentaire