Re: fresh install for dual boot with winxp : grub hangs

From: Phil Schaffner (Philip.R.Schaffner_at_NASA.gov)
Date: 07/01/04

  • Next message: Jonathan S: "RE: OT: Want to Build PC for Fedora Use - Hardware Questions Sound Card"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Thu, 01 Jul 2004 13:37:54 -0400
    
    

    On Thu, 2004-07-01 at 09:02 -0700, Hans Horn wrote:
    > All drives use 'auto' on everything in the bios.
    >
    > After making all the changes you recommend and issuing 'grub-install
    > /dev/hda', it tells me
    > '/dev/hdd3 does not have any corresponding BIOS drive'.
    >
    > Did I miss something?

    Apparently, but I fail to see it. There's obviously still a reference
    to hdd somewhere. ???

    >
    > here's what fdisk tells me now and the content of the few files that I have
    > edited:
    >
    > ------------------------------
    > fdisk /dev/hda <p>
    >
    > Disk /dev/hdb: 200.0 GB, 200049647616 bytes
    > 150 heads, 63 sectors/track, 41346 cylinders
    > Units = cylinders of 9450 * 512 = 4838400 bytes
    >
    > Device Boot Start End Blocks Id System
    > /dev/hda1 1 991 4682553+ 1b Hidden W95 FAT32
    > /dev/hda2 * 991 41346 190680210+ 7 HPFS/NTFS
    >
    > ------------------------------
    > fdisk /dev/hdb <p>
    >
    > Disk /dev/hdb: 46.1 GB, 46115758080 bytes
    > 16 heads, 63 sectors/track, 89355 cylinders
    > Units = cylinders of 1008 * 512 = 516096 bytes
    >
    > Device Boot Start End Blocks Id System
    > /dev/hdb1 85282 89346 2048287+ 82 Linux swap
    > /dev/hdb2 1 50793 25599640+ c W95 FAT32 (LBA)
    > /dev/hdb3 * 50793 85282 17382330+ 83 Linux

    Pretty odd partition table. Start block of each partition should
    generally be one greater than the end block of the previous one, but
    have seen cases where they are the same - apparently the partitions are
    not on cylinder boundaries - possibly problematic. The first partition
    generally starts at the beginning of the disk with cylinder 1, again odd
    but not necessarily illegal.

    > ------------------------------
    > /boot/grub/device.map:
    >
    > (fd0) /dev/fd0
    > (hd0) /dev/hdb
    > (hd1) /dev/hda

    This should be:

    (fd0) /dev/fd0
    (hd0) /dev/hda
    (hd1) /dev/hdb

    But don't see how that gets hdd into the picture.

    >
    > ------------------------------
    > /etc/fstab:
    >
    > LABEL=LINUX / ext3 defaults 1 1

    This is inconsistent with the entry "root=LABEL=/" in grub.conf below.
    use "tune2fs /dev/hdb3 to see what the real entry is. I would expect

    Filesystem volume name: /

    not LINUX as fstab indicates.

    > none /dev/pts devpts gid=5,mode=620 0 0
    > none /dev/shm tmpfs defaults 0 0
    > none /proc proc defaults 0 0
    > none /sys sysfs defaults 0 0
    > none /proc sysfs defaults 0 0
    > /dev/hdb1 swap swap defaults 0 0
    >
    > ------------------------------
    > /boot/grub/grub.conf:
    >
    > # grub.conf generated by anaconda
    > #
    > # Note that you do not have to rerun grub after making changes to this file
    > # NOTICE: You do not have a /boot partition. This means that
    > # all kernel and initrd paths are relative to /, eg.
    > # root (hd0,2)
    > # kernel /vmlinuz-version ro root=/dev/hdb2
    > # initrd /initrd-version.img
    > #
    > #boot=/dev/hda
    > default=1
    > timeout=10
    > splashimage=(hd0,2)/grub/splash.xpm.gz
    > title Fedora Core (2.6.5-1.358)
    > root (hd0,2)

    This should be (hd1,2) after change to device-map.

    > kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
    > initrd /initrd-2.6.5-1.358.img
    > title WinXP
    > rootnoverify (hd1,1)
    > chainloader +1
    >
    >
    ...
    > > Sooooo, boot to rescue mode (presumably - after HW change of 2nd HD from
    > > IDE0 slave to IDE1 slave and given assumption of / now on hdb3) and
    > > with /dev/hdb3 mounted on /mnt/sysimage, "chroot /mnt/sysimage", edit
    > > /etc/fstab and /boot/grub/grub.conf and /boot/grub/device.map as above,
    > > (or adjusted for reality), and "grub-install /dev/hda" (may not really
    > > be necessary but could help). Reboot and hope for the best!

    After the chroot, fix the above anomalies as best you can and try again.
    If that fails, then try a manual approach (after recovery boot and
    chroot):

    # grub --device-map=/boot/grub/device.map

    Then at the grub> prompt:

    grub> find /boot/grub/stage1

    It should return:

    (hd1,2)

    Exit grub and repeat without the device-map:

    # grub
    grub> find /boot/grub/stage1

    If it returns other than (hd1,2) then the BIOS mapping does not match
    that seen on the running system. If it does match, then:

    grub> root (hd1,2)
    grub> setup (hd0)

    Exit and try a reboot.

    Just read you other posts...

    On Thu, 2004-07-01 at 09:42 -0700, Hans Horn wrote:
    > fixed the mount hdd3 thingy by invoking /etc/rc.sysinit, which gets me
    > into
    > rw mode.

    Ahh - was the old /etc/mtab!

    >
    > now grub-install is happy.
    >
    > however, after reboot, all I get is 'GRUB'
    >
    > cluelessly,
    > H.

    If all the above fails it may be time to re-install with the new
    hardware configuration. :-(

    Phil

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Jonathan S: "RE: OT: Want to Build PC for Fedora Use - Hardware Questions Sound Card"

    Relevant Pages

    • Re: Triple boot:XP,ubuntu&FC5 grub failed
      ... The BIOS accesses the ... simply loads it to 0000:7C00 and jumps to it. ... So if I want to install grub onto partition 2 of my first drive and have no Grub installed into the MBR, the BIOS will not start loading whatever is in the first sector of my second partition? ...
      (Fedora)
    • Re: which grub to edit?
      ... Chance's are that Mikkel is correct but it's whichever disk has an "active partition" and that will be found first given the boot order set in the BIOS. ... Chances are that this is sda. ... you could have grub on sdb controlling booting by adding the F7 and W2K partitions to it's grub.conf and running grub-install under FC3 with the correct incantations. ...
      (Fedora)
    • Problem booting into that other OS using grub
      ... bios to boot from it, scratched all existing partitions and let the OS ... It booted in grub all ... The number of cylinders for this disk is set to 1650. ... Unable to align partition properly. ...
      (Fedora)
    • Re: Howto fix grub after converting to reiserfs
      ... The initial load of grub is done by the BIOS, which reads the boot sectors for additional information for the boot process. ... If you still have problems, and can come up with a small bit of additional disk space, near the beginning of the disk, create a separate partition for /boot and format it as ext3, move all the files from your existing subdirectory into this new partition, edit the menu.lst file to remove all references to '/boot', edit fstab to do a mount of this partition on /boot, and reboot. ... it will perform a full install presuming the Stage 2 or Stage 1.5^10 is in its final install location. ... 0, Filesystem type is fat, partition type 0x16 ...
      (Debian-User)
    • fixing grub : mbr fix when windows install after linux
      ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
      (comp.os.linux.misc)