The other important file is /boot/grub/device.map is automatically generated by the grub command, there is a 'nice' way to do but I've forgotten, here's _a_ way to do it:
mv /boot/grub/grub.conf /boot/grub/device.map.backup && echo "quit" | grub --device-map=/boot/grub/device.map
This will give you the device mappings for grub style device names.
Then just fix up your grub.conf and do a `grub-install` and you should be done :)
To save a little confussion, I have FC1 on hdc2, /boot on hdc1 and WinXP on hda2.
Hope that all works for you.
John S.
Thiago Vinhas de Moraes wrote:
But how can I make grub to do this automatically?
thanks for the help
Thiago
----- Original Message ----- *From:* Dirk Wendland <mailto:dirk.wendland@xxxxxxxx> *To:* fedora-list@xxxxxxxxxx <mailto:fedora-list@xxxxxxxxxx> *Sent:* Monday, February 09, 2004 8:00 AM *Subject:* Re: Grub working on interactive mode
You can try like this
grub> root (hd0,0) grub> kernel /boot/vmlinuz root=/dev/hda1 ro hdc=ide-scsi rhgb acpi=on
grub> boot
Now you can reconfigure your Linux
Dirk Wendland Saarland Germany
http://www.develop.if2.de A little development Tool for C++ / Java / OpenGL under Linux
Linux Rules ;)
----- Original Message ----- *From:* Thiago Vinhas de Moraes <mailto:tvinhas@xxxxxxxxxxxxxxx> *To:* fedora-list@xxxxxxxxxx <mailto:fedora-list@xxxxxxxxxx> *Sent:* Monday, February 09, 2004 12:23 PM *Subject:* Grub working on interactive mode
Hi!
I´m trying to boot my FC1 box and the grub now, instead of
opening the screen with options to boot on Win or Linux, it now
opens a GRUB prompt with lots of options.
I tried several, but could not boot to linux. What should I put
on the Grub prompt to get into the box?
Regards,
Thiago
# this device map was generated by anaconda (fd0) /dev/fd0 (hd0) /dev/hda (hd1) /dev/hdc
# 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 (hd1,0) # kernel /vmlinuz-version ro root=/dev/hdc2 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=10 splashimage=(hd1,0)/grub/splash.xpm.gz title Fedora Core (2.4.22-1.2149.nptl) root (hd1,0) kernel /vmlinuz-2.4.22-1.2149.nptl ro root=LABEL=/ hdd=ide-scsi rhgb initrd /initrd-2.4.22-1.2149.nptl.img title Windows XP Pro rootnoverify (hd0,1) chainloader +1