A few weeks ago a new release of Ubuntu came out.
Naturally that meant it was update time!
I have been getting pretty good at this now so I though I had it all figured out.
Here you go…documented for your entertainment and my education.
- Find in RSS feeds that my Ubuntu 13.04 Raring Ringtail install has a Ubuntu 13.10 Saucy Salamander update available.
● Upgrade your PCs, servers, and phones: Ubuntu 13.10 lands tomorrow - Ars Technica
● Ubuntu 13.10 review: The Linux OS of the future remains a year away - Ars Technica
● Ubuntu 13.10 Released - But Is It An Essential Upgrade? - OMG! Ubuntu
● Ubuntu 13.10 Saucy Salamander Review: A Boring Amphibian - Desktop Linux Reviews
● Ubuntu 13.10 (Saucy Salamander) review: Smart Scopes in, Mir out - ZDNet
● Saucy Salamander/Release Notes - Ubuntu Wiki
- Excitedly start the in-place upgrade of my VirtualBox Ubuntu build.
- Remembered this time (3rds the charm) that VirtualBox upgrades screw with Ubuntu (and I had recently upgraded to a new VirtualBox release and hadn’t ran my Ubuntu guest since) unless you first disable 3D acceleration in the VM machine settings. So I disabled it, launched the Ubuntu VM and now was able to load the desktop!
At that point I was able to install/upgrade to the latest VirtualBox Extension pack within Ubuntu proper. It ran slow as molasses but got the job done. For some reason I keep forgetting what the correct option clicks to get the Extension pack installer auto-running after I mount the CD/ISO file. I did better this time. For some reason the dialog window prompts aren’t fully intuitive to me as a Windows user.
- First, run the installer from the host.
- Next choose the “Ask what to do” option (I think this is where I get tripped up and select another option incorrectly).
- Run the auto installer
- Authenticate and install
● How do I install Guest Additions in VirtualBox? - Ask Ubuntu.
● Installing Guest Additions on Ubuntu - VirtualBoxes
- First, run the installer from the host.
- Once done, I rebooted the system after re-enabling the 3D Acceleration option in the VM settings.
- From there I continue by using Daniel Benny Simanjuntak’s tip in a previous Ubuntu post comments I did to run the following command from the terminal to start the upgrade process.
…through terminal one can upgrade as well using the command:
sudo do-release-upgrade -d
- Watch with anticipation.
- Installation failed.
- Try again.
- Failed again.
- Read error and log dialogs carefully and figure out I don’t have enough free space on my virtual hard drive. Apparently I set it up for a fixed disk size of about 8 GB.
- Started simple and ran command “sudo apt-get clean”. I seem to recall I had to do that last time I did an Ubuntu upgrade.
- That cleaned a bunch of stuff but when I tried to do the upgrade, I still didn’t have enough free space left to perform the upgrade. It eventually became clear that it was time to increase the size of my virtual hard drive. Goody.
- I tried a number of processes to expand (in place) my VM’s VDI virtual HDD file. None of them seemed to work successfully. It was super frustrating.
- Found vidma - Virtual Disks Manipulator (tool for resizing VDI). It’s a tiny standalone command line tool for resizing (fixed size) VDI files. It is “Alpha” software but I figured I had little to loose at this point as if this didn’t work, I’d probably be going back to square one anyway.
- To make things easy I copied the utility over into the same location of my VDI file.
- Opened a command line window in this location
- Ran the command “vidma Xplico.vdi 20480” and fed it confirmations as needed. (Actually I used the even value amount “20000” and resulted in a 19.53 GB expanded drive…not quite 20 GB even which the 20480 figure would have done.)
- Watched and waited patiently as it processed the file.
- When it was done I relaunched the VM (hurray it came up fine) and using GParted inside the current Ubuntu VM, checked the /dev/sda drive. It was showing the full 19.53 GiB partition. Up from the original 8 GiB.
- That was part one. Now I had to resize my active partition to incorporate the additional unallocated space that I had created in step 13 with vidma.
- I shut down the VM and rebooted it after attaching a GParted ISO. This would let me manipulate the internal partition information of my VDI file.
- Basically I followed (starting down the page at Step 4 “Expand the partition in the larger virtual disk”) the guide found posted by Eugene over at Trivial Proof: Resizing a VirtualBox Virtual Hard Disk”
- Because I had set my Ubuntu drive up with a swap partition, I had to deal with it first as explained in the addendum in that guide.
- For some reason I was not able to move the swap partition out of the way as it describes. So I ended up following a tip in the comments from “jayesh” after carefully noting what size it originally was set at.
”I had an extended partition containing a swap partition between my root partition and unallocated space. So i tried to follow ADDENDUM steps but i was not able to move the extended partition in one step. So, i extended the "extended partition" with unallocated space, then moved the swap partition to the end of this new partition and finally shrink the extended partition to its original size, leaving unallocated space close to my root partition.”
This post guide over at mwpreston.net expands that process in wonderful detail if you want more information before trying: Expanding a Linux disk with gparted (and getting swap out of the way) - mwpreston.net
- I then was able to expand the existing (in use partition) to take in (almost) all of the newly created unallocated space.
- Rebooted and detached the GParted ISO.
- My VM guest came up just fine and after another check in the GParted tool, confirmed things were put right again and I now had 18.43 GB of available space.
- Time to retry the Ubuntu 13.10 upgrade!
- From a terminal session: “sudo do-release-upgrade -d”
- Let it run forever…do a few reboots…
- When it is all settled down, I log in and kick the tires a bit, and change the desktop to the charming “Saucy Salamander” image.
- Looked for and updated any pending applications needing updating. Done.
- Check “Upgrade to Saucy Salamander” off my to-do list.
I would swear I captured a ton of screen shots of the actual VDI expansion and post-GParted partition wrangling work to document what I was doing, but I just can’t find where I put the screen cap files. Despite my best efforts to scour my HDD’s looking for them they just haven’t turned up. If I do later stumble upon them, I’ll update the post accordingly.
The only other “gotcha” I discovered immediately after the upgrade is that my beloved power-button in the top-right bar in Ubuntu 13.04 had been removed. How do I shut the figgin thing down now?
Apparently I wasn’t the only dolt stumbling over this, post upgrade.
- unity - Why am I not able to shutdown, log-off and restart after an upgrade to Ubuntu 13.10? - Ask Ubuntu
Per that thread, I ended up settling for the “open a terminal, type
sudo shutdown -h now, press
enter and put the password” shutdown method.
Since that original upgrade to 13.10, I have since ran the Software Updater again to bring it current and I find my familiar shutdown icon is now back. Hurrah!
I hope this helps any Ubuntu noobies out there with the upgrade process if you are running it in VirtualBox.
Previous Ubuntu upgrade posts here on GSD.
- grand stream dreams: Ubuntu 12.10 (Quantal Quetzal) Upgrade
- grand stream dreams: Ubuntu 13.04 (Raring Ringtail) Upgrade..a bit faster this time