Skip to content

Instantly share code, notes, and snippets.

@xholicka
Created August 1, 2022 14:15
Show Gist options
  • Save xholicka/7c07c980353a8614f56b6096460c4b59 to your computer and use it in GitHub Desktop.
Save xholicka/7c07c980353a8614f56b6096460c4b59 to your computer and use it in GitHub Desktop.
Migrate SD to USB SSD
https://github.com/billw2/rpi-clone
sudo apt install git
git clone https://github.com/billw2/rpi-clone.git
cd rpi-clone
sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
lsblk
sudo rpi-clone sda
sudo poweroff
dd if=/dev/zero of=/tmp/test3.img bs=20M count=5 oflag=direct
sudo dmesg | grep usb
[ 2.146302] usb 1-1.4: new high-speed USB device number 3 using xhci_hcd
[ 2.327810] usb 1-1.4: New USB device found, idVendor=152d, idProduct=1337, bcdDevice= 5.08
sudo vim /boot/cmdline.txt
At the start of the line of parameters, add the text
usb-storage.quirks=aaaa:bbbb:u where aaaa is the idVendor for your device and bbbb is the idProduct.
usb-storage.quirks=152d:1337:u
after quirks
[ 1.987172] usb-storage 2-2:1.0: USB Mass Storage device detected
[ 1.987763] usb-storage 2-2:1.0: Quirks match for vid 152d pid 1337: 800000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment