Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
Last active April 7, 2021 16:54
Show Gist options
  • Select an option

  • Save RobertCNelson/3f309a82ad8e7c6cae662d54bfe85580 to your computer and use it in GitHub Desktop.

Select an option

Save RobertCNelson/3f309a82ad8e7c6cae662d54bfe85580 to your computer and use it in GitHub Desktop.
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