grub на gpt?

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

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

Аватара пользователя
CuB
Сообщения: 86
ОС: Gentoo

grub на gpt?

Сообщение CuB »

Доброго времени суток.
Имеется аппаратный raid5 из 12винтов. На нем всего один раздел в gpt, на котором собсна развернута система. Не могу установить груб на загрузку. Ни grub 0.97 с gpt патчем, ни grub2 из свна.

grub 0.97

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

grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 15: File not found

grub>quit

livecd / # ls /boot/grub/stage*
/boot/grub/stage1  /boot/grub/stage2  /boot/grub/stage2.old  /boot/grub/stage2_eltorito


используется с таким конфигом:

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

default 0
timeout 30


title Gentoo Linux
root (hd0,1)
kernel /boot/bzImage root=/dev/sda1



и grub2

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

 grub-setup -v --directory=/boot/grub  --device-map=/boot/grub/device.map '(hd0)'
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: changing current directory to /dev
grub-setup: info: changing current directory to i2o
grub-setup: info: changing current directory to input
grub-setup: info: changing current directory to cciss
grub-setup: info: changing current directory to ataraid
grub-setup: info: changing current directory to pts
grub-setup: info: changing current directory to shm
grub-setup: info: changing current directory to rd
grub-setup: info: /dev/sda1 starts from 34
grub-setup: info: opening the device hd0
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: Partition 0 starts from 34
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: reading /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/core.img
grub-setup: info: reading /boot/grub/core.img
grub-setup: info: getting the size of /boot/grub/core.img
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: setting the root device to `hd0,1'
grub-setup: info: dos partition is 0, bsd partition is -1
grub-setup: info: will leave the core image on the filesystem
grub-setup: info: attempting to read the core image `/boot/grub/core.img' from GRUB
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: couldn't open the core image
grub-setup: info: error message = file not found
grub-setup: info: attempting to read the core image `/boot/grub/core.img' from GRUB again
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: couldn't open the core image
grub-setup: info: error message = file not found
grub-setup: info: attempting to read the core image `/boot/grub/core.img' from GRUB again
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: couldn't open the core image
grub-setup: info: error message = file not found
grub-setup: info: attempting to read the core image `/boot/grub/core.img' from GRUB again
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: couldn't open the core image
grub-setup: info: error message = file not found
grub-setup: info: attempting to read the core image `/boot/grub/core.img' from GRUB again
grub-setup: info: the size of hd0 is 21484142592
grub-setup: info: couldn't open the core image
grub-setup: info: error message = file not found
grub-setup: error: Cannot read `/boot/grub/core.img' correctly


используемый с таким конфигом:

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

 cat /boot/grub/grub.cfg

set default=0
set timeout=5

menuentry "gntoo)" {
    set root=(hd0,1)
    linux /boot/bzImage root=/dev/sda1 gpt
}

Естевственно /boot/grub/core.img есть на месте.

Есть какие-то идеи?
Спасибо сказали:
minder
Сообщения: 331
ОС: AIX, Solaris,RHEL,SLES,Gentoo

Re: grub на gpt?

Сообщение minder »

дождаться релиза 2 версии
Интересно, а как загружаться собираетесь? Ведь GPT не содержит MBR и обычный БИОС не найдет загрузочную запись. Или у вас EFI?
Спасибо сказали:
Аватара пользователя
CuB
Сообщения: 86
ОС: Gentoo

Re: grub на gpt?

Сообщение CuB »

Нет, там не efi.
Увы, ждать времени нету. Да и у людей и из свна работает, и 0,97 с патчем гпт грузил...
Спасибо сказали:
Аватара пользователя
Ali1
Сообщения: 2250

Re: grub на gpt?

Сообщение Ali1 »

Я грузил систему grub`ом с федориными патчами c GPT.
Но сам груб лежал на другом диске.
Спасибо сказали:
Аватара пользователя
CuB
Сообщения: 86
ОС: Gentoo

Re: grub на gpt?

Сообщение CuB »

Как и всегда. Загрузился с ливсд, развернул 3й стейдж, собрал ядро, поставил самые необходимые утилиты. Теперь осталось загрузиться...
Спасибо сказали:
Аватара пользователя
Ali1
Сообщения: 2250

Re: grub на gpt?

Сообщение Ali1 »

Да, я уже понял.
А что если его не ставить, использовать то что на liveCD, если он правильно собран.И потом установить из консоли gruba.
Спасибо сказали:
Аватара пользователя
CuB
Сообщения: 86
ОС: Gentoo

Re: grub на gpt?

Сообщение CuB »

не нашел такого диска)
Спасибо сказали: