Last active
April 7, 2021 16:54
-
-
Save RobertCNelson/3f309a82ad8e7c6cae662d54bfe85580 to your computer and use it in GitHub Desktop.
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://raspi.debian.net/daily-images/ | |
| #pi | |
| lsblk | |
| apt update ; apt upgrade ; apt install -y locales | |
| update-locale LANGUAGE=en_US.UTF-8 LC_ALL=C | |
| locale-gen | |
| apt install -y etckeeper haveged htop rsync | |
| fdisk /dev/sda | |
| mkfs.ext4 /dev/sda1 | |
| mkdir /media/newdrive | |
| mount /dev/sda1 /media/newdrive | |
| rsync -avx / /media/newdrive | |
| sed -i -e 's:/dev/mmcblk1p2:/dev/sda1:g' /boot/firmware/cmdline.txt | |
| sed -i -e 's:/dev/mmcblk1p2:/dev/sda1:g' /media/newdrive/etc/fstab | |
| sync | |
| reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment