Results 1 to 4 of 4

Thread: Drive failing / system setup

  1. #1
    Join Date
    Mar 2007
    Location
    Delaware, USA
    Beans
    682
    Distro
    Ubuntu 12.04 Precise Pangolin

    Drive failing / system setup

    I'm currently running 12.04. The drive I use for /, /home and swap is failing and I'm having and more and more crashes. I'm going to be replacing the drive soon, but I want to know what my options are for reinstalling my system. I would like to avoid running through the setup process again and installing/configuring all my software that I'm currently using. Is there a way to backup my old system as a whole and basically transfer it to the new drive? Any suggestions are welcome. TIA.
    Last edited by prem1er; January 29th, 2014 at 02:07 PM.
    Asus
    Intel Core 2 Duo 2.26 GHz - 4GB DDR2
    1 GB ATI Mobility Radeon HD 3650
    Atheros AR928X Wireless

  2. #2
    Join Date
    Dec 2009
    Beans
    167

    Re: Drive failing / system setup

    I've been using successfully fsarchiver to backup my OS Linux partitions and it doesn't have any limits on the destination's partition's size. Assuming your OS/data is on /dev/sda1 and you want to back it up to a file named "distro_name.fsa" on /mnt/backup:

    Code:
    sudo fsarchiver savefs /mnt/backup/distro_name.fsa /dev/sda1
    And restoring it:

    Code:
    sudo fsarchiver restfs /mnt/backup/distro_name.fsa id=0,dest=/dev/sda1
    http://www.fsarchiver.org/QuickStart
    http://crunchbang.org/forums/viewtopic.php?id=24268

    I've also seen Clonezilla recommended, but it needs to have the same or bigger destination partition size than the original (source) one.
    Lastly you can just backup your /home directory, and certain files from /etc, /var and a few more, can't remember all, and also a list of all of your installed programs and start fresh again.

  3. #3
    Join Date
    Mar 2007
    Location
    Delaware, USA
    Beans
    682
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Drive failing / system setup

    This is exactly the information I was looking for. Thank you. I'll look into what works best for me.

    Edit: What about grub? Do I need to install again?

  4. #4
    Join Date
    Dec 2009
    Beans
    167

    Re: Drive failing / system setup

    Yes, simply run Boot-Repair (Live CD) after restoring the OS to the new partition. From the fsarchiver's FAQs:

    Can the restored file-system be a boot filesystem (like the root partition) ?

    Yes, FSArchiver can backup the root file-system, but you may have to run grub-installer again after you restore the file-system where the boot-loader (grub) is installed. FSArchiver has been successfully able to save and restore the root file-system of a Fedora-8 with SELinux on it as you can see in the status page.
    http://www.fsarchiver.org/FAQ

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
  •