Phil Schaffner said: Hi Phil, I was waiting for an email from you ;-) > On Thu, 2004-01-15 at 15:55, Paolo wrote: >> Phil Schaffner said: >> > On Thu, 2004-01-15 at 10:16, Phil Schaffner wrote: >> >> List members: Sorry for any confusion here, but we took it off the >> list >>snip< >> In short, >> with the following config files I can boot both XP and linux from the >> grub >> boot disk: >> >> # grub.conf generated by anaconda >> # >> # Note that you do not have to rerun grub after making changes to this >> file >> # NOTICE: You have a /boot partition. This means that >> # all kernel and initrd paths are relative to /boot/, eg. >> # root (hd0,1) >> # kernel /vmlinuz-version ro root=/dev/hda3 >> # initrd /initrd-version.img >> boot=/dev/hda >> default=1 >> timeout=10 >> splashimage=(hd1,1)/grub/splash.xpm.gz >> title Red Hat Linux (2.4.20-8) >> root (hd1,1) >> kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ >> initrd /initrd-2.4.20-8.img >> title DOS >> rootnoverify (hd0,0) >> chainloader +1 >> >> Note that rootnoverify (hd0,0) is different from what you suggested me >> (hd1,0). >> I don't understand why I need to put (hd0,0) instead of (hd1,0) >> but hey, it works! >> >> # this device map was generated by anaconda >> (fd0) /dev/fd0 >> (hd1) /dev/hda >> >> >> then I copied those files to /boot/grub >> and Iìve run: >> grub --device-map=/boot/grub/device.map >> root (hd1,1) >> setup (hd1) --> hd0 doesn't work, see below >> quit > > Didn't see (hd0) because it is not in device.map as you show it. Try: > > #/boot/grub/device.map > # this device map was generated by grunt-work > (fd0) /dev/fd0 > (hd0) /dev/hdb > (hd1) /dev/hda Wow... I forgot hdb. Too much work, I suppose ;-) > >> >> After the reboot the machine din't display the boot option, >> it just booted windowsXP. >> >> Another strange thing is the following: >> grub> setup (hd0) >> Checking if "/boot/grub/stage1" exists... no >> Checking if "/grub/stage1" exists... yes >> Checking if "/grub/stage2" exists... yes >> Checking if "/grub/e2fs_stage1_5" exists... yes >> Running "embed /grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal) >> Running "embed /grub/e2fs_stage1_5 (hd1,1)"... failed (this is not >> fatal) >> Running "install /grub/stage1 d (hd0) /grub/stage2 p /grub/grub.conf >> "... >> fail >> ed >> >> Error 21: Selected disk does not exist >> >> grub> setup (hd1) >> Checking if "/boot/grub/stage1" exists... no >> Checking if "/grub/stage1" exists... yes >> Checking if "/grub/stage2" exists... yes >> Checking if "/grub/e2fs_stage1_5" exists... yes >> Running "embed /grub/e2fs_stage1_5 (hd1)"... 16 sectors are embedded. >> succeeded >> Running "install /grub/stage1 (hd1) (hd1)1+16 p (hd1,1)/grub/stage2 >> /grub/grub >> .conf"... succeeded >> Done. >> >> Hints? Suggestions ? >> >> Paolo > > Try with both hard drive mappings in device.map Yes, I'll do the modification. > At least you can boot to the installed OSs from the floppy. One kludge > (of the new device.map fails) would be to set the floppy default to > Linux and eject the floppy for Windows. I do the opposite of this for > the kids - use the floppy to default to Windows, no floppy for Linux. > > Sloooooow progress, but at least movement. You've already made me happy ;-) Thanks. Ciao, Paolo