raspberry_pi_3_boot_to_usb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
raspberry_pi_3_boot_to_usb [2016/12/14 16:37] – walkeradmin | raspberry_pi_3_boot_to_usb [2016/12/14 16:43] – walkeradmin | ||
---|---|---|---|
Line 85: | Line 85: | ||
</ | </ | ||
\\ | \\ | ||
- | Your parted print output should look similar to the one above. | + | Your <color red>parted</ |
\\ | \\ | ||
\\ | \\ | ||
Line 91: | Line 91: | ||
\\ | \\ | ||
\\ | \\ | ||
- | sudo mkfs.vfat -n BOOT -F 32 /dev/sda1 | + | |
- | sudo mkfs.ext4 /dev/sda2 | + | sudo mkfs.ext4 /dev/sda2 |
\\ | \\ | ||
\\ | \\ | ||
Line 123: | Line 123: | ||
sudo umount proc | sudo umount proc | ||
</ | </ | ||
+ | \\ | ||
+ | Edit <color red> / | ||
+ | system instead of the SD card. | ||
+ | \\ | ||
+ | \\ | ||
+ | sudo sed -i " | ||
+ | \\ | ||
+ | \\ | ||
+ | The same needs to be done for <color red> | ||
+ | \\ | ||
+ | \\ | ||
+ | sudo sed -i " | ||
+ | \\ | ||
+ | \\ | ||
+ | Finally, unmount the target file systems, and power the Pi off. | ||
+ | \\ < | ||
+ | cd ~ | ||
+ | sudo umount / | ||
+ | sudo umount /mnt/target | ||
+ | sudo poweroff | ||
+ | </ | ||
+ | \\ | ||
+ | Disconnect the power supply from the Pi, remove the SD card, and reconnect the power supply. If all has gone well, the Pi should begin to boot after a few seconds. | ||
+ | \\ | ||
\\ | \\ | ||
+ | ---- | ||
- | + | ==== NOTE ==== | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
\\ | \\ | ||
\\ | \\ | ||
+ | Once you have done a couple, and you are comfortable with the sequence, you can copy and paste the commands in batches: | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
sudo mkdir /mnt/target | sudo mkdir /mnt/target | ||
sudo mount /dev/sda2 / | sudo mount /dev/sda2 / | ||
Line 153: | Line 164: | ||
sudo apt-get update; sudo apt-get install rsync | sudo apt-get update; sudo apt-get install rsync | ||
sudo rsync -ax --progress / /boot /mnt/target | sudo rsync -ax --progress / /boot /mnt/target | ||
+ | </ | ||
+ | \\ | ||
+ | < | ||
cd /mnt/target | cd /mnt/target | ||
sudo mount --bind /dev dev | sudo mount --bind /dev dev | ||
Line 161: | Line 174: | ||
rm / | rm / | ||
dpkg-reconfigure openssh-server | dpkg-reconfigure openssh-server | ||
+ | </ | ||
+ | \\ | ||
exit | exit | ||
+ | \\ | ||
+ | < | ||
sudo umount dev | sudo umount dev | ||
sudo umount sys | sudo umount sys | ||
sudo umount proc | sudo umount proc | ||
- | + | </ | |
+ | \\ | ||
+ | < | ||
sudo sed -i " | sudo sed -i " | ||
sudo sed -i " | sudo sed -i " | ||
+ | </ | ||
+ | \\ | ||
+ | < | ||
cd ~ | cd ~ | ||
sudo umount / | sudo umount / | ||
sudo umount /mnt/target | sudo umount /mnt/target | ||
- | # sudo poweroff | + | </ |
+ | \\ | ||
+ | \\ | ||
+ | sudo poweroff | ||
\\ | \\ | ||
\\ | \\ | ||
raspberry_pi_3_boot_to_usb.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1