[GUIDE] how to migrate everything from sd card to external usb dvice

credit to Darksky for this, he helped me throughout many things
1.
update EEPROM to the latest version
2.
create a 150MB FAT32 partition for the EFI, and an EXT4 partition for the rest.
make sure the labels are ROOT_MNJRO for the EXT4 partition, and BOOT_MNJRO for FAT32 partition
3.
make sure that cmdline.txt has root=

root=LABEL=ROOT_MNJRO

now unmount both partitions
5.
migrate

sudo pacman -S rsync
sudo mkdir /mnt/newdrive
sudo mount -t ext4 /dev/sda2 /mnt/newdrive      # Assuming here your usb drive's root partition is /dev/sda2
sudo rsync -avx / /mnt/newdrive
sudo sync
sudo umount /mnt/newdrive

make sure ur fstab have

LABEL=BOOT_MNJRO  /boot   vfat    defaults        0       0

shutdown the pi and boot up with the USB drive instead

1 Like

Actually the real credit goes to Tom's Hardware.

Thanks for saving me the time looking this up. I will be using it this soon doing some upgrades on my pi4 8G. Hopefully if all parts come in...

1

2

nice, i just got a hard drive enclosure for my old 3.5 inch 1tb HDD, the perfomance is actually pretty great.

Forum kindly sponsored by