Recover data with Linux

Discussion in 'Web Development and Programming' started by Brandon, Jun 14, 2010.

  1. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    Fix a broken Linux or Windows installation using your distro's command-line tools


    When you're used to the world of Windows or OS X, Linux can seem a little unforgiving.
    Not only does command-line access hand over the complete keys to the manor to any unwitting user with access to the administrator's account, there's rarely a safety net should things go wrong.
    Despite advances in most Linux desktops (where the ubiquitous Trashcan safely buffers deleted files), you get no such protection from most system specific configuration, installation and maintenance tools.
    And while it's rare for anything to go wrong without your direct input, some accidents do happen, especially if you enjoy tinkering with the latest distro release each month.
    But this being Linux, there's plenty you can do to dig yourself out of a hole, which is why it's always a good idea to have a repair-worthy distribution close to hand when performing configuration and installation tasks.
    One of the best developments in recent years has been the Live CD. These offer a fully functional Linux installation that runs from an optical drive. If you've got enough memory, you can even install new packages to the RAM disk just as you would when completing a standard installation.
    This makes a recent release of a Live CD-based installer like Ubuntu Jaunty the perfect system recovery tool. Not only does it include every package you might require, but because it runs from the optical drive rather than the hard drive, your data isn't touched and there's no chance files will be overwritten without direct input. It's the obvious place to start when you get stuck.

     
  2. Monster

    Monster Admin Talk Staff

    Joined:
    Apr 24, 2004
    Messages:
    515
    Likes Received:
    82
    Location:
    Germany
    Not bad, but some information in the article is hopelessly outdated.

    For instance, all 9.x and 10.x versions of Ubuntu ship with GRUB 2 now, which is a completely different beast than the older GRUB 1. GRUB 2 doesn't have a "menu.lst" file.

    Also, if you have multiple disk drives, it's a good idea to install GRUB to all of them, in case the boot order changes (or GRUB is wiped by Windows, then you can simply boot from a different drive to get back into Linux). To do that, simply type "sudo dpkg-reconfigure grub-pc" on a command line in Ubuntu and follow instructions (on a PC only; on a different platform, find your installed grub package by typing "dpkg -l | grep grub" on a command line).

    The process to repair GRUB using a Live CD is more complex than outlined in the article (which uses the GRUB command prompt, which might be a bad idea and is also an ages old method of doing things). A description can be found in the Ubuntu help pages on the Web (search for GRUB).
     
  3. Dan Hutter

    Dan Hutter aka Big Dan

    Joined:
    Jul 20, 2006
    Messages:
    1,412
    Likes Received:
    515
    Location:
    New York

Share This Page