LinuxForum.Fans
Тема

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

Автор: moshell 94 сообщений 20447 просмотров
#216355

Ну вы проверили хоть grub записался на диск?

#216356
moshell написал:
заново перечитать хенд бук? wink

Не уверен, что вы прочитали его полностью. :o

#216357
ormorph написал:
Ну вы проверили хоть grub записался на диск?

[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]
это не он?

#216360

Загрузитесь с «живого» диска, войдите в chroot-окружение и покажите вывод команд

text

fdisk -l
text

mount
text

ls -l /boot

Если /boot на отдельном разделе, сначал его смонтируйте.

#216361
moshell написал:
это не он?

это то он...

moshell, у вас случаем не какой-нить новомодный ноут с UEFI?
и можно немного поподробней о вашей разбивке? вывод fdisk -l и mount на livecd со всеми смонтированными ФС...

#216362
moshell написал:
это не он?

Да похоже это он.
А при перезагрузке меню не появляется?

#216366

Fat-Zer У меня ноут с UEFI, вроде все установилось норм, конечно перед установкой я полностью обнулил всю таблицу разделов, иначе у меня cfdisk не видел разделы(fdisk видел)

#216367

с самого начала после рибута

Показать

gentoo@Gentoo-11 ~ $ sudo passwd
New password:
BAD PASSWORD: it does not contain enough DIFFERENT characters
Retype new password:
passwd: password updated successfully
gentoo@Gentoo-11 ~ $ su
Password:
Gentoo-11 gentoo # mkswap /dev/sda1
Setting up swapspace version 1, size = 3145724 KiB
no label, UUID=0ecab3f7-9538-4dc2-948a-6f25be3409e1
Gentoo-11 gentoo # swapon /dev/sda1
Gentoo-11 gentoo # mount /dev/sda2 /mnt/gentoo
Gentoo-11 gentoo # mount /dev/sda5 /mnt/gentoo/usr
Gentoo-11 gentoo # mount /dev/sda6 /mnt/gentoo/var
Gentoo-11 gentoo # mount /dev/sda7 /mnt/gentoo/tmp
Gentoo-11 gentoo # mount /dev/sda8 /mnt/gentoo/home
Gentoo-11 gentoo # mount -t proc none /mnt/gentoo/proc
Gentoo-11 gentoo # mount --rbind /dev /mnt/gentoo/dev
Gentoo-11 gentoo # chroot /mnt/gentoo /bin/bash
Gentoo-11 / # env-update

>>> Regenerating /etc/ld.so.cache...
Gentoo-11 / # source /etc/profile
Gentoo-11 / # export PS1="(chroot) $PS1"
(chroot) Gentoo-11 / # fdisk -l


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xeebc45c4

