Forked from xholicka/gist:7c07c980353a8614f56b6096460c4b59
Created
February 28, 2023 14:24
-
-
Save bhardwajRahul/bfb9b31ac4ce7db3d0207434a815fd54 to your computer and use it in GitHub Desktop.
Migrate SD to USB SSD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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