OK, have a RedHat 7 system with a dying HD. So I ran Norton Ghost and copied everything over to a newer drive (same size, just newer). I've been hours on the 'Net and tried a number of different instructions on installign Lilo to the new HD so that it boots when moved from hdb to hda. Nothing seems to work.
Sorry, I haven't logged everything I've done, as I (silly me) kept hoping that *this time* something *would* work. But this shutting down every night to re-Ghost the drive to keep it current when I try something new is just silly. It seems to me that there has to be a pretty straight forward way of installing Lilo that I'm just not finding.
This is my last shot at doing it this way, I'm hoping someone has an idea.... My next move is to just build another server, and set everything up on that one...
I assume you want to copy hda to hdb then boot from hdb?
There are 2 ways I can think of:
1) Do a bit by bit copy of hda to hdb. I don't know about Norton's Ghost (used to use it but had some problems) but if you have a Linux rescue disk (I use Fedora Core 4's install DVD) you can boot Linux Rescue from CD/DVD and use the Linux dd command to copy one block device to the other: dd if=/dev/hda of=/dev/hdb bs=1M assuming hdb is at least as big in actual blocks. Then physically swap the drives or cable so that hda is now actually hdb and vice versa. Your "new" hda should now boot just like the old one used to.
2) Copy the info and / or partitions you want to hdb, then install GRUB on hda. GRUB is very flexible in terms of boot options. If you are worried the drive will completely fail, install GRUB on floppy so you can boot off the floppy and use the boot menu on the floppy to boot from hdb (assuming your BIOS won't let you directly boot from hdb).
rayhenry@autoclubs.ca wrote:
OK, have a RedHat 7 system with a dying HD. So I ran Norton Ghost and copied everything over to a newer drive (same size, just newer). I've been hours on the 'Net and tried a number of different instructions on installign Lilo to the new HD so that it boots when moved from hdb to hda. Nothing seems to work.
Sorry, I haven't logged everything I've done, as I (silly me) kept hoping that *this time* something *would* work. But this shutting down every night to re-Ghost the drive to keep it current when I try something new is just silly. It seems to me that there has to be a pretty straight forward way of installing Lilo that I'm just not finding.
This is my last shot at doing it this way, I'm hoping someone has an idea.... My next move is to just build another server, and set everything up on that one...
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
On 7-Apr-06, at 6:37 PM, rayhenry@autoclubs.ca wrote:
OK, have a RedHat 7 system with a dying HD. So I ran Norton Ghost and copied everything over to a newer drive (same size, just newer). I've been hours on the 'Net and tried a number of different instructions on installign Lilo to the new HD so that it boots when moved from hdb to hda. Nothing seems to work.
Sorry, I haven't logged everything I've done, as I (silly me) kept hoping that *this time* something *would* work. But this shutting down every night to re-Ghost the drive to keep it current when I try something new is just silly. It seems to me that there has to be a pretty straight forward way of installing Lilo that I'm just not finding.
This is my last shot at doing it this way, I'm hoping someone has an idea.... My next move is to just build another server, and set everything up on that one...
We use G4U for all our ghosting needs.
Maybe it will work better for you.
shawn
Well, this is definitely one of the trickier things to do with LILO. If you had a new enough version of Ghost (7.5+) and were running plain ext2fs, it should have automatically fixed LILO for you. However, either that didn't work for you, or you didn't realize it might and overwrite it right away... Be aware that if you ghosted with hdb in CHS (or LBA, or BitShift) mode, you must keep it in that same mode when you move it to hda. In any event, you'll find the info you need to fix this at: http://tldp.org/HOWTO/LILO-4.html ("Installing hdc to Boot as hda and Using bios=") http://tldp.org/HOWTO/LILO-4.html
-Adam
rayhenry@autoclubs.ca wrote:
OK, have a RedHat 7 system with a dying HD. So I ran Norton Ghost and copied everything over to a newer drive (same size, just newer). I've been hours on the 'Net and tried a number of different instructions on installign Lilo to the new HD so that it boots when moved from hdb to hda. Nothing seems to work.
Sorry, I haven't logged everything I've done, as I (silly me) kept hoping that *this time* something *would* work. But this shutting down every night to re-Ghost the drive to keep it current when I try something new is just silly. It seems to me that there has to be a pretty straight forward way of installing Lilo that I'm just not finding.
This is my last shot at doing it this way, I'm hoping someone has an idea.... My next move is to just build another server, and set everything up on that one...
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
Thanks for the input. Got it going, tried again the easy way and it worked this time. Think perhaps there may be a bad sector on the floppy I was using, can't think of anything else it could have been...
What I did was create a boot disk, shut the system down, swap out the old HD with the ghosted one, then botted using the floppy. Then just ran lilo, and away it went...
First time I tried that resolution, it didn't want to boot from the floppy. Second time it did. Go figure.
Anyways, it's fixed now. For my next trick, I'm going to see if I can get software raid going, as RH 7 doesn't like my Promise card....