Re: MBR Confusion



On Sat, Apr 07, 2007 at 01:30:57AM +0200, Matt Miller wrote:
I've attached an external hard drive to my etch AMD64 box, booted my
AMD64 box into the debian installer, and installed a fresh i386 etch
onto the external drive.

Now I can't boot my box without the external drive attached, because
grub complains with "error 21." I'm thinking that when the debian
installer made the external drive bootable with my new i386 etch some
stuff happened with the master boot record or something. Also, when I
put the external drive into my Pentium III box, nothing happens.
Apparently the right MBR stiff is not on there.

Anyway, I'm in a bit deep at this point. Hopefully there is some simple
way to prepare the external drive on my AMD64 box to be the internal,
bootable drive of my Pentium III, and to tell grub on my AMD64 box that
it doesn't need the external drive attached in order to boot.

Go ahead and laugh. Just give me some good advice when you're done.

I'll only laugh 'cause you told me to.

Lets clarify:

AMD64 box has an internal hard drive with Etch installed on it.
Should have grub in the mbr, with menu.lst on the
internal hard drive.

AMD64 box also has external drive with Etch installed on it.
Should have grub in its mbr, with menu.lst on the
external hard drive.

With external box attached, can get grub on the external drive
and it boots to the external drive OK.

Without external box attached, grub complains Error 21. pinfo
grub says error 21 means:
Selected disk does not exist. This error is returned if
the device part of a device- or full file name refers to
a disk or BIOS device that is not present or not
recognized by the BIOS system.

So the bios has changed how it accesses drives since you installed on
the external drive.

What does your bios show?

Can you boot from within the grub command line (read the grub manual)?

Can you boot the install CD is rescue mode and reinstall grub?

All with the external drive uninstalled.

Then put that external drive into the target box and do similar
incantations to get grub to work there too.

Its _probably_ safe to assume that all your stuff is still on the
drives, its just a booting/grub problem. Print out your
/boot/grub/menu.lst file so you know what grub is supposed to be trying
to do (and so you have all the kernel params you need), then try
entering it manually.

When I use grub interactivly, I don't bother with grub's root( command,
I just preface each with the full path including device. With grub's
tab-completion this is pretty simple.

Good luck.

Doug.




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: changing default os in grub
    ... > I've just installed a 2.6.8 kernel in Sarge and was ... > hoping the adjustment to grub would return Sarge to ... # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ... # This entry automatically added by the Debian installer for an existing ...
    (Debian-User)
  • Re: Dual-booting with GRUB, md, and hardware RAID
    ... machine to find the GRUB loader. ... motherboard, and not so much the installer per se, ... I've got four drives in my machine, sdc and sdd are a "hardware" RAID ... Thats the boot device priority. ...
    (Debian-User)
  • Re: Dual Boot Problem in Fedora 5
    ... something wrong in the FC5 installer. ... I guess manual grub boot ... used LILO instead of GRUB? ...
    (Fedora)
  • Dual-booting with GRUB, md, and hardware RAID
    ... This is probably a problem with my motherboard, and not so much the installer per se, but please let me know if you see away around this. ... I've got four drives in my machine, sdc and sdd are a "hardware" RAID via the nvidia controller running vista 64. ... At the end of the install process, GRUB gets installed into the MBR and the installer correctly ids Vista's presence, but on reboot, I end up right back in Vista. ... Since I'm using md, I didn't create an array for sda/sdb, and therefore only the windows array is available and is always marked for boot. ...
    (Debian-User)
  • Re: MBR Confusion? (was: Building i386 Disk on AMD64 -- chroot Fails: Exec format error)
    ... AMD64 box into the debian installer, and installed a fresh i386 etch ... Now I can't boot my box without the external drive attached, ...
    (Debian-User)