Re: Problems reinstalling grub/lilo (they always hang at boot time ...)



Douglas Mayne wrote:

On Tue, 25 Apr 2006 08:55:41 +0200, Olaf wrote:

Douglas,

I'm pretty sure I did not change anything in the /boot/grub directory. I
actually had backups of the bootsectors (first 512 byte of the harddisks)

Do you mean the bootsector of a partition or the MBR of the disc? The
first 512 bytes of the entire disk is the MBR (master boot record).

Yes this is what I am referring to.

and they were unaltered (or do these only contain the partition table?).

The _MBR_ of a disk contains id signatures, boot code, and space to define
four primary partitions.

The _bootsector of a partition_ contains id signatures, boot code, and
filesystem parameters.

Which of these did you compare and verify they had been unaltered?

I only compared the MBRs of the disks with the backups that I had.

I did reinstall the files in the /boot/grub directory via grub-install
but the loader still hangs.

Do the "stage" files exist at the /boot/grub directory? Does grub-install
report any errors? I looked closer at your first post, and you say that
/dev/hdb1 is a boot partition; therefore, look for the grub directory
relative to /dev/hdb1 (/grub, not /boot/grub). BTW, what environment is
available when you boot with the rescue CD? Are you working directly with
your setup, or is it using a "live CD" where you have to manually mount
your partitions, etc.

Yes the stage file exist in the /boot/grub (or /grub from /dev/hdb1 point of
view). Is there anyway I can verify that they are ok (e.g. calculating a
checksum or something similar).

I am using a live CD (SysRescCD) and I need to mount my partitions.


I used to load grub from the XP bootloader (and not the other way around
as you suggested),

OK, the fact you can't boot XP any more is a good clue to what is broken
on your system. Because XP's loader is set to control the bootup, is the
Windows menu displayed which offers choices to start XP or Ubuntu?

Yes I get the choice menu and I can select either OS, but as soon as I press
enter the computer hangs ...

but for now I'm happy if I can directly boot from the disk where the
grub boot loader is located (/dev/hdb).

<snip>

Note: comments inline.

Also, please don't top post replies.

Some readers don't support inlining :( e.g. google groups UI ...

.



Relevant Pages

  • Re: OT File recovery Software
    ... > I guess some of you never used the fix MBR command? ... > The Master Boot Record will be created when you create the first ... > partition on the hard disk. ... > first sector on the disk. ...
    (alt.med.fibromyalgia)
  • Re: Mbr messed up?
    ... can't boot up at all after coming out of hibernation. ... Looked at the MBR sector which seems to be ok ... The bootstrap program is in the first 460 ... > program reads the partition table to find out which partition is marked ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Portcullis Security Advisory 05-011 ACPI 1.6 BIOS
    ... Fdisk /MBR only replaces the boot code within the sector, ... change in any way the Partition Information Block. ... Portcullis Security Advisory 05-011 ACPI 1.6 BIOS ... zeroing out the MBR). ...
    (Bugtraq)
  • Re: OT File recovery Software
    ... I guess some of you never used the fix MBR command? ... The Master Boot Record contains the Partition Table for the disk and a small ... first sector on the disk. ...
    (alt.med.fibromyalgia)
  • Re: Problems reinstalling grub/lilo (they always hang at boot time ...)
    ... Do you mean the bootsector of a partition or the MBR of the disc? ... The _MBR_ of a disk contains id signatures, boot code, and space to define ...
    (comp.os.linux.setup)