OpenWRT sysupgrade with ExtRoot

By | 26 May 2014

Run sysupgrade or upload the new file with LuCI.

After the reboot, you will be in the base system (that is, your configuration, but without ExtRoot). Run these commands to get back on track:

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

After this reboot, either everything will be working again (/dev/sda1 mounted to /overlay) or – if there was a new kernel in that upgrade – /dev/sda1 might be mounted to /overlay-disabled. In that case, you have to recreate ExtRoot (save your configuration first).

If your previous ExtRoot mounted fine, you might want to update your packages there. It is important to NOT upgrade kernel modules as this might break things. The ExtRoot Wiki Page lists a command to only update non-kernel-packages:

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

3 thoughts on “OpenWRT sysupgrade with ExtRoot

  1. simonszu

    Thanks, mentioning the UUID helped me to figure out why my old extroot usb drive wasn’t mounted properly. Since i do not have an emergency boot config in the “real” root, i just mounted the usb drive to another folder, cleaned it completely, and installed a new extroot with the tar-cp-pipe mentioned in the OpenWRT wiki.

    Reply
    1. Markus Birth Post author

      Hi Attila, thanks for updating the link. I’ve switched blog software on the .de domain a few years ago and when moving to the .uk domain, I just did this 1:1 redirect. I’m glad it’s sorted now. 🙂

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)