ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Yuriy Kashirin <yura@emict.net>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] grub2 обновление сервера с raid/mdadm
Date: Tue, 12 Jan 2016 08:51:28 +0200
Message-ID: <2098633.ICMVgFiUgf@uka-hp.localdomain> (raw)
In-Reply-To: <20160102194239.GF21838@imap.altlinux.org>

В письме от 2 января 2016 22:42:39 пользователь Michael Shigorin 
написал:
> On Thu, Dec 31, 2015 at 03:31:52PM +0300, Yuri Khachaturyan wrote:
> > Стлокнулся с точно такой же проблемой при обновлении sisyphus
> > вчера. Все один-в-один также.
> 
> И что самое паршивое, пока идей нет.

И я столкнулся с таким же. С несколько иными симптомами, но на всяк 
случай оставлю это здесь.
Без всяких raid, отдельного /boot тоже нет, корень на /dev/sda2..

297: grub2-pc        #################################### [ 63%]
Updating grub on /dev/sda
/usr/sbin/grub-bios-setup: warning: Attempting to install GRUB to a 
disk with multiple partition labels.  This is not supported yet..
/usr/sbin/grub-bios-setup: warning: Embedding is not possible.  GRUB 
can only be installed in this setup by using blocklists.  However, 
blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-bios-setup: error: will not proceed with blocklists.
** WARNING: grub-autoupdate failed, NEXT BOOT WILL LIKELY FAIL NOW
** WARNING: please run it by hand, record the output offline,
** WARNING: make sure you have bootable rescue CD/flash media handy
** WARNING: and try `grub-install /dev/sdX' manually

Перезагружаться не рискнул.

Попытка сделать вручную  grub-install не прошла:

# grub-install /dev/sda
/usr/sbin/grub-bios-setup: warning: Attempting to install GRUB to a 
disk with multiple partition labels.  This is not supported yet..
/usr/sbin/grub-bios-setup: warning: Embedding is not possible.  GRUB 
can only be installed in this setup by using blocklists.  However, 
blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-bios-setup: error: will not proceed with blocklists.

Гугление навело на https://www.linux.org.ru/forum/general/7488486
Что в итоге и помогло (с некоторыми особенностями).

У меня было:

# grub-probe -d /dev/sda
ext2

Лечение - почистить несколько секторов за MBR (но до начала первого 
раздела):

# dd if=/dev/zero of=/dev/sda bs=512 seek=1 count=3

После чего все благополучно установилось:
# grub-install /dev/sda                                                                                
Installation finished. No error reported.



-- 
 Best regards
 Yuriy Kashyrin



  reply	other threads:[~2016-01-12  6:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30 19:32 ` Michael Shigorin
2016-01-02 19:42     ` Michael Shigorin
2016-01-12  6:51       ` Yuriy Kashirin [this message]
2016-01-17 16:30         ` Michael Shigorin
2016-01-17 17:43           ` Yuriy Kashirin
2016-01-17 22:10             ` Michael Shigorin
2016-01-11 21:50     ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2098633.ICMVgFiUgf@uka-hp.localdomain \
    --to=yura@emict.net \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git