Re: Moved to new drive, Grub crashing.



On Mon, 05 Mar 2007 01:36:53 +0000, Noozer wrote:

Drive #1 is a 320gig drive partitioned as follows:
- Primary; Windows XP 70gig; sda1
- Extended; grub installed here sda2
- Logical; swap 2gig sda5
- Logical; /, boot, etc. installed here 50gig sda6
- Logical; /home 150gig sda7
- Primary; Fat32 data drive (empty) remainder sda3

Drive #2 is a 120gig drive partitioned as follows:
- Primary; Windows XP 58gig hda1
- Extended; grub installed here hda2
- Logical; swap 1.5gig hda5
- Logical; /, boot, etc. installed here 20gig hda6
- Logical; /home 32gig hda7

Drive 1 is a SATA drive with Windows XP and 64bit OpenSUSE 10.2 on it. This
was the only drive in my PC when the OS's were installed.

Drive 2 is a PATA drive with Windows XP and 32bit OpenSUSE 10.2 on it.
Again, this was the only drive in my PC when the OS's were installed.

I need to move my OpenSUSE 10.2 installation from drive 1 to drive 2. What
I've done is:

- delete all files on hda6 and hda7
- moved all files from sda6 to hda6 and from sda7 to hda7

...at this point, when I try to start SUSE, the PC displays "GRUB" and
stops.

I am using the NT boot loader to start Suse and have a copy of the first
512bytes of /sda2 stored on the XP drive as bootsec.lnx. The menu is
configured to use this file. This has worked fine in the past.

I'm assuming that since I have GRUB installed on hda2, and didn't replace
/hda2 with /sda2 that it won't work. I was hesitant to copy sda2 to hda2
because of any drive geometry that might be stored with grub. I've already
replaced /boot, so I don't have any of the files from the old /boot
directory on drive 2.

What do I need to do to get this system booting normally again?

You're booting from sda. Ntldr is finding grub stage 1, but you've removed
all of the major parts of grub, that stage 1 communicates with, from where
you told grub to find them. What did you expect would happen?

Now, you've got to tell grub where the rest of itself is. From the grub
prompt, enter the following commands;

grub> find /boot/grub/stage2 <Enter>

Grub will tell you where it is. Use that information to fill in the next
command;

grub> root (hd1,X) <Enter> # X is the partition number, it should be 5

Grub will check that all parts are present in the root location. When the
prompt comes back;

grub> setup (hd0,1) <Enter>

Grub will reinstall itself where Ntldr can find it.

grub> quit <Enter>

Reboot, and grub should find SUSE, however, if you did not edit
/boot/grub/menu.lst, and /etc/fstab to reflect the changes you've made, it
still won't boot.

In case you haven't figured it out yet, there are much better ways to do
this than the one you've chosen. :(

--
imotgm
"Lost? Lost? I've never been lost... Been a tad confused for a
month or two, but never lost."


.



Relevant Pages

  • Re: GRand Unified Boot misery and Fedora Core 4
    ... The closest activity to working in a server room was ... and supervising the installation of those systems. ... but in your own ineptitude using grub. ... "Lost? ...
    (linux.redhat.install)
  • Re: GRand Unified Boot misery and Fedora Core 4
    ... The closest activity to working in a server room was ... and supervising the installation of those systems. ... but in your own ineptitude using grub. ... "Lost? ...
    (comp.os.linux.setup)
  • Re: How to configure multi boot with IDE and SATA drive?
    ... I use GRUB in the SATA drive and my configuration is the following: ... title Windows XP ... Using boot order FD/CDROM/SATA/IDE configured in BIOS, ... "Lost? ...
    (comp.os.linux.setup)
  • Re: Migration from LILO to GRUB (Fedore Core 5)
    ... telling somebody how to install GRUB. ... command would be the command to use. ... In konqueror, and only konqueror, in the address bar type; ... "Lost? ...
    (comp.os.linux.misc)
  • Re: Boot Magic - Suse Linux 10.0
    ... bootloader in the root partition, and it is booted by another Linux distro ... The optimal grub installation depends on your ... "Lost? ...
    (alt.os.linux.suse)