My Stoopid Stuff
  • Home
  • Projects
  • Blog
  • Lec'tronics
  • Links
  • CNC
  • Quick Recipes
  • 3D Printer Tips

Quick Notes on Updating Raspberry OS on an OctoPi

8/15/2021

0 Comments

 
I just updated one of my OctoPi's today, and thought I'd make some notes here on what I did.  I'm no expect on this of course, but this process worked for me.  Also these steps are not some special thing I came up with, they are the normal way to update a Pi as far as I know.

Unless you like to live on the edge though, it's a really good idea to make a backup image of the SD card in the Pi.  This can save you a lot of time when the SD eventually gets corrupted due to improper shutdowns too.  I use Win32DiskImager to create the backup image of the SD card and Balena Etcher to burn it to a SD card should the need arise.  Note that when using Win32DiskImager, you should see that the SD card from the Pi has two partitions, one is boot and one is root (larger). 

To image the SD card (with both partitions), I selected the smaller boot partition in Win32DiskImager, and then after entering a filename to save the image as, I selected "Read".  I don't know if it matters which is chosen, but I just picked the smaller "boot" partition here:
Picture
Picture
Now just keep that image in a safe place (you may need to add '.img" to the end of the filename if it did not automatically get that extension.  It is best to also consider the SD card that the image was taken from.  Try and stick with one brand or microSD since there are differences in actual capacity between brands, and it can be difficult to resize an EXT4 partition on a Windows machine if you find that the image will not fit a new card.

To update the Raspberry Pi OS I used the following (steps are detailed here):

Log into the Pi using the "pi" user.  I use Putty to do this since it's free and it works.

Picture
It may ask you about saving keys and then a terminal window will pop up. 

Next I just entered the following:

sudo apt update

It will ask for the pi password again, and then it will start downloading updates (the Pi will need to have access to the internet for this).

After that is done, I ran this:

sudo apt full-upgrade

This took an additional 140MB or so and it asked me if I wanted to continue (I said "yes").  The update takes quite some time and will pause at a step where there are some notes regarding a change to the default behavior (had to do with a security patch), with the only option to press "x" to exit which is actually to continue, then I waited some more till it was done.

When the update was completed, I rebooted it.

sudo reboot



Once it was back up, I logged into Octoprint using the browser and updated that.  I started with:

Octoprint 1.6.1
Python 2.7.16
OctoPi 0.17.0

To update, I clicked on the "wrench" icon at the top right, then selected "Software Update" from the left side frame, and then just clicked on "Update All".  Octopi did it's thing and a few minutes later it asked me to reload it.  I did that and since I was already on the current version it just updated some plugins.

After I tested the updated OS, I burned another image of the SD card to have as a more current backup, and then burned that image to a spare MicroSD card which I taped to the Pi so I can have a quick way to recover it if it should fail.


0 Comments



Leave a Reply.

    Picture

    Stoopid Me

    Welcome to my Stoopid corner of teh Internet.  It's mostly gonna be 3D printing stuff, but I also post some recipes, projects, and the occasional rant here as well.  More Stoopid stuff is updated regularly.

    I recently joined the Amazon Associate program, so some of the links on this site are Amazon affiliate links. This means that, at zero cost to you, I will earn an affiliate commission if you click through the link and finalize a purchase.  This will help to support this site, and pay for more Stoopid Stuff.

    Archives

    March 2023
    February 2023
    January 2023
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    April 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    November 2017
    September 2017
    August 2017
    June 2017
    December 2016
    October 2016
    September 2016
    July 2016
    March 2016
    February 2016
    September 2015
    August 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    November 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    January 2013
    December 2012
    November 2012
    October 2012
    September 2012
    August 2012

    Categories

    All

    RSS Feed

      Contact Form (Name is optional)

    Submit
Powered by Create your own unique website with customizable templates.