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

Thread: Hard drive failure is imminent! How do I back everything up, including what repos/packages, etc?

  1. #1

    Default Hard drive failure is imminent! How do I back everything up, including what repos/packages, etc?

    I just got a bios message: "Hard disk failure is imminent! Please back up your hard disk and have it replaced!"

    So now I'm backing everything up but I've got tons of repos added, tons of packages installed, apps, etc and I have no idea how I figure out what they all are and how to properly back them up. I need to also back up my virtual machines. Can someone tell me how to do this?

    Thanks!

  2. #2

    Default Re: Hard drive failure is imminent! How do I back everything up, including what repos/packages, etc?

    Hello 6tr6tr,

    Quote Originally Posted by 6tr6tr
    I just got a bios message: "Hard disk failure is imminent! Please back up your hard disk and have it replaced!"

    So now I'm backing everything up but I've got tons of repos added, tons of packages installed, apps, etc and I have no idea how I figure out what they all are and how to properly back them up. I need to also back up my virtual machines. Can someone tell me how to do this?
    Just to make sure you have already got data backups but you want backups of the repositories you have and which packages you've got installed.

    You can make a list of your repositories with this command:
    Code:
    zypper lr -u
    The -u argument will show the URI of the repository so you can enter this in YaST to add him.

    To make an file containing all the installed packages you start YaST->Software->Software Management.
    Select "File" on top of the window and select Export.
    This will generate a file containing all the user installed packages.
    When you need to import them you can simply start Software Management again and select File->Import.

    Remember that the file only contains the user installed packages so I recommend you only use this file on a system with the same openSUSE version.

    I'm not sure how to make a backup of your virtual machines.
    If you use VirtualBox you can simply make an backup of your ~/.VirtualBox folder.
    And on a new system place this folder back, make sure you've got VirtualBox installed and it should work.

    Best of luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

  3. #3
    Carlos E. R. NNTP User

    Default Re: Hard drive failure is imminent! How do I back everything up,including what repos/packages, etc?

    On 2010-09-17 17:06, 6tr6tr wrote:
    >
    > I just got a bios message: "Hard disk failure is imminent! Please back
    > up your hard disk and have it replaced!"


    run "smartctl --health /dev/yourdevicename" and "smartctl -a /dev/yourdevicename", post the result here.

    > So now I'm backing everything up but I've got tons of repos added, tons
    > of packages installed, apps, etc and I have no idea how I figure out
    > what they all are and how to properly back them up. I need to also back
    > up my virtual machines. Can someone tell me how to do this?


    Just copy everything, file by file, to the same destination on another disk. Use rsync. Partition
    and format it first in any layout you like (or the same layout as the original).

    Or image the disk to another one big enough, as image file. This disk is not the replacement disk,
    but a fast place to make a backup on a hurry. Use dd or dd-rescue (check the name).

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" GM (Minas Tirith))

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,521

    Default Re: Hard drive failure is imminent! How do I back everything up, including what repos/packages, etc?

    Ouch

    VM's will be in their own files where ever you put them. If you use VirtualBox I believe it defaults to you home directory. I have a special partition that I always use just for VM files.

    Use Clonezilla or other image type backup to make images of the partitions.

    Note when restoring to a new drive you will need to be able to boot from an external Linux disk so you can edit the /boot/grub and /etc/fstab files to point to the new drive name.

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,079
    Blog Entries
    15

    Default Re: Hard drive failure is imminent! How do I back everything up,including what repos/packages, etc?

    Quote Originally Posted by 6tr6tr
    I just got a bios message: "Hard disk failure is imminent! Please back
    up your hard disk and have it replaced!"

    So now I'm backing everything up but I've got tons of repos added, tons
    of packages installed, apps, etc and I have no idea how I figure out
    what they all are and how to properly back them up. I need to also back
    up my virtual machines. Can someone tell me how to do this?

    Thanks!

    Implement your disaster recovery plan???

    First, I would check your drive with smartctl command to see what's up
    with the drive... overheating maybe? Download the manufacturers
    diagnostic tools to verify it as well.

    What drive and size is it?

    For your virtual machines you should just be able to drag/drop the
    directories (thats all I do with vmware workstation) but check for
    hidden files maybe. You could also bzip the directories up and
    drag/drop.

    Else I would pull the drive if it is going to fail and then connect up
    externally to do your recovery.

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (i586) Kernel 2.6.32.19-0.2-pae
    up 3 days 2:56, 2 users, load average: 0.00, 0.07, 0.12
    ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME


  6. #6

    Default Re: Hard drive failure is imminent! How do I back everything up,including what repos/packages, etc?

    Quote Originally Posted by malcolmlewis View Post
    Implement your disaster recovery plan???

    First, I would check your drive with smartctl command to see what's up
    with the drive... overheating maybe? Download the manufacturers
    diagnostic tools to verify it as well.

    What drive and size is it?

    For your virtual machines you should just be able to drag/drop the
    directories (thats all I do with vmware workstation) but check for
    hidden files maybe. You could also bzip the directories up and
    drag/drop.

    Else I would pull the drive if it is going to fail and then connect up
    externally to do your recovery.

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (i586) Kernel 2.6.32.19-0.2-pae
    up 3 days 2:56, 2 users, load average: 0.00, 0.07, 0.12
    ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME
    how do I connect externally to pull stuff off the drive?

  7. #7

    Default Re: Hard drive failure is imminent! How do I back everything up, including what repos/packages, etc?

    I turned off that computer (I did back up my most critical data first, but it's dual-boot with windows and I didn't get a chance to back up the windows stuff) and I want to figure out what steps to take before proceeding. Here's what I will do:

    1. Back up the data on the windows partition

    2. Back up the VirtualBox disks
    (From what I understand, it's not as simple as copying the ".vdi" files. I see a lot of diff. suggestions on what to do. Any idea which is the right one?)
    How do I backup/restore my VDIs - Hands-On (View topic) • virtualbox.org
    How To: Properly Backup a VirtualBox Machine (.VDI) | The Linux Daily
    How to copy and transfer or backup a Virtualbox Virtual Machine .vdi - my-guides.net

    3. Backup the repos, installed packages
    a. zypper lr -u
    b. YAST -> Software -> File -> Export

    (I'm thinking that I might install opensuse 11.3 on the new HD. But since I have 11.2 on the current one, can I just change all the 11.2 references to 11.3 for the packages/repos?)

    4. Install openSUSE on the new HD (is there anything I need to do to make this work?)

    5. Reinstall everything

  8. #8

    Default Re: Hard drive failure is imminent! How do I back everything up, including what repos/packages, etc?

    Hello 6tr6tr,

    Quote Originally Posted by 6tr6tr
    3. Backup the repos, installed packages
    a. zypper lr -u
    b. YAST -> Software -> File -> Export

    (I'm thinking that I might install opensuse 11.3 on the new HD. But since I have 11.2 on the current one, can I just change all the 11.2 references to 11.3 for the packages/repos?)
    In most cases it will work, but there could be an 11.3 repository missing a package you had on 11.2.

    Quote Originally Posted by 6tr6tr
    4. Install openSUSE on the new HD (is there anything I need to do to make this work?)
    Well it's just like a fresh install.
    The only things are when you put back your home folder backup it could contain outdated config files for some applications.

    Best of luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,079
    Blog Entries
    15

    Default Re: Hard drive failure is imminent! How do I back everything up,including what repos/packages, etc?

    Quote Originally Posted by 6tr6tr
    how do I connect externally to pull stuff off the drive?
    Hi
    I have one of those USB->SATA/IDE(44/40) converters (comes with a power
    brick) to connect drives when things like this happen...

    Have you verified the issue with the drive, over temperature, failing
    sectors etc?

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.19-0.2-default
    up 1 day 2:41, 2 users, load average: 0.18, 0.10, 0.16
    GPU GeForce 8600 GTS Silent - Driver Version: 256.53


  10. #10

    Default Re: Hard drive failure is imminent! How do I back everything up, including what repos/packages, etc?

    Quote Originally Posted by Edward_Iii View Post
    Hello 6tr6tr,


    In most cases it will work, but there could be an 11.3 repository missing a package you had on 11.2.


    Well it's just like a fresh install.
    The only things are when you put back your home folder backup it could contain outdated config files for some applications.

    Best of luck!
    Right but someone mentioned something about having to prepare GRUB for the new HD. Is this correct?

Page 1 of 2 12 LastLast

Posting Permissions

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