Вопрос о grub

Cent OS, Scientific Linux

Модератор: Модераторы разделов

Аватара пользователя
kusok
Сообщения: 306
Статус: laid to rest
ОС: Debian Sid

Вопрос о grub

Сообщение kusok »

Я поставил ещё один хард и установил туда винду. На первом харде федора и grub. Вот вывод fdisk:

Код: Выделить всё

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1211     9727326   83  Linux
/dev/hda2            1212        1276      522112+  82  Linux swap / Solaris
/dev/hda3            1277       19457   146038882+  83  Linux

Disk /dev/hdb: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1         765     6144831    b  W95 FAT32
/dev/hdb2             766        4869    32965380    f  W95 Ext'd (LBA)
/dev/hdb5             766        4869    32965348+   b  W95 FAT32

Как бы мне через grub загрузаить винду? В конфиге груба, руководствуясь мануалом, дописал следующее:

Код: Выделить всё

title Windows XP
        rootnoverify (hd1,0)
        makeactive
        chainloader +1
        boot

Федора грузится как обычно, винда не хочет. Что я неправильно сделал?
Спасибо сказали:
dokus
Сообщения: 15

Re: Вопрос о grub

Сообщение dokus »

я может ошибаюсь, но вот тут "rootnoverify (hd1,0)" у тебя с какого винта грузить???
Спасибо сказали:
Demimurych
Сообщения: 295

Re: Вопрос о grub

Сообщение Demimurych »

Это изхветсный баг. поищи в поиске где то пробегало решение
Спасибо сказали:
Аватара пользователя
Alexxx
Сообщения: 892
Статус: --==XXX==--
ОС: Archlinux current

Re: Вопрос о grub

Сообщение Alexxx »

выдержка из info grub :

Код: Выделить всё

GRUB cannot boot DOS or Windows directly, so you must chain-load them
(*note Chain-loading::). However, their boot loaders have some critical
deficiencies, so it may not work to just chain-load them. To overcome
the problems, GRUB provides you with two helper functions.

   If you have installed DOS (or Windows) on a non-first hard disk, you
have to use the disk swapping technique, because that OS cannot boot
from any disks but the first one. The workaround used in GRUB is the
command `map' (*note map::), like this:

     grub> map (hd0) (hd1)
     grub> map (hd1) (hd0)

   This performs a "virtual" swap between your first and second hard
drive.

   *Caution:* This is effective only if DOS (or Windows) uses BIOS to
access the swapped disks. If that OS uses a special driver for the
disks, this probably won't work.
Спасибо сказали:
Аватара пользователя
kusok
Сообщения: 306
Статус: laid to rest
ОС: Debian Sid

Re: Вопрос о grub

Сообщение kusok »

Ясно, спасибо! Вот уж не знал, что винда может грузиться строго с первого диска.
Спасибо сказали: