Skip to content

Instantly share code, notes, and snippets.

@luoqeng
Created July 12, 2019 05:39
Show Gist options
  • Save luoqeng/0b60b3e171755349fcd1e8d9b2aa0c65 to your computer and use it in GitHub Desktop.
Save luoqeng/0b60b3e171755349fcd1e8d9b2aa0c65 to your computer and use it in GitHub Desktop.
wget https://downloads.openwrt.org/releases/18.06.4/targets/x86/64/openwrt-18.06.4-x86-64-combined-ext4.img.gz
gzip -d openwrt-18.06.4-x86-64-combined-ext4.img.gz
dd if=openwrt-18.06.4-x86-64-combined-ext4.img.gz of=/dev/sda bs=4M; sync;
apt install parted
parted /dev/sda print
parted /dev/sda resizepart 2 16G
parted /dev/sda print
resize2fs /dev/sda2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment