Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Install Newer Version on Existing and Save Data

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
Shadders



Joined: Mon Jul 03, 2006 12:36 pm
Posts: 18

PostPosted: Thu Jun 13, 2013 7:50 pm    Post subject: Install Newer Version on Existing and Save Data Reply with quote

Hi,

I did search the forums, but nothing specific to what i want to do.

I have an existing Centos5.5 build, and i want to keep data on that hard disk.

I want to install a new version of Centos or other version/flavour, so what is the best approach :

1. Backup existing data, install new version overwriting eisting ??

2. How should i partition the data on the same hard disk for any future upgrades or changes, such that this data is never overwritten - should i use a specific mount point - and what is the best installation method ?. (GUI based, or command line ???)

Can we assume only the one hard disk ?. Thanks.

Thanks in advance for any guidance.

Thanks and regards,

Shadders.
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 857

PostPosted: Thu Jun 13, 2013 9:48 pm    Post subject: Reply with quote

It depends on whether or not you have a separate /home partition, whether you use mysql and how much tinkering you have done.

If you have a separate /home partition, all your personal data will be there.

If you use mysql, you need to use mysqldump to backup your mysql databases to your /home partition.

If you tinker a lot, you probably also need to backup any files in /etc which you have modified to your /home partition.

Once you have everything you want to keep on your /home partition, back it up and proceed. Most distros will automatically leave /home untouched but it is better to be safe than sorry. (I have never had to use my backup.)

If you don't have a separate /home partition, you will need to back all these things up anyway. When you install the new version, look for an option to create a separate /home partition to make things easier in future.

(Note also that a handfull of other programs (e.g. evolution) will only restore, like mysql, from their own backup format. So back these up using their own format before you back up /home.)
Back to top
View user's profile Send private message
Shadders



Joined: Mon Jul 03, 2006 12:36 pm
Posts: 18

PostPosted: Thu Jun 13, 2013 10:19 pm    Post subject: Reply with quote

Hi John,

Thanks for the reply.

As i was installing an application, i named the mount point /apps.

If i have non OS named mount points such as /apps, or /data etc., i assume i can install an OS over the existing OS but leave these mount points untouched ?.

if this is the case - which is the best method - GUI or CLI ?

Will the installers recognise the existing mount points ?

I keep on typing points, and the PC keeps on spelling pints, compooter is trying to tell me something.

If i want to install a different Linux OS, will there be any other issues i have to remember or plan for ?. Thanks.

Regards,

Shadders.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8368
Location: Warrington, UK

PostPosted: Thu Jun 13, 2013 10:24 pm    Post subject: Reply with quote

The best approach is usually not to install at all but to upgrade your existing installation to the latest version with yum. There's a guide at http://www.if-not-true-then-false.com/2010/upgrade-centos/

If you do want to reinstall, you will need to backup /home if it is a desktop and /var if it is a server. You should also backup the contents of /etc.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Shadders



Joined: Mon Jul 03, 2006 12:36 pm
Posts: 18

PostPosted: Fri Jun 14, 2013 12:52 am    Post subject: Reply with quote

Hi,

Thanks for the reply.

So, are you suggesting backing up in case it all goes wrong, or are you indicating that backing up is required since you cannot install a different Linux flavour without the entire hard disk being affected ?.

Is this installer specific ?. so Ubuntnu is ok, but Fedora cannot since the installer is not very intelligent ?

Thanks and regards,

Richard.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8368
Location: Warrington, UK

PostPosted: Fri Jun 14, 2013 9:11 am    Post subject: Reply with quote

You back up in case it goes wrong, but that applies to anything you do, not just upgrading. An upgrade is only possible between versions of the same distro.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Shadders



Joined: Mon Jul 03, 2006 12:36 pm
Posts: 18

PostPosted: Fri Jun 14, 2013 12:42 pm    Post subject: Reply with quote

Hi Nelz,

Thanks - yes, understand that upgrade is existing flavour.

I was also wondering if there is a resource stating that specific distributions can allow you to import existing partitions on the same hard disk.

Is it better to only use the disk space of the previous build, and then modify the Linux OS to import the previous mount point such as /data for example ?.

Again, is the GUI or CLI better for this ?.

I am assuming only one hard disk - as this is what i intend to use.

As such, with backups - is it recommended that this is on the same hard disk or CD ?. I still want to use one hard disk only - so another partition ?

Thanks and regards,

Shadders.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8368
Location: Warrington, UK

PostPosted: Fri Jun 14, 2013 1:12 pm    Post subject: Reply with quote

Backups should be on a separate medium. All distro installers allow you to choose your partitioning layout, so you can reuse existing /home and /var partitions, retaining their contents. All distros (well, except Gentoo) use a GUI installer, even if it is ncurses in a console, so that question doesn't really matter - except the "proper" GUI installers are generally easier to find your way around.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Shadders



Joined: Mon Jul 03, 2006 12:36 pm
Posts: 18

PostPosted: Fri Jun 14, 2013 2:02 pm    Post subject: Reply with quote

Hi Nelz,

Thanks - i will try the GUI with a /data and /apps mount point to see what occurs - i can backup on to another hard disk as a precaution (will be difficult due to SATA restrictions i have) but this will be a good test.

Thanks for your help -and others too. Much appreciated,

Regards,

Shadders.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast