Beruflich Dokumente
Kultur Dokumente
https://community.linuxmint.com/tutorial/view/1946
community.linuxmint.com
The website for all Linux Mint users
Home
Community
Ideas
Tutorials
Hardware
Software
Countries
Users
Moderation
Chat room
Testing
ISO Images
Teams
Login
Username
Password
Remember me
Forgot password
Login
Register
Back
Written by:
MagicMint
Score: 4
votes: 11
Format: Article
1 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
Scope
The 17.x releases of Linux Mint which began with Qiana (will) share with each
other not only the long term support until 2019, but also the easy upgradability
from such a point release to another: as the software base remains the same
(namely Ubuntu 14.04 Trusty Tahr), so do your user environment, and therefore all
of your data will remain in place. In other words, youll have to adapt to the new
features in Cinnamon or MATE only.
But next year at the latest, there will be an updated software base for Linux Mint,
so well have to face again that nasty problem of how to avoid copying (maybe)
gigabytes of data from users and losing their beloved settings a problem that
everyone switching from another (working) distro or from an older, major release of
Linux Mint is still confronted with.
That is, we want to save us from as much work as possible, as opposed to try to
save and then to restore lots of data and personal settings which might be very
time consuming and might also cause permission issues within the new system
This tutorial simply presumes that you made conscientiously your backups any time
in the past
, just in case something would go wrong, but we dont want to bother
ourselves with that while were installing an exciting new version of Linux Mint
Step 1
As youd probably guess, you must have an external boot medium in order to install
a new Linux system. This is the easiest thing in the world:
a. First of all, download the latest release of Linux Mint to a folder named iso in
your home folder. This way, we can use ~/iso (i.e. /home/your_user_name
/iso) as a reference location for the transfer of knowledge from the old
system to the new one.
b. Check if the download has gone smoothly by right clicking on the ISO le (in
Linux Mint) and then selecting Check MD5. You can do this from the
command line (in a terminal) too:
$ md5sum ~/iso/*.iso
c. The result must match the checksum displayed on the website of course,
otherwise you have to download the ISO image again
! Its also a good idea
to save that checksum by pasting it into the following le:
$ gedit ~/iso/checksum.md5
d. Now, its time to burn the ISO to a medium, i.e. to a USB stick or a blank
DVD. The rst kind of medium is faster and better integrated into the le
manager of Linux Mint: a right click on the ISO le or a left click in nemos
menu on File Make bootable USB stick thats it. If your distro doesnt allow
for that, you can still abide by Clems tutorial.
2 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
As far as the live DVD is concerned, you have to ensure that the ISO image is
transferred to the disk by your preferred burner application, e.g. brasero,
xfburn, etc.
e. Once nished, eject the live medium, and then re-insert it again. In the folder
it opens up or which appears when you click on the symbol of the medium,
start a terminal. Therein, you should verify the checksum of your live USB or
DVD by typing:
$ md5sum -c MD5SUMS
Step 2
We must now collect some bits of information that we will need in order to conserve
the current state of our data before we can denitely freeze the old system for the
installation process.
a. First, you must save your software selection with Mints Backup Tool (under
Administration in the menu) to the ~/iso folder, albeit older versions of
mintBackup might store it in another folder, e.g. / or /home. Anyway, open
the destination folder as Root, and make the backup over to yourself by
changing software_selection__package.list Properties Permissions. Then,
you can easily drag it to ~/iso.
b. On top of that, you must also backup the sources of your additional packages
(if any). This is much easier in the terminal:
$ mkdir ~/iso/apt
$ cp -R /etc/apt/sources* ~/iso/apt
Each line of of the resulting ~/iso/users.list will contain one line for each real
user account on the system, with seven elds delimited by colons (:) which
store the users login name, an x, his numerical user ID, his numerical group
ID, his full name, the path to his home folder and his command interpreter.
Please write down these data for the very rst user, as you will need them
during the installation, just in a moment when you wont be able to access that
le.
d. Its equally important to remember the grouping of the users too. So create a
new le with:
3 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
$ gedit ~/iso/old_groups.sh
e. At this stage, you should have the following items in your ~/iso folder:
a folder named apt;
the ISO image ending in .iso;
its checksum.md5;
a list of your selected packages;
the script old_groups.sh;
a list of the users on your machine and
a list of the groups they belong to.
Tip
There are certainly some corrections or improvements you made to your old
system. If you had respected some rules, you could re-apply your changes to the
new system without hassle (if not, keep those rules in mind until the next upgrade
):
Conguration changes aecting the whole system (as opposed to those of a
single user) belong into the folder /etc;
Non-standard but shared applications (like additional commands, scripts, etc.)
and their resources belong into the folder /usr/local (wine applications and
virtual machines are not shared by default, hence theyre always installed in a
users home folder);
Everything else is the domain of package managers and the running system,
so dont touch any other folder, unless in case of inevitable necessity, e.g.
when changing the boot background;
Document any change of yours, for instance by copying the modied les
somewhere in your home directory, i.e. by mirroring the directory structure
4 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
Step 3
Now, reboot into a live session with the medium prepared in Step1. This is the
stage where you should thoroughly test whether the new release of Linux Mint
works out for you and your hardware, even in the case you had a well working
system, since there could be regressions in a new release. Anyway, you should
focus on the following points, because in general the newer the hardware, the likely
it is to come across something that declines service yet
are that old annoyances are gone
):
a. You can use your monitor in its maximal resolution and make use of the
extended capacities of your graphics card as far as practicable;
b. The [Fn] keys, the built-in touchpad (in notebooks) and the touchscreen (if
available) work acceptably an external mouse shouldnt pose any problem
most of the time;
c. All the network interfaces (Bluetooth, WiFi, LAN) still work;
d. You can avail yourself as usual of your storage and other external devices that
you care of (they connect, and they are readable and writable);
e. If you encounter any problems here, please google around to nd out if there
is any chance of a remedy otherwise you should consider to skip the release
and wait for a while, even if the support for your old release had expired
already
Step 4
Once youve made your decision, you should freeze the system. Thereafter, you
ought not reboot into that old Linux on the hard disk, because there will be be no
place where to login to
:
a. Still in the live session, (double) click in the Computer folder on the disk that
contains the old system, or more exactly the /home directory, where all of
your users reside in user_folders named after them;
b. Therein, right click on one of the user_folders and Open it as Root;
c. Go back in the new window with Elevated privileges to the /home folder;
5 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
Intermediary Step
This step is totally unnecessary
, but only if the /home directory aforesaid has its
own partition. Although this sounds logical, because you wish to keep all your data
and settings apart while at the same time youre craving for a newer system which
would be more state-of-the-art, the tradition of Windows and other poorly bred
distros often misleads people to store anything in the same partition on the disk.
However, if you want to separate the data from the rest, the best is to put /home on
a partition of its own.
a. Within the live session, start Menu Administration GParted;
b. Once the application nished scanning your disks, nd the root partition of
your old system, i.e. the one in which /home is hidden. If youre lucky, then its
called ROOT (however, for such human-readable names to work, you must
not forget
to label the partitions when formatting them or afterwards).
Make that partition ca. 2432 GiB smaller with (Partition) Resize/Move and
rename it to HOME;
c. In that newly freed space, create by clicking (Partition) New a partition
named ROOT of the suggested type and with the proposed parameters.
Then, press (Edit) Apply All Operations and quit the application;
d. Now, open in the Computer folder the disk called HOME, and therein, as
root, the folder named home. Once the root window (the one with Elevated
privileges) opened, go back in it to the disks folder, where you should delete
everything except the home folder;
e. Open the home folder, and select the *.old pattern with [Ctrl+S]. The items
selected should be the user_folder.old from Step4, so move (i.e. drag) them all
to the disk. Go back to the latter once again, and delete the sole home folder.
Close that disk, and your computer should be now in a similar state with
regard to the data as in the step before, with the essential dierence that you
had to delete the old Linux system.
Caution
Actually, the whole step above is the only one where things can really go wrong
,
if you dont pay attention, so only do it once for good to never have to re-do it
again: in the only case you had made the mistake of installing on a single partition.
6 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
Step 5
Now comes the moment that you had so much longed for: the installation of your
new Linux Mint but you should do it by trying not to erase
your old data. If
you proceed like the following, the tenet of a fresh upgrade wont be violated,
although youll preserve your personal data while getting it done way much faster:
a. On the desktop of the live session, (double) click on Install Linux Mint. When
asked for the Installation type, you must choose the one which lets you freely
tune the partitions. In Rebeccas installer, the proper option is called:
Something else
You can create or resize partitions yourself, or choose multiple partitions for Linux Mint
b. Provided that you dont need to resize the partitions were talking about
installing a new system in place of a working old one, therefore you only have
to Change their Mount points, the only thing you have to keep in mind is
that the ROOT and SWAP partitions must be re-formatted, whereas HOME
must not. Under no circumstances!
c. The name elds in the dialog Who are you? must be lled with the full and
user (i.e. login) names of that very rst user from Step2. This is mandatory,
but the other elds can be chosen freely.
d. Finish the installation, but do not restart the computer!
e. From within the live session, you could reinstate those of your previous
customizations which you estimate still necessary for the new release, e.g.
changes made in /etc/fstab owing to SSD optimization or concerning a
Windows drive to be mounted at boot time always provided that you still can
access these customizations, for example by having heeded the advice in
Step2
7 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
Step 6
Before rebooting, you must implicitly restore the rst users data yet:
a. Open the Computer folder again, and therein the (new) HOME disk;
b. Right click on the only user_folder which has no .old suix in its name, and
Open it as Root;
c. In the root window that pops up, the menu option View Show Hidden Files
must be ticked, in as much as you ought to Edit Select All or to press
[Ctrl+A] in order to delete everything in that folder;
d. Open up a new tab for the HOME disk, e.g. by right-clicking in the location bar
on the disk button Open in New Tab. Therein, go to the corresponding
user_folder.old, select all of its contents, and move (i.e. drag) it to the other
folder, the new and now empty user_folder with the same name;
e. As soon as this (almost instantaneous) operation is completed, i.e. the old
folder is emptied, you can safely delete it. After closing the disk, youre done
with the live session.
Step 7
After having rebooted into your brand new release of Linux Mint, you can proceed
with restoring the old state of your user environment. Again, there is a determinate
sequence of moves to follow:
a. Re-create all the users from ~/iso/users.list if the iso folder belongs to the
rst user, otherwise from the right /home/user_folder.old/iso/users.list as
you can see, its the order of creation of the users which is reected by their
user ID number (beginning with 1000) that matters. This order must be
respected in order to avoid any permission issues with data or commands
(this also holds for backups made on Linux partitions!).
First, Add the users one by one in Menu Administration Users and Groups
Users. Then, click on each user in turn to verify that their Groups match those
in groups.list (from the same backup folder as above). If not, click on the
users groups list and rectify it the correct user groups have a meaning
inasmuch as certain features like folder sharing or printer administration
wont work without them. After that, you can quit the Users & Groups
application, and open My Computer File System in the le manager.
Here, Open As Root the /home folder, and as such, make sure that View Show
Hidden Files is still ticked, and click View Extra Pane or press [F3]. For each
user youve just created, you must select all the contents in its user_folder,
delete it, and replace it with the contents of the corresponding
8 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
user_folder.old. After which you can delete all the *.old folders in /home (all
this is essentially the same procedure as in Step6 for the rst user);
b. Now, you should turn to Menu Administration Software Sources. For your
Oicial repositories, you should select the fastest Mirrors available to you. If
you dont need Source code, dont enable it, and keep the hands o the
backport and romeo packages;
c. As far as PPAs and Additional repositories are concerned, the best way to
restore them is to google the contents of the les in the apt subfolder of your
iso folder, and to add them manually to the software sources, since the
structure of the /etc/apt system folder and the single repositories on the
internet could have been changed from the old software base to the new one.
The PPAs (Personal Package Archives) are specic to Ubuntu as they depend
on its particular releases most of the time, and they need Authentication keys
from the Ubuntu key servers;
d. You should check now if you had really
brought your software sources up to
date. This is the case only when the following command runs through with no
error messages:
$ sudo apt-get update
At the very last, start Menu Administration Backup Tool, click on Restore
software selection, and choose the software_selection__package.list from
the iso folder. This operation will re-install all of your previously used packages
as a whole and thats it
Notice
Be aware that depending on your formerly installed applications, the very last step
above can take a very long time to complete: while the installation from the USB
9 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
stick has more of a coee break, the software restoration feels more like installing
Windows (without repeated restarts, however
), i.e. in my case a of an hour vs.
1 hours. But you should realize (what software reviews usually dont) that all
things considered, twice (or more times) the contents of the live DVD worth in
packages must be downloaded and installed at once, whereas this process was
evenly stretched over the whole lifetime of your previous system.
Step 8
As a nal touch, you could re-work your customizations from the old system, insofar
as you had saved them after Step2. Remember, however, that we didnt saved
anything from the old /root folder which is the place for custom settings for any
administrative task performed as a super user, like system proles of luckyBackup,
e.g. Such settings can only be restored from external backups with the right
permissions.
Before you can fully enjoy your shiny new Linux Mint, you should x as yet the
problems you ran into in Step3. But thats what the Community is for
External sources
This tutorial is just a detailed synthesis from my own experiences, a lengthy
discussion on the forums and another resource that didnt work satisfactorily for
me
6 months ago
DarrenG
10 of 12
22/05/16 08:52
https://community.linuxmint.com/tutorial/view/1946
1 year ago
1 year ago
1 year ago
1 year ago
11 of 12
zman58
jrwilson
22/05/16 08:52
1 year ago
1 year ago
1 year ago
https://community.linuxmint.com/tutorial/view/1946
1 year ago
12 of 12
22/05/16 08:52