switching grub from one hd to another...
I just moved everything from one harddrive to another, but grub still reads from the first, how do I make the MBR read the menu.lst from the second harddrive?
And a second question if you're reading, is there a good application that makes a recovery cd? and if so how to use... Thanks, Gary |
Can you boot into your other hard drive at all? Do you have a live cd or something to boot into your linux system. You basically need to reinstall grub and point it in the right direction. Look at partimage for backing up.
|
Presumably you aren't moving the disks around - i.e. the original disk is still hd0.
If so, merely re-install grub to the MBR (of hd0, by definition) with the root pointing to a directory (usually / or /boot) on hd1. Don't know how Debian handles such things, but from the grub point of view, all this is simple to achieve. As for recovery, I thought all distros did it from the install CD - or one of them for the mega-distros. |
Thanks for the responses... The Debian discs if there is a recover mode is not mentioned when they bootup, Everything from the discs leads to installation, the best I can get it a shell, but I can't mount any of my devices. As far as reinstalling grub, when I remvove grub and then reinstall, there is no config interface brought up. I'm running debconf grub right now, whether or not that will do anything I don't know, it's been probing devices for a while now.
|
Quote:
If so, then good. Looks like you don't have a grub.conf - not surprisingly. At the prompt, enter all the commands you would normally have in the grub.conf, one line at a time - hitting enter after each line. Only the releveant lines for the system of interest to be entered - skip the splash, and any other systems, and comments of course. When finished, enter boot on a line by itself and hit enter. Should be flying. Set up a grub.conf - should be a grub.conf.example shipped I think, and you're away. Next time do grub before you blow everything away. ;) |
Oh you misunderstood, I didn't blow it away, grub was just using my menu.lst from the other harddrive, in any case, I just had to run grub-install from the second harddrive and it worked. I don't have grub.conf, that's a lilo thing I think.
As far as the recovery disk, I just wanted to know, just in case. |
Glad to hear it all came good. As for grub.conf, have a look at another post of mine here.
Hopefully will convey the relationship. |
All times are GMT -5. The time now is 09:22 AM. |