Jump to content
Калькуляторы

CentOS проблемы с grub

Вопрос немного не операторский, но тут много матерых линуксоидов сидит, мож кто присоветует...

Стоит на роутере старенький дистриб CentOS 5.3, понадобилось мне из-за одного бага обновить ядро. Обновляю из стандартных реп, с виду все ок.

В /boot/grub/grub.conf ожидаемо появляется новый раздел:

 

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/mapper/ddf1_4c534920202020208086268200000000376a5c2e00001450p1
#          initrd /boot/initrd-version.img
#boot=/dev/mapper/ddf1_4c534920202020208086268200000000376a5c2e00001450
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-348.4.1.el5PAE)
       root (hd0,0)
       kernel /boot/vmlinuz-2.6.18-348.4.1.el5PAE ro root=LABEL=/
       initrd /boot/initrd-2.6.18-348.4.1.el5PAE.img
title CentOS (2.6.18-128.el5PAE)
       root (hd0,0)
       kernel /boot/vmlinuz-2.6.18-128.el5PAE ro root=LABEL=/
       initrd /boot/initrd-2.6.18-128.el5PAE.img
title CentOS (2.6.18-128.1.10.el5PAE)
       root (hd0,0)
       kernel /boot/vmlinuz-2.6.18-128.1.10.el5PAE ro root=LABEL=/
       initrd /boot/initrd-2.6.18-128.1.10.el5PAE.img

 

Но! При перезагрузке в меню граба только один пункт! CentOS (2.6.18-128.el5PAE)! Я ума не приложу как такое может быть. В системе два винта, вроде в фейк рейде (систему не я ставил).

 

# fdisk -l

Диск /dev/sda: 250.0 ГБ, 250059350016 байт
255 heads, 63 sectors/track, 30401 cylinders
Единицы = цилиндры по 16065 * 512 = 8225280 байт

Устр-во Загр     Начало       Конец       Блоки   Id  Система
/dev/sda1   *           1       29321   235520901   83  Linux
/dev/sda2           29322       30264     7574647+  82  Linux своп / Solaris

Диск /dev/sdb: 250.0 ГБ, 250059350016 байт
255 heads, 63 sectors/track, 30401 cylinders
Единицы = цилиндры по 16065 * 512 = 8225280 байт

Устр-во Загр     Начало       Конец       Блоки   Id  Система
/dev/sdb1   *           1       29321   235520901   83  Linux
/dev/sdb2           29322       30264     7574647+  82  Linux своп / Solaris

# mount
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

 

куда смотреть? что копать?

Share this post


Link to post
Share on other sites

кажется нарыл то самое:

 

grub> cat (hd0,0)/boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/mapper/ddf1_4c534920202020208086268200000000376a5c2e00001450p1
#          initrd /boot/initrd-version.img
#boot=/dev/mapper/ddf1_4c534920202020208086268200000000376a5c2e00001450
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.el5PAE)
       root (hd0,0)
       kernel /boot/vmlinuz-2.6.18-128.el5PAE ro root=LABEL=/
       initrd /boot/initrd-2.6.18-128.el5PAE.img

grub> cat (hd1,0)/boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/mapper/ddf1_4c534920202020208086268200000000376a5c2e00001450p1
#          initrd /boot/initrd-version.img
#boot=/dev/mapper/ddf1_4c534920202020208086268200000000376a5c2e00001450
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-348.4.1.el5PAE)
       root (hd0,0)
       kernel /boot/vmlinuz-2.6.18-348.4.1.el5PAE ro root=LABEL=/
       initrd /boot/initrd-2.6.18-348.4.1.el5PAE.img
title CentOS (2.6.18-128.el5PAE)
       root (hd0,0)
       kernel /boot/vmlinuz-2.6.18-128.el5PAE ro root=LABEL=/
       initrd /boot/initrd-2.6.18-128.el5PAE.img
title CentOS (2.6.18-128.1.10.el5PAE)
       root (hd0,0)
       kernel /boot/vmlinuz-2.6.18-128.1.10.el5PAE ro root=LABEL=/
       initrd /boot/initrd-2.6.18-128.1.10.el5PAE.img

 

сделать grub-install /dev/sda ?

Edited by kaktak

Share this post


Link to post
Share on other sites

В системе два винта, вроде в фейк рейде

Значит не в фейк рейде. Во всяком случае сейчас. Может из них и пытались слепить рэйд на блочных устройствах, но не вышел каменный цветок.

А тому кто ставил - руки повырывать...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.