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

Thread: Restore Ubuntu Server 10.04

  1. #1
    Join Date
    Jan 2008
    Location
    Wolverhampton, UK
    Beans
    40
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question Restore Ubuntu Server 10.04

    Hi guys,

    I have been backing up the whole of my home server (Ubuntu 10.04) every day using 'tar', so now that my server's hard disk has gone down I'm in good shape to recover my working system to a new hard drive from my latest backup, right?

    Well all attempts so far have failed!

    Can anyone show me a 'howto' to restore my system?

    Many thanks,
    Ambre

  2. #2
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Restore Ubuntu Server 10.04

    You know that "after" you unoack the tar archive back onto the new drive, that you have to install the grub bootloader right? Otherwise there is no bootloader in the mbr and it won't boot...

    Many instructions (search) here to do that from the LiveCD...

    Here's a howto. Skip to part 2:
    http://ubuntuforums.org/showthread.php?t=35087

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #3
    Join Date
    Jan 2008
    Location
    Wolverhampton, UK
    Beans
    40
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Restore Ubuntu Server 10.04

    I was aware that I needed to reinstall GRUB.

    That is the real sticking point. I have two CD's with 10.04 on them, one the server version the other the desktop version. They are proving to be useless. Depending on what I do, and believe me I have tried everything I can find on the 'net, the boot sequence either just locks up, exits to an initramfs prompt or exits to a grub prompt. I have even researched these options, but alas no joy.

    My system has now been down for more than a week and still no sign of a recovery.

    I really could do with practical advise from someone who has been in this situation.

    Regards
    Ambre

  4. #4
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Restore Ubuntu Server 10.04

    If I understand correctly, your machine won't boot with either desktop or server 10.04 disk? Perhaps it wasn't the hard disk that went bad but the motherboard or power supply. For instance, you are getting some power to boot, but not enough to completely power the motherboard to complete the boot sequence.

    Have you clean out the system and reseated everything? How old is the computer?
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  5. #5
    Join Date
    Jan 2008
    Location
    Wolverhampton, UK
    Beans
    40
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Restore Ubuntu Server 10.04

    It is not the machine.

    I can re-install 10.04 server from the CD and it will boot up and run - no problem. If I then recover my system from the tar backup, overwriting everything, it will no longer boot up and I am unable to repair GRUB.

  6. #6
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Restore Ubuntu Server 10.04

    Installing grub2 on the MBR is needed but it doesn't update grub.cfg. Your grub.cfg in the backup has the UUID of your old root partition, so it can't boot correctly. In my opinion this is the problem.

    After unpacking the backup, chroot into the root partition and try updating grub and then installing it on the MBR. If you are not familiar with the chroot procedure, let us know which is your root partition (and whether you have separate /boot partition or not) and we can help.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  7. #7
    Join Date
    Oct 2005
    Location
    INDY
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Restore Ubuntu Server 10.04

    Do your UUID's of your partitions match what is in your /etc/fstab?
    If they don't match, what grub is trying to boot won't be found.

    https://help.ubuntu.com/community/UsingUUID
    https://help.ubuntu.com/community/Fstab

    I don't know if that IS the problem but might be worth looking in to.
    Castles Made of Sand,
    Fall in the Sea,
    Eventually!

  8. #8
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Restore Ubuntu Server 10.04

    Quote Originally Posted by arpanaut View Post
    Do your UUID's of your partitions match what is in your /etc/fstab?
    If they don't match, what grub is trying to boot won't be found.

    https://help.ubuntu.com/community/UsingUUID
    https://help.ubuntu.com/community/Fstab

    I don't know if that IS the problem but might be worth looking in to.
    +1. Forgot to mention fstab too. You need to adjust the UUID in fstab but also in grub.cfg which is done automatically when running update-grub from chroot (running the command in terminal in live mode won't do it).
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  9. #9
    Join Date
    Jan 2008
    Location
    Wolverhampton, UK
    Beans
    40
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Restore Ubuntu Server 10.04

    Quote Originally Posted by darkod View Post
    +1. Forgot to mention fstab too. You need to adjust the UUID in fstab but also in grub.cfg which is done automatically when running update-grub from chroot (running the command in terminal in live mode won't do it).
    Thanks guys, I think you are close to the mark with your suggestions. Unfortunately, this old duffer does not have the knowledge to do these things on his own. Any chance of a step-by-step guide?

    I can start again. Do a fresh install of 10.04 server from the CD; restore my latest backup, then what?

    Forgot to mention: root partition is the first partition on the first drive. I did a simple install, no separate boot partition.
    Last edited by ambre; March 5th, 2013 at 12:12 AM.

  10. #10
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Restore Ubuntu Server 10.04

    Why fresh install? If you copied ALL of the root partition, you only copy it back to /dev/sda1 (first partition on first disk), and it should be fine. But only if you have the whole root in the backup.

    You will have to work from the live cd in live mode, because that allows you to boot the computer/server in live mode and work on it.
    1. To get the UUID of the new /dev/sda1:
    Code:
    sudo blkid
    2. After you copy the files to sda1, to edit fstab with the new UUID:
    Code:
    sudo mount /dev/sda1 /mnt
    gksu gedit /mnt/etc/fstab (that's for GUI, for editing in terminal you can also use: sudo nano /mnt/etc/fstab)
    Replace the UUID string in the / line with the new UUID of sda1. Save and close the file.

    3. For chroot to try updating grub2, if you mounted sda1 at /mnt as I wrote above, continue in terminal:
    Code:
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /dev /mnt/dev
    sudo mount --bind /sys /mnt/sys
    sudo chroot /mnt
    Now you are like inside the installation:
    Code:
    update-grub (inside chroot you are like root so you don't need sudo in front of commands)
    grub-install /dev/sda (to add grub2 to sda MBR)
    Exit chroot and unmount all:
    Code:
    exit
    sudo umount /mnt/sys
    sudo umount /mnt/dev
    sudo umount /mnt/proc
    sudo umount /mnt
    Reboot and keep fingers crossed.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

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
  •