Running from a 'copy' harddisk containing Linux

Posted on 2004-11-23
Last Modified: 2013-12-15
Hi there,

My Linux PC has recently crashes and I have to move the harddisk -- containing the Linux OS -- to another PC, and try to restart it again. Before I installed the harddisk on another PC, I had made a backup, copy of the harddisk using the application 'Drive Image'.

When I start the PC with the original harddisk, the Linux recognized the hardware differences and it runs perfectly; but not the copy.

When I try to start the PC using the copy, I only get '>Li'. I guess it is from LILO. I don't understand much about MBR, but I think it has to do with MBR.

My question is, how can I start my PC using the 'copy' harddisk?

Question by:huferry
    LVL 87

    Expert Comment

    This is a problem with lilo and diskimaging software. One reason why I always try to install Grub.
    You could try booting with a knoppix CD and then installing Grub by hand from there.
    has a good manual in which installing Grub (or Lilo) is explained. Knoppix by the way has  Partimage
    included in it's package. You can use this to create backup image files of linux partitions. If you restore
    a partimage file later just make sure you restore it to a partition of the same size as the original partition.
    LVL 40

    Accepted Solution

    The various windows drive image products don't have a stellar reputation when dealing with Linux systems. In this case it has at least messed up the MBR, but the damage could be worse. To attempt a repair of your copy you'll need to boot int rescue mode from a  CD and reinstall the boot loader. Assuming this is the first IDE drive and that partition 1 contains Linux the process would look something like:

    # mkdir /mnt/sys
    # mount /dev/hda1 /mnt/sys
    # chroot /mnt/sys
    # lilo -v
    LVL 12

    Expert Comment

    jlevie gave you the answer, below just give you some more info about how to recover the LILO :)

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now