modified on 6 August 2014 at 09:01 ••• 7,756 views

ReInstall

From Maties Ubuntu

Jump to: navigation, search
Back to Installation

Use ubuntu.sun.ac.za to access this website
The campus IT department does not officially support Ubuntu
Please refer to the Ubuntu campus community for support
The Ubuntu campus community only supports stable LTS releases

http://www.everydaylinuxuser.com/2014/05/install-ubuntu-1404-alongside-windows.html
http://www.everydaylinuxuser.com/2013/09/install-ubuntu-linux-alongside-windows.html

When new versions of Ubuntu are released it is probably better to install again rather than upgrade.

If you want to go from a 32 bit system to a 64 bit system, then you will have to re-install.

Please note
  • This procedure is for desktops that do not run any server services. If you do run any server services then backup the server data BEFORE re-installing. You have been warned.

Option A - Easy procedure using Synaptic, but no system backup and restore.

Option B - Advanced procedure

This option provides system backup and restore.

Please note
Step 1 - Prepare and run a backup script

Using a text editor, copy and paste the following to a file in your home folder and name it backup-for-reinstall.sh, to be run with sudo before re-installing.

#!/bin/sh

# This script creates the backup folders.
# Then backs up the data.

# Create the folders
mkdir /home/backup
mkdir /home/backup/root
mkdir /home/backup/etc
mkdir /home/backup/opt
mkdir /home/backup/usr

# Perform the backup
rsync -av /root/ /home/backup/root/
rsync -av /etc/ /home/backup/etc/
rsync -av /opt/ /home/backup/opt/
rsync -av /usr/local/ /home/backup/usr/

# Store list of currently installed software
dpkg --get-selections > /home/backup/installed-apps.txt

Then make it executeable, by typing the following in a terminal:

chmod a+x /home/$USER/backup-for-reinstall.sh

Then run it, by typing the following in a terminal:

sudo /home/$USER/backup-for-reinstall.sh
Step 2 - Install Ubuntu again
DO NOT format the partition that contains your /home data during the installation of Ubuntu again. Use custom partitioning during installation and select the partition to be used again and mounted as /home. Do not select it to be formatted !!

!! YOU HAVE BEEN WARNED !!

Step 3 - Restore previously installed Ubuntu software

First setup your new installation to point to the campus ftp server for software access. Then type the following in a terminal.

sudo apt-get update
sudo dpkg --set-selections < /home/backup/installed-apps.txt
sudo apt-get -u dselect-upgrade
Step 4 - Restore previous customised software

Type the following in a terminal:

sudo rsync -av /home/backup/opt/ /opt/
sudo rsync -av /home/backup/usr/ /usr/local/

Disclaimer


** You use this wiki entirely at your own risk **


The authors/editors of this wiki accept no responsibility in any way whatsoever for any damages incurred, arising from the use of any information or software provided by the use of this wiki, to provide support for Ubuntu on the campus of Stellenbosch University.


In addition, please note that all Maties Ubuntu members are unpaid volunteers.
All help is subject to the "ABSOLUTELY NO WARRANTY" condition found in the GNU General Public License .


The content on this wiki is covered by the CC-BY-SA creative commons licence.

By-sa.png