LinuxForum.Fans
Тема

Вопросы по установке Gentoo

Автор: moshell 94 сообщений 20446 просмотров
#216308
Lupo Alberto написал:
[quote=moshell]первый рибут, и..
неудача smile
куда глядеть? в /boot?

Вы явно переоцениваете субсенсорные способности форумчан wink
На каком именно этапе прекращается загрузка?[/quote]
на самом первом smile
сразу выпрыгивает окно выбора загрузки
cd/dvd
hard disk
lan

то есть система не найдена по ходу.
во всяком случае я даже меню груба не увидел

#216309

moshell, значит, меня память подвела :o

#216310
moshell написал:
во всяком случае я даже меню груба не увидел

А Grub устанавливали?

#216313

да. как проверить правильность его установки?

#216314

я зачрутился.
примонтировал только /root (/boot уже в нем)

#216318

Lupo Alberto, по Вашему я как ставлю?
интерактивно, читаю и ставлю параллельно.
как иначе? с потолка не получается.

#216322

допустим я накосячил где либо в системе, криво установил.
но меню груба то в любом случае должно поприветствовать меня, если оно установлено, если я не ошибаюсь

#216323
moshell написал:
я зачрутился.
примонтировал только /root (/boot уже в нем)
"Gentoo Handbook" написал:

Installing GRUB

To install GRUB, let's first emerge it:

Important: If you are using a non-multilib profile, you should not emerge grub, but instead you should emerge grub-static. If you plan to use a non-multilib profile and you have disabled IA-32 emulation in your kernel, then you should use lilo.

Code Listing 2.1: Installing GRUB

# emerge grub

Although GRUB is now installed, we still need to write up a configuration file for it and place GRUB in our MBR so that GRUB automatically boots your newly created kernel. Create /boot/grub/grub.conf with nano (or, if applicable, another editor):

Code Listing 2.2: Creating /boot/grub/grub.conf

# nano -w /boot/grub/grub.conf
...

Возможно, я вас неправильно понял.

#216324

спасибо, но это я все проходил. пошагово. ничего не пропускал.
пропустил только крон, он мне пока что не нужен.
не думаю что пропуск крона влияет на загрузку

#216327
moshell написал:
да. как проверить правильность его установки?

По-быстрому можно так, да и, наверное, не правильность, а само наличие такой установки wink
[console]
gentoo-laptop /etc # dd if=/dev/sda of=/tmp/grub.img bs=512 count=1
1+0 записей считано
1+0 записей написано
скопировано 512 байт (512 B), 0,0176835 c, 29,0 kB/c
gentoo-laptop /etc # file /tmp/grub.img
/tmp/grub.img: x86 boot sector; partition 1: ID=0xee, starthead 0, startsector 1, 156301487 sectors, code offset 0x63
[/console]

#216333

это файлик grub.conf


# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/h … 0#doc_cha$
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title Gentoo Linux kernel-3.0.6-gentoo-r1
root (hd0,1)
kernel /boot/kernel-3.0.6-gentoo-r1 root=/dev/sda2


title Gentoo Linux 3.0.6-gentoo-r1 (rescue)
root (hd0,1)
kernel /boot/kernel-3.0.6-gentoo-r1 root=/dev/sda2 init=/bin/bb

#kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/d$
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

# vim:ft=conf:

[console](chroot) Gentoo-11 / # ls /boot/grub/
default grub.conf reiserfs_stage1_5 stage2_eltorito
device.map iso9660_stage1_5 splash.xpm.gz ufs2_stage1_5
e2fs_stage1_5 jfs_stage1_5 stage1 vstafs_stage1_5
fat_stage1_5 menu.lst stage2 xfs_stage1_5
ffs_stage1_5 minix_stage1_5 stage2.old
(chroot) Gentoo-11 / # ls /boot/
boot grub kernel-3.0.6-gentoo-r1
(chroot) Gentoo-11 / # [/console]

// вывод ls для директорий груб и бут для того, чтоб показать что указано в grub.conf все верно
[console](chroot) Gentoo-11 / # grub --no-floppy[/console]


GNU GRUB version 0.97 (640K lower / 5120K upper memory)

[ 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)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub> quit

[console]
Probing devices to guess BIOS drives. This may take a long time.
(chroot) Gentoo-11 / #
(chroot) Gentoo-11 / # exit
exit

Gentoo-11 gentoo # cd
Gentoo-11 ~ # umount -l /mnt/gentoo/dev{/shm,/pts,}
Gentoo-11 ~ # umount -l /mnt/gentoo{/boot,/proc,}
umount: /mnt/gentoo/boot: not mounted // потому что в хб используется отдельный раздел, но у меня он уже в /gentoo/boot
Gentoo-11 ~ # reboot[/console]

очень не нравится вот это сообщение после выхода из установщика груб
Probing devices to guess BIOS drives. This may take a long time.
может быть тут собака зарыта?

#216334
Lupo Alberto написал:
[quote=moshell]да. как проверить правильность его установки?

По-быстрому можно так, да и, наверное, не правильность, а само наличие такой установки wink
[console]
gentoo-laptop /etc # dd if=/dev/sda of=/tmp/grub.img bs=512 count=1
1+0 записей считано
1+0 записей написано
скопировано 512 байт (512 B), 0,0176835 c, 29,0 kB/c
gentoo-laptop /etc # file /tmp/grub.img
/tmp/grub.img: x86 boot sector; partition 1: ID=0xee, starthead 0, startsector 1, 156301487 sectors, code offset 0x63
[/console][/quote]
[console]Gentoo-11 ~ # dd if=/dev/sda of=/tmp/grub.img bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 2.3533e-05 s, 21.8 MB/s
Gentoo-11 ~ # file /tmp/grub.img
/tmp/grub.img: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0x82, starthead 32, startsector 2048, 6291456 sectors; partition 2: ID=0x83, starthead 191, startsector 6293504, 20971520 sectors; partition 3: ID=0x5, starthead 43, startsector 27265024, 67108864 sectors; partition 4: ID=0x83, starthead 128, startsector 94373888, 882399280 sectors, code offset 0x48, OEM-ID " \320\274", Bytes/sector 190, sectors/cluster 124, reserved sectors 191, FATs 6, root entries 185, sectors 64514 (volumes <=32 MB) , Media descriptor 0xf3, sectors/FAT 20644, heads 6, hidden sectors 309755, sectors 2147991229 (volumes > 32 MB) , physical drive 0x7e, dos < 4.0 BootSector (0x0)
Gentoo-11 ~ #[/console]

#216337

8. Опрос устройств для поиска дисков, обслуживаемых BIOS. Может занять длительное время.

Ситуация

При попытке установки grub зависает, выдав следующую строку:

Листинг 8.1: Сообщения Grub
# grub

Probing devices to guess BIOS drives. This may take a long time.


Решение

Одной названной причиной была экзотическая конфигурация дисков, типа установки на одном шлейфе дисков ультра/не-ультра DMA.

то есть в настройках бивиса косяг?

#216338

moshell
У вас один жесткий диск?

#216340

один. это ноут
в бивисе сейчас поглядел настройка
либо ide либо ahci
другого не дано.
совмещенного тоже нет

#216341

как обновить биос в линуксе?
не подскажете?

#216345
moshell написал:
как обновить биос в линуксе?

По-моему вы торопитесь с обновлением BIOS'а.

#216350

На ноуте лучше прошивать из под доса, я у себя делаю диском который прилагался к ноуту.
А так на обычном компе, я прошивал flashrom
Ну и согласен с Lupo Alberto, не торопитесь с перепрошивкой.

#216352
Lupo Alberto написал:
[quote=moshell]как обновить биос в линуксе?

По-моему вы торопитесь с обновлением BIOS'а.[/quote]
хорошо, что посоветуете сделать сейчас?
заново перечитать хенд бук? wink

Вы видели мои действия по установке и настройке груба?
какие идеи?

Войдите или зарегистрируйтесь, чтобы ответить.