Results 1 to 10 of 10

Thread: Guide How to re-install ubuntu keeping your data and settings

  1. #1
    Join Date
    Jun 2011
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Guide How to re-install ubuntu keeping your data and settings

    How to re-install Ubuntu keeping your data and settings

    YannBuntu pointed me to this doc


    https://help.ubuntu.com/community/UbuntuReinstallation

    It was a revelation.
    Authored by YannBuntu it was great, and highly understandable for those who are quite conversant with Ubuntu fixing.

    I've written this guide, with the more noobish in mind, particularly because the re-installation was so much easier than trying to fix my system (which we anyway failed to do).


    You have a reason to re-install Ubuntu

    It could be because it is clearly no longer working correctly, or you have noticed that it's performance has diminished.

    The good news is that you can re-install ubuntu very easily without overwriting your data and settings.
    So easily that in fact, it may be the first thing that you do, when trying to rectify any problem that you might have.

    You will still need to re-install any downloaded apps, but this is very quick, and when you launch them, they are just as before. Eg. Google-chrome..... had to be re-installed, but on launch all my bookmarks were as before.

    However, the main point is:

    After around 4 days intensive effort to try to fix my broken ubuntu - I spent only 2hr re-installing it and some apps, and ubuntu was back in operation and running very fast again.

    Ok... there was a little bit of prep, but that's a one off.
    Once you're sorted for bakups (as you should be anyway) you can re-install whenever you wish.

    Here is how you do it, first in brief, and then a fuller explanation:

    Brief

    1. Create a list of your log in name, user name, and pcname (Password must be the same)
    2. Create a back up of 'home'
    3. Boot from install disk, choose 'something else, Dclick on your '/' partition, choose a file system, choose '/' as your mount (do not format)
    4. Enter your names and password (same as before), choose to update during install etc.
    5. Reboot, install updates, install any apps you regularly use that are missing, reboot.


    Full Explanation

    1. Create a list of your 3 log in names - get these wrong and you lose your data.

    a)
    Take note of the 'name' above your password (log in screen) - you must enter exactly the same during ubuntu install, in the field asking for your name.

    b) At desktop press ctrl+Alt+T and type
    Code:
    gksudo nautilus
    to launch file manager. You'll be asked for your ubuntu login password. type it (nothing displays) press enter.
    In Nautilus, dclick on 'File System' on the left, and on the right look for 'home'.
    Dclick on 'home' and you will see your username under the icon - Take note of that for use during install.

    c) If you close Nautilus - in the terminal you'll see
    Code:
    username@anothername:~$
    anothername is the name of your pc.
    This is the 3rd name required at install.

    Note: If you had originally let 'ubuntu install' do its own thing, you would have entered your first Name and Surname, and ubuntu would have auto filled user name, without a capital letter, and would have merged this with the name of your pc (pulled from the bios or wherever).
    So for me, I took care to note all these names, yet on re-install, I entered my first and surname, and all the rest auto filled in correctly.

    d) press ctrl+Alt+T and type
    Code:
    gedit
    Type or copy and paste the 3 names into the text editor, and save as 'ubuntu re-install info' (add this guide and other resource links below, before printing).
    (By the way..... at re-install, you MUST use the same password that you normally use)

    That's the first mission critical step done ie. you have taken note of your 3 login names.

    2. Create a back up of the directory called 'home' (see 1. b) above)

    Note: you can backup this directory how you want: cloud, different partition, external drive OR not at all if your data has no value to you. The backup is done in case something goes wrong, like a power cut etc.

    Repeat 1. b) above and Rclick on 'home' and choose 'properties'.
    Take note of how much disk space is being used.

    Let's say it's 15Gb (cos you have loads of photos etc.)
    You are gonna need a storage device with that much space available and more.
    (I used the hard drive from my last laptop, slipped into a case with a usb cable - cost only 15€)

    Repeat 1. b) above
    but now on the left look under the title 'Devices'.
    For me I see 'System Reserved', Win7, Home_Data (where I keep my data), 16Gb Filesystem (old data I have kept)

    RClick on the usb hard drive icon (the icon should show the usb cactus sign) and choose properties.
    This will display the free space.

    Delete all the un-needed programs & files, to create the space you need.
    You could format the drive, using say 'gparted' or 'disk utility'
    [use either disk utility to examine your pc hard drive so that you know where your ubuntu '/' partition is (you need to know this during install)]

    Click top right corner of desktop and choose system settings, backup.
    Configure it to back up to your usb drive (or wherever), and make the backup.
    Backing up say 15Gb of data takes time, for me it was around 30min (I guess) but it looks after itself.

    3. Install ubuntu from your install disk (or first download and burn a new disk)

    Insert your disk
    and cancel any autoplay dialogue.

    Re-start your pc, and enter your bios (for me I press F2 at start of boot).
    Find the section that lists the boot order, check the top of the list is cd/dvd drive (or move it to the top), save & exit

    The pc will then boot to 'try ubuntu' or 'install' - choose install, then choose 'do something else'.
    (At this point you will need to know which is your ubuntu '/' partition - see the screen shot below - mine is 2nd from the right, the farthest right is the /swap partition.)

    So you are now looking at a graphic of your hard disk partitions.
    Dclick on the one holding your ubuntu data, and in the next box that appears, choose 'use as' 'ext4 journaling file system', mount point '/', ok.
    You'll return to the graphic of your hard disk partitions, it will look something like the graphic below - BUT YOU DON'T TICK THE FORMAT BOX.

    Hit Install now.

    4. Follow the simple 'Install' steps:

    Enter your names and password (same as before), choose to update during install etc.

    (get on with another job, and in an hour it's done.)

    5. Reboot - install updates - install additional apps - Reboot.

    That's it done!!!!!!

    Resources:
    https://help.ubuntu.com/community/Boot-Repair If you lose your boot this repair can be downloaded using your 'try ubuntu' cd.
    https://help.ubuntu.com/community/DiskSpace Good info
    https://help.ubuntu.com/community/UbuntuReinstallation Good info
    Attached Images Attached Images
    Last edited by Ace.....; August 11th, 2013 at 05:23 PM. Reason: changed sudo to gksudo

  2. #2
    Join Date
    Jan 2010
    Beans
    93
    Distro
    Ubuntu

    Re: Guide How to re-install ubuntu keeping your data and settings

    keep sharing great tutorial dude

  3. #3
    Join Date
    Jun 2011
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Guide How to re-install ubuntu keeping your data and settings

    Thanks Geazzy for your appreciation,

    It kicked me into action, and I finally got around to formatting the guide, to improve its clarity.

    ____________________________________
    Re-install Ubuntu keeping your data & settings "re-install rather than fix"
    Solve Chrome display issues ¬¬¬ GParted sees NO DATA! "Solved"

  4. #4
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Guide How to re-install ubuntu keeping your data and settings

    If I may, you should change sudo nautilus to gksudo nautilus.
    https://help.ubuntu.com/community/Ro...Graphical_sudo
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests by PM, thanks |

  5. #5
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Guide How to re-install ubuntu keeping your data and settings

    Thread moved to Tutorials.
    Cheesemill

  6. #6
    Join Date
    Jun 2011
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Guide How to re-install ubuntu keeping your data and settings

    Quote Originally Posted by bapoumba View Post
    If I may, you should change sudo nautilus to gksudo nautilus.
    https://help.ubuntu.com/community/Ro...Graphical_sudo
    Thanks bapoumba,

    that change has been made.

    ____________________________________
    Re-install Ubuntu keeping your data & settings "re-install rather than fix"
    Solve Chrome display issues ¬¬¬ GParted sees NO DATA! "Solved"

  7. #7
    Join Date
    Feb 2008
    Beans
    38
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Guide How to re-install ubuntu keeping your data and settings

    First I would recommend that you have a problem that you ABSOLUTELY can not live with before you re-install.

    I did a re-install and encountered a HOST of problems that did not previously exist. Among them - mouse did not work, No HDMI, NO Unity 3D and more. A second re-install, which involved formatting of the partition, solved many of those.

    Of course I had to reload MANY aps, some of which required compiling and downloading various files. In addition, my former problem i thought i could not live with was not solved either! Now if only I can get the damed HDMI and the spell checker to work. Did not have that problem before, at least I don't remember if I did, or if I did, how I solved it.

    It is easy to forget just how many apps and the problems you had to solve (and the solutions) to get them to run correctly.

    Re-installing may be a quick fix, but it can also become a real time suck. And it is no sure thing that your original problem will be solved.

    Often, it is better to live with the devil you know.

    Good luck
    Last edited by FuzzyFeat; August 14th, 2013 at 09:19 PM.
    There is no sense in having a plan if you're not going to pretend to follow it.

  8. #8
    Join Date
    Jun 2011
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Guide How to re-install ubuntu keeping your data and settings

    Thanks for the response Fuzzy,
    It sounds like you've had a bad time of it.

    Can I re-phrase your opening line:


    Quote Originally Posted by FuzzyFeat View Post

    I would recommend that you only perform a re-install, IF the problem that you have, 'cannot be lived with'.

    I did a re-install and encountered a HOST of problems that did not previously exist. Among them - mouse did not work, No HDMI, NO Unity 3D and more. A second re-install, which involved formatting of the partition, solved many of those.

    Of course I had to reload MANY aps, some of which required compiling and downloading various files. In addition, my former problem i thought i could not live with was not solved either! Now if only I can get the damed HDMI and the spell checker to work. Did not have that problem before, at least I don't remember if I did, or if I did, how I solved it.

    It is easy to forget just how many apps and the problems you had to solve (and the solutions) to get them to run correctly.

    Re-installing may be a quick fix, but it can also become a real time suck. And it is no sure thing that your original problem will be solved.

    Often, it is better to live with the devil you know.

    Good luck
    Response

    I think your story is a valuable cautionary tale.... though, extremely difficult to convert completely into hard advice.
    I have no idea how many similar problem instances might potentially exist, after performing what is a complete re-install (other than your data).

    However, I will PM YannBuntu, who may recognise a fundamental problem, that might cause the procedure to fail.

    You are the first to provide feedback on a failed re-install.
    Let's hope that the problem continues to be rare.
    Last edited by Ace.....; March 25th, 2014 at 01:13 AM.
    ____________________________________
    Re-install Ubuntu keeping your data & settings "re-install rather than fix"
    Solve Chrome display issues ¬¬¬ GParted sees NO DATA! "Solved"

  9. #9
    Join Date
    Dec 2013
    Beans
    6

    Re: Guide How to re-install ubuntu keeping your data and settings

    You can use Aptik to backup software too.
    http://www.omgubuntu.co.uk/2014/01/r...-fresh-install

  10. #10
    Join Date
    Aug 2014
    Beans
    1

    Re: Guide How to re-install ubuntu keeping your data and settings

    Quote Originally Posted by ansari.ibrahim1 View Post
    You can use Aptik to backup software too.
    http://www.omgubuntu.co.uk/2014/01/r...-fresh-install
    Thanks for this info!! I was looking for that tool cuz I heard about it somewhere but could not remember the name. But do you know how "successful" this soft is?

    I have installed over many years so much soft like cinelerra, googleEarth, skype, vmware, netfabb, darktable, insane_bump ... that I really try to avoid a reinstallation. (it would take me days ^^)

    Greetings

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •