Страница 1 из 1

установка grub-загрузчика

Добавлено: 2009-01-17 12:12:33
weec
как установить grub-загрузчик?

Re: установка grub-загрузчика

Добавлено: 2009-01-17 12:35:15
f_andrey
weec писал(а):как установить grub-загрузчик?
А что после прочтения man grub не стало ясно :unknown:

Re: установка grub-загрузчика

Добавлено: 2009-01-21 17:27:38
paix
weec писал(а):как установить grub-загрузчик?
обычно достаточно

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

grub-install /dev/hda
или

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

# grub
grub> root (hd0,0)          (указание расположения раздела с /boot, пользуемся TAB чтобы увидеть список разделов)
grub> setup (hd0)           (установка GRUB в MBR)
grub> quit                  
загрузка фри ;)

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

title FreeBSD
root (hd0,4,a)
kernel /boot/loader
boot

Re: установка grub-загрузчика

Добавлено: 2009-01-26 12:55:33
koffu
Если нужно установить на другое устройство (флешку, другой винт в софтрейде)
sudo grub --no-floppy
grub> device (hd0) /dev/hdb
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)

Re: установка grub-загрузчика

Добавлено: 2010-01-16 10:58:22
ttys
уже чё только не пробовал
выдаёт это:

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

[ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> root (hd0,1,a)
 Filesystem type is ufs2, partition type 0xa5
grub> setup  --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/ufs2_stage1_5" exists... yes
 Running "embed /boot/grub/ufs2_stage1_5 (hd0)"... failed (this is not fatal)
 Running "embed /boot/grub/ufs2_stage1_5 (hd0,1,a)"... failed (this is not fatal)
 Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst "... failed