Grub Windows + Linux dual boot

Ako koristite Windows i Linux, koji su instalirani na 2 zasebna hard diska i pri tome je Linuxov hard disk prvi, a Windowsov drugi, doci ce do problema prilikom ucitavanja Windowsa, da budem precizniji Windows nece moci da se ucita kada se izabere u Grub meniju. To se lako moze resiti izmenom fajla /boot/grub.conf.
Treba dodati dve linije u grub.conf tako da se ‘softverski zamene’ prvi i drugi disk:

map (hd0) (hd1)
map (hd1) (hd0)

Dakle, grub.conf bi u ovom primeru ovako izgledao:
# 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,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.1-42.fc8 )
root (hd0,0)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.23.1-42.fc8.img
title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

About darthewok

Kompjuterski entuzijasta sa preko 30 godina iskustva.

Posted on 2011/05/24, in Linux tips and tagged , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: