Page 1 of 2 12 LastLast
Results 1 to 10 of 22

Thread: Replacing ubuntu files

Hybrid View

  1. #1
    Join Date
    Jun 2010
    Beans
    64
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Replacing ubuntu files

    Hello,
    So heres the story. I was messing around and ****ed up ubuntu, and nothing functions properly now..
    Is there a way I can reinstall ubuntu and keep my current configuration and files.. drivers and such.
    because backups not a option..
    thanks
    Hear the sound of swords fulfill the night.
    Feel the winds of death on your skin.
    See the arrows fly, flaming in the sky.
    Hear the screams of men, as they die.

  2. #2
    Join Date
    Oct 2009
    Location
    Los Angeles, CA
    Beans
    380
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Replacing ubuntu files (I ****ed up)

    When you installed Ubuntu the first time, did you set up a separate /home partition, or did you install Ubuntu into one partition? If you have a separate /home partition, all you have to do is reinstall the OS into the / partition without formatting the /home partition. This will keep all your config and data files (you will have to reinstall all the programs for which you have config files, of course).

    If you didn't set up separate / and /home partitions, my recommendation is to use this opportunity to just start from scratch and reinstall Ubuntu with separate / and /home partitions.
    Main: Intel Core i7 920 D0 @ 4.0GHz | Asus P6X58D Premium | 6 x 2GB Mushkin Redline 1600 7-8-7-24 | EVGA GeForce GTX 560 Ti | 6 x 1TB WD Caviar Black | Mint 15 Cinnamon / OS X 10.7.3
    Portable: Dell Mini 9 | OS X 10.6.7

  3. #3
    Join Date
    Jun 2010
    Beans
    64
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Replacing ubuntu files (I ****ed up)

    Quote Originally Posted by Ginsu543 View Post
    When you installed Ubuntu the first time, did you set up a separate /home partition, or did you install Ubuntu into one partition? If you have a separate /home partition, all you have to do is reinstall the OS into the / partition without formatting the /home partition. This will keep all your config and data files (you will have to reinstall all the programs for which you have config files, of course).

    If you didn't set up separate / and /home partitions, my recommendation is to use this opportunity to just start from scratch and reinstall Ubuntu with separate / and /home partitions.
    uhh..
    Now to think of it.. don't remember, how to find out?
    Hear the sound of swords fulfill the night.
    Feel the winds of death on your skin.
    See the arrows fly, flaming in the sky.
    Hear the screams of men, as they die.

  4. #4
    Join Date
    Oct 2009
    Location
    Los Angeles, CA
    Beans
    380
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Replacing ubuntu files (I ****ed up)

    Quote Originally Posted by OpressedCalamity View Post
    uhh..
    Now to think of it.. don't remember, how to find out?
    If you haven't already, fire up Synaptic and install GParted (Gnome Partition editor). GParted will tell you exactly what drives you have installed and how each drive is partitioned. If you have / and /home on the same partition, GParted will show that you only have one partition. If you have it on separate partitions, GParted will show that you have two.

    Most likely you only have one, since having a separate /home partition is not the default setting.

    This is what my partition scheme looks like under GParted:
    Attached Images Attached Images
    Main: Intel Core i7 920 D0 @ 4.0GHz | Asus P6X58D Premium | 6 x 2GB Mushkin Redline 1600 7-8-7-24 | EVGA GeForce GTX 560 Ti | 6 x 1TB WD Caviar Black | Mint 15 Cinnamon / OS X 10.7.3
    Portable: Dell Mini 9 | OS X 10.6.7

  5. #5
    Join Date
    Oct 2004
    Location
    Hockeytown, MI
    Beans
    561
    Distro
    Ubuntu

    Re: Replacing ubuntu files (I ****ed up)

    Quote Originally Posted by Ginsu543 View Post
    When you installed Ubuntu the first time, did you set up a separate /home partition, or did you install Ubuntu into one partition? If you have a separate /home partition, all you have to do is reinstall the OS into the / partition without formatting the /home partition. This will keep all your config and data files (you will have to reinstall all the programs for which you have config files, of course).

    If you didn't set up separate / and /home partitions, my recommendation is to use this opportunity to just start from scratch and reinstall Ubuntu with separate / and /home partitions.
    Why? He can just reinstall over his broken install and the installer will preserve his information in /home. (Unless by ****ed up he means he deleted everying in ~ too)

  6. #6
    Join Date
    Jul 2007
    Location
    Nashville TN
    Beans
    130
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Replacing ubuntu files (I ****ed up)

    Whiprush,

    If you perform a live version update (e.g. online) your user settings and installations are preserved. But in my experience, re-installing Ubuntu from an installation CD over an existing Linux installation overwrites everything, including the /home folder if it's on the same partition. I tried a reinstall once and ended up having to re-install all my user-selected applications, and I'm glad I archived my Documents folder to CDs.

  7. #7
    Join Date
    Oct 2004
    Location
    Hockeytown, MI
    Beans
    561
    Distro
    Ubuntu

    Re: Replacing ubuntu files (I ****ed up)

    The installer doesn't do this by default (and hasn't done this in a long time) unless you check the format box on the partition to format explicitly when you reinstall.

    (I do have seperate / and /home, but that's because I have 2 drives, there's no real advantage to having them separated if you have only one drive, which is why it's the default behavior.)

  8. #8
    Join Date
    Jul 2007
    Location
    Nashville TN
    Beans
    130
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Replacing ubuntu files (I ****ed up)

    whiprush,

    The Ubuntu guide page below kind of implies that reinstalling Linux will preserve the /home settings if they're on a separate physical -- as well as logical -- partition.

    https://help.ubuntu.com/community/Pa...ng/Home/Moving

    However, really, it's not clear to me why that should be true. Even if the system were on a separate physical drive, I don't see how a system re-installation would detect and integrate a pre-existing /home folder on a separate drive. I probably should reconsider all this. By all means, please free to drop here any links to reports of actual experiences with having separate system and /home partitions. (I haven't found any so far.) Or direct me to an appropriate discussion. This discussion is off-topic here. (Apologies to OppressedCalamity and Ginsu543.)

  9. #9
    Join Date
    Jul 2007
    Location
    Nashville TN
    Beans
    130
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Replacing ubuntu files (I ****ed up)

    Oppressed, what does "nothing works now" mean? You can't boot up and using another machine to post, or are logging in to the desktop, but getting error messages? If it's the second, MAYBE... you could run Synaptic Package Manager and from the menu select Edit > Repair Broken Packages.

    If your $HOME is on a different logical partition it will appear as on a separate drive in Nautilus. The installation default in system and user in one partition, I'm afraid.

  10. #10
    Join Date
    Jun 2010
    Beans
    64
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Replacing ubuntu files (I ****ed up)

    Quote Originally Posted by rtimai View Post
    Oppressed, what does "nothing works now" mean? You can't boot up and using another machine to post, or are logging in to the desktop, but getting error messages? If it's the second, MAYBE... you could run Synaptic Package Manager and from the menu select Edit > Repair Broken Packages.

    If your $HOME is on a different logical partition it will appear as on a separate drive in Nautilus. The installation default in system and user in one partition, I'm afraid.
    Hey good idea thanks, my retardation is something you have to live with..
    Hear the sound of swords fulfill the night.
    Feel the winds of death on your skin.
    See the arrows fly, flaming in the sky.
    Hear the screams of men, as they die.

Page 1 of 2 12 LastLast

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
  •