LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-24-2005, 08:28 PM   #1
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
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
 
Old 03-25-2005, 04:26 AM   #2
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
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.
 
Old 03-25-2005, 06:28 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,050

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
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.
 
Old 03-25-2005, 08:26 AM   #4
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Original Poster
Rep: Reputation: 30
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.
 
Old 03-25-2005, 03:23 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,050

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
Quote:
Originally posted by audibel
As far as reinstalling grub, when I remvove grub and then reinstall, there is no config interface brought up.
You have successfully re-installed grub, and when you boot, it comes up to a grub prompt ??.

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.
 
Old 03-26-2005, 07:08 AM   #6
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Original Poster
Rep: Reputation: 30
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.
 
Old 03-26-2005, 07:28 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,050

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Switching to LILO from Grub t-peters1975 Slackware 6 08-23-2004 01:05 PM
Switching to GRUB from LILO tjtoed Linux - Software 4 11-01-2003 11:57 PM
Switching from LILO to GRUB magnusprime Mandriva 2 09-10-2003 05:09 AM
Grub problem switching Win2K/RedHat7.2 schuller Linux - Software 3 02-19-2002 07:59 PM


All times are GMT -5. The time now is 10:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration