It is possible to upgrade to some versions of Nodegrid OS without going through the recommended intermediate versions of NG v4.1.6 or v4.2.4. This article applies to systems running the following versions:
- NG v4.1.7 or newer
- NG v4.2.5 or newer
- NG v5.0.x
There will not be any issues with this situation until trying to upgrade to a version which requires a larger partition. At that point the upgrade will fail with a 'No space left on device' error. In most cases the system will reboot to the starting version. Occasionally the space error will result in boot failure. If the system is no longer able to boot, the drive will need to be formatted using How to format the hard disk while installing Nodegrid OS to restore normal functionality. Because of this risk, we recommend checking the partition size prior to upgrading.
How to check the partition size:
- Log into the CLI as admin
- Access the root shell using: shell sudo su -
- Get the current partition data using: df -h
- Look for the line where / is listed in the Mounted on column
- The name listed for the Filesystem column may vary
- Read the value in the Size column
- The line looks like this:
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 1.4G 1.3G 71M 95% /
- If the / partition size shows 2.6G, the partition size is already increased and the unit can upgrade to any newer version.
- If the / partition shows as 1.4G (as in the example above), please apply one of the following solutions:
Note: If the starting version is NG v4.1.7 or newer, upgrade to NG v4.2.4 before upgrading to the desired version. No other special action is required.
Warning: Manual re-configuration will be required if the starting version is newer than the final target version. To avoid this, utilize these steps when upgrading.
Downgrade, then upgrade option:
- Warning: the downgrade process will restore the system to factory defaults unless a backup is present for the chosen version.
- You may choose to downgrade to an older NG v4.2.x version and then upgrade to NG v4.2.4 to invoke the size increase.
- This can be helpful when a backup configuration is present for the older version.
- The installers for NG v4.2.4 contain tools which will increase the partition size. This is not available on any other supported version.
- We recommend using NG v4.2.4 since the only other available option is to use the NG v4.1.6, which is EoL.
- Save a copy of the configuration using System :: Toolkit :: Save Settings
- Downgrade to NG v4.2.4
- Reconfigure the system so it can be accessed for upgrading
- Upgrade to the newer target version
- Apply saved configuration using System :: Toolkit :: Apply Settings
Install from USB with format option:
- Warning: The format process will erase all data including configurations and logs on the drive.
- NG v5.2.x and v5.4.x offer the option to format the drive when booting from USB.
- Create the USB media for NG v5.2 or newer using: Nodegrid Boot from USB media article
- Save a copy of the configuration using System :: Toolkit :: Save Settings
- Install using the created USB media: How to format the hard disk while installing Nodegrid OS
- Apply saved configuration using System :: Toolkit :: Apply Settings