Device Boot Start End Blocks Id System
/dev/sda1 2048 6293503 3145728 82 Linux swap / Solaris
/dev/sda2 * 6293504 27265023 10485760 83 Linux
/dev/sda3 27265024 94373887 33554432 5 Extended
/dev/sda4 94373888 976771071 441198592 83 Linux
/dev/sda5 27267072 48238591 10485760 83 Linux
/dev/sda6 48240640 69212159 10485760 83 Linux
/dev/sda7 69214208 79699967 5242880 83 Linux
/dev/sda8 79702016 94373887 7335936 83 Linux
(chroot) Gentoo-11 / # mount
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /newroot type tmpfs (rw,relatime)
/dev/sr0 on /newroot/mnt/cdrom type iso9660 (ro,relatime)
/dev/loop0 on /mnt/static type squashfs (ro,relatime)
none on /mnt/dynamic type tmpfs (rw,relatime,size=430080k)
aufs on / type aufs (rw,relatime,si=9ac79560)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
rc-svcdir on /lib/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda2 on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,stripe=1,data=ordered)
/dev/sda5 on /usr type ext4 (rw,relatime,user_xattr,acl,barrier=1,stripe=1,data=ordered)
/dev/sda6 on /var type ext4 (rw,relatime,user_xattr,acl,barrier=1,stripe=1,data=ordered)
/dev/sda7 on /tmp type ext4 (rw,relatime,user_xattr,acl,barrier=1,stripe=1,data=ordered)
/dev/sda8 on /home type ext4 (rw,relatime,user_xattr,acl,barrier=1,stripe=1,data=ordered)
none on /proc type proc (rw,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
(chroot) Gentoo-11 / # ls -l /boot
total 5344
lrwxrwxrwx 1 root root 1 Dec 24 21:03 boot -> .
drwxr-xr-x 2 root root 4096 Dec 24 22:37 grub
-rw-r--r-- 1 root root 5465648 Dec 24 20:10 kernel-3.0.6-gentoo-r1
(chroot) Gentoo-11 / #

#216369
ormorph написал:
[quote=moshell]это не он?

А при перезагрузке меню не появляется?[/quote]
не доходит до меню.
выбор откуда грузиться(по сети, хард, двд) и все
даже не пишет что диск плохой или испорченный

#216373

moshell, попробуйте ещё раз, но очень внимательно, переустановить Grub.

#216377

(chroot) Gentoo-11 / # emerge grub
(chroot) Gentoo-11 / # grub --no-floppy
[quote]
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
Probing devices to guess BIOS drives. This may take a long time.
(chroot) Gentoo-11 / #
[/quote]
#216378

с виду всё правильно... =/
а строчки "Grub loading stage1(2)" так и не мелькают?

ormorph, да тут недавно панику разводили про неотключаемый secureboot и отсутствие классического способа загрузки...

#216379

moshell
Чем размечали диск? cfdisk?
Если cfdisk, то можно снести таблицу разделов, а затем снова разметить точно так же как и было, чтобы размеры разделов совпадали, тогда вся информация на разделах останется, а таблица будет новой, останется только снова установить grub

#216380

sozdaval s pomow'yu fdisk
ewe est' idei?
a to ya uzhe rewilsya reboot delat'

#216381
Fat-Zer написал:
да тут недавно панику разводили про неотключаемый secureboot и отсутствие классического способа загрузки...

Хз я даже и не заметил, конечно ни один старый дистрибутив Linux на нем не идет это да, но с новыми вроде проблем нет.
Мне жесткий диск пришлось 512 байт заполнить нулями, а после проблем с установкой не было.

#216386
Показать
emerge grub
....
....
....
>>> Installing (1 of 1) sys-boot/grub-0.97-r10
*
* To avoid automounting and auto(un)installing with /boot,
* just export the DONT_MOUNT_BOOT variable.
*
*
* Assuming you do not have a separate /boot partition.
*
*
* To avoid automounting and auto(un)installing with /boot,
* just export the DONT_MOUNT_BOOT variable.
*
*
* Assuming you do not have a separate /boot partition.
*
*
* To avoid automounting and auto(un)installing with /boot,
* just export the DONT_MOUNT_BOOT variable.
*
*
* Assuming you do not have a separate /boot partition.
*
* *** IMPORTANT NOTE: you must run grub and install
* the new version's stage1 to your MBR. Until you do,
* stage1 and stage2 will still be the old version, but
* later stages will be the new version, which could
* cause problems such as an unbootable system.
* This means you must use either grub-install or perform
* root/setup manually! For more help, see the handbook:
* http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#grub-install-auto
* Copying files from /lib/grub, /usr/lib/grub and /usr/share/grub to //boot/grub
/var/tmp/portage/sys-boot/grub-0.97-r10/temp/environment: line 3944: 32712 Done egrep -v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' "${grub_config}"
32713 Segmentation fault | /sbin/grub --batch --device-map="${dir}"/device.map > /dev/null
* Grub has been installed to //boot successfully.
*
* To interactively install grub files to another device such as a USB
* stick, just run the following and specify the directory as prompted:
* emerge --config =grub-0.97-r10
* Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell
* grub where to install in a non-interactive way.

* Messages for package sys-boot/grub-0.97-r10:

*
* To avoid automounting and auto(un)installing with /boot,
* just export the DONT_MOUNT_BOOT variable.
*

* Messages for package sys-boot/grub-0.97-r10:

* Fallback PaX marking -m
* /var/tmp/portage/sys-boot/grub-0.97-r10/image//sbin/grub
*
* To avoid automounting and auto(un)installing with /boot,
* just export the DONT_MOUNT_BOOT variable.
*
*
* To avoid automounting and auto(un)installing with /boot,
* just export the DONT_MOUNT_BOOT variable.
*
* *** IMPORTANT NOTE: you must run grub and install
* the new version's stage1 to your MBR. Until you do,
* stage1 and stage2 will still be the old version, but
* later stages will be the new version, which could
* cause problems such as an unbootable system.
* This means you must use either grub-install or perform
* root/setup manually! For more help, see the handbook:
* http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#grub-install-auto
* To interactively install grub files to another device such as a USB
* stick, just run the following and specify the directory as prompted:
* emerge --config =grub-0.97-r10
* Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell
* grub where to install in a non-interactive way.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* Regenerating GNU info directory index...
* Processed 71 info files.

* IMPORTANT: 2 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

idu po ssylke i delay kak tam pishut

(chroot) Gentoo-11 / # grep -v rootfs /proc/mounts > /etc/mtab
(chroot) Gentoo-11 / # grub-install --no-floppy /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/sda
(chroot) Gentoo-11 / #
#216389

moshell
Можете попробовать заполнить нулями 512 байт загрузочного сектора( предварительно конечно сохранив образ dd if=/dev/sda of=/tmp/grub.img bs=512 count=1 как вы и делали, только файл скопируйте на флэшку), а потом снова с помощью fdisk разметить точно также как и было размечено до этого(можете переписать размеры на бумагу, а потом ввести), после если информация на разделах будет видна, то можете установить загрузчик grub по идее после уже будет возможно загрузиться.
Если информация на разделах не будет видна, то можете обратно записать с файла на диск.
обнулить можно так:
dd if=/dev/zero of=/dev/sda bs=512 count=1

#216391
ormorph написал:
moshell
Можете попробовать заполнить нулями 512 байт загрузочного сектора( предварительно конечно сохранив образ dd if=/dev/sda of=/tmp/grub.img bs=512 count=1 как вы и делали, только файл скопируйте на флэшку), а потом снова с помощью fdisk разметить точно также как и было размечено до этого(можете переписать размеры на бумагу, а потом ввести), после если информация на разделах будет видна, то можете установить загрузчик grub по идее после уже будет возможно загрузиться.

s etim ponyatno, info o rasmetke v soobwenii
http://linuxforum.ru/viewtopic.php?pid=237166#p237166
a vot tut ne sovsem ponyal

ormorph написал:

Если информация на разделах не будет видна, то можете обратно записать с файла на диск.
обнулить можно так:
dd if=/dev/zero of=/dev/sda bs=512 count=1

novaya rasmetka ub'et vsy instalyaciyu :(

#216395

Я уже много раз сносил командой dd if=/dev/zero of=/dev/sda bs=512 count=1 когда были проблемы, и восстанавливал обычной разметкой, главное что бы все размеры разделов и их очередность совпадали.
А так если что то не так то разметку можно восстановить с образа c флэшки:
dd if=grub.img of=/def/sda

#216396

posle soobweniya 56 uzhe nichego ne delal
zhdal novix sovetov,
s mbr igrat'sya ne rewilsya

reboot

i vse ok! (mbr sdalas' pod natiskom uporstva)
spasibo vsem!


kstati, ya zhe mogu ustanavlivat' vse ostal'noe cherez chroot?
mne grafika nuzhna, inache tyazhelo

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