LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2012, 10:53 AM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
upgrade Fedora without losing /home


I am currently running Fedora 15 with the following partitions:

Code:
$ df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                 98G   18G   80G  18% /
udev                  1.8G     0  1.8G   0% /dev
tmpfs                 1.8G  7.2M  1.8G   1% /dev/shm
tmpfs                 1.8G  692K  1.8G   1% /run
/dev/sda2              98G   18G   80G  18% /
tmpfs                 1.8G   12K  1.8G   1% /sys/fs/cgroup
/dev/sdb2             155G  131G   17G  89% /home
/dev/sda3             135G   40G   88G  32% /stuff
/dev/sda2              98G   18G   80G  18% /tmp
/dev/sda2              98G   18G   80G  18% /var/tmp
/dev/sdb2             155G  131G   17G  89% /home
/dev/sda1             497M   89M  384M  19% /boot
I do not want to lose my data in /stuff or /home, /boot and / along with /swap are fine to lose.

What are the proper steps (other then backing up my data as I will do that before I attempt the upgrade) while installing the OS to not lose my settings for my desktop, virtual box, etc....

Thanks in advance. In the past the only distro that ive updated is debian and that is a no brainer, just apt-get dist upgrade or there abouts will take care of things. from what little ive read you do not want to attempt that with Fedora.
 
Old 05-01-2012, 11:55 AM   #2
TedHornsby84
Member
 
Registered: Mar 2010
Location: Oak Cliff, TX
Distribution: Gentoo
Posts: 35

Rep: Reputation: 2
I believe if you boot using a DVD from the new version, you will get a choice to "upgrade existing system". I'm not sure what this entails, as I just put fedora on my extra laptop to tinker with it recently. If you're okay with losing your root directory though, you could simply start the installer as if you were performing a new installation, but tell it not to format your /home, /stuff and whatever else you want to keep intact. All you have to do is give the installer the correct mount points during the partitioning phase and triple-check that you don't have the box for "format" checked on those partitions.
 
1 members found this post helpful.
Old 05-01-2012, 04:08 PM   #3
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Advice you should back up all your important files before do anything.
Good luck to you!
 
1 members found this post helpful.
Old 05-01-2012, 07:37 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,829

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
using the install dvd to " upgrade" ???? should ????? work

BUT prepare for the WORST
prepare for a FULL clean new install

back up data
save custom settings
then run the upgrade from the dvd

"Pre-upgrade" has made progress BUT you had to install 15 with a very very large /boot partition


with fedora ( and ANY distro) PREPARE for the worst ,
then upgrade
 
1 members found this post helpful.
Old 05-01-2012, 10:29 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,361
Blog Entries: 12

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
It appears that your /home is on a separate partition from /. You should be able to upgrade without losing any data in /home. At the same time, it's always a good idea to backup the contents of /home before doing an upgrade because stuff can go wrong. Too many backups is much better than too few backups.

As regards the hidden (dot) configuration files, I recommend backing up only those that you have modified. For example, as a Fluxbox user with highly personalized menus and startup files, I always backup my .fluxbox directory, as well as my .pan2 (newsgroups), .opera (mail store) directories, and my LibreOffice templates.

In addition, backing up any files in /etc that you have modified, such as /etc/samba/smb.conf, is wise, as they would be on your / partition.
 
1 members found this post helpful.
Old 05-02-2012, 12:17 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Hmmm - as Elmer Fudd might say, be verrrry careful.
F16 changed the UID and GID ranges for user accounts. Made for some interesting upgrade/recovery scenarios. Guess how I know.

I always share the /home and install clean to new partitions. Means some packages have to be re-installed - there are notes in the install guide (I think) to make it a bit easier.
I once managed to get a successful outcome from a pre-upgrade. But only once.
 
1 members found this post helpful.
Old 05-02-2012, 01:40 AM   #7
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Rep: Reputation: 25
If you don't want to lost you home you need to backup it.

In Partition Screen, Select "Use Existing Partion".

sda1 - Boot
sda6 - Home

Select sda1 to reformat.

Note: Don't check sda6 it is you're home partition.

Home this one help.
 
1 members found this post helpful.
Old 05-03-2012, 09:18 AM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
thanks all for the guidance. thankfully im planning on doing the full backup for /home and /stuff before i upgrade. ill also grab my printers.conf, hosts, etc... that have been modified and dump them into my /home before i start the upgrade.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Reinstall Fedora without losing my /home partition dth4h Linux - Software 6 03-08-2011 01:45 AM
reinstalling without losing /home/user directory? santaliqueur Linux - Software 3 11-16-2005 10:25 AM
Install over Fedora w/out losing home folder? distortedstar SUSE / openSUSE 3 06-08-2005 08:50 AM
losing permissions on /home folder johnnymo Linux - Software 1 01-25-2005 10:59 PM
losing ppp connection on home network justwantin Slackware 0 06-15-2004 04:48 PM


All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration