Skip to content

Instantly share code, notes, and snippets.

@ealize
Created February 3, 2019 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ealize/9b3dc31444beed257f3909e398f630e6 to your computer and use it in GitHub Desktop.
Save ealize/9b3dc31444beed257f3909e398f630e6 to your computer and use it in GitHub Desktop.
upgrade openWRT with extRoot

Run sysupgrade or upload the new file with LuCI.

opkg update opkg install block-mount opkg install kmod-fs-ext4 opkg install kmod-usb-storage mount /dev/sda1 /mnt rm /mnt/etc/.extroot-uuid reboot

setup fstab again

block detect > /etc/config/fstab;
sed -i s/option$'\t'enabled$'\t''0'/option$'\t'enabled$'\t''1'/ /etc/config/fstab;
sed -i s#/mnt/sda1#/overlay# /etc/config/fstab;
cat /etc/config/fstab;

opkg upgrade $(opkg list-upgradable | awk '($1 !~ "^kmod|Multiple") {print $1}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment