ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Васюк Максим Анатольевич" <vaksim@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Ручная установка grub2 на диск с gpt разметкой
Date: Tue, 24 Feb 2015 13:54:26 +0600
Message-ID: <54EC2E32.5020708@gmail.com> (raw)
In-Reply-To: <20150222161857.GO1226@imap.altlinux.org>

22.02.2015 22:18, Michael Shigorin пишет:
> On Sat, Feb 21, 2015 at 12:49:22PM +0600, Maksim Vasyuk wrote:
>> Установить загрузчик на второй винт, с которого может
>> стартануть система в случае отказа первого.
>
> Это BIOS или UEFI?
>
На материнской плате UEFI, но везде где увидел включил Legacy.

В общем скопировал нулевой сектор диска с которого нормально загружается 
на второй диск, предварительно сделал его копию в файлик:
dd if=/dev/sda of=/dev/sdb bs=512 count=1
После этого загрузчик стал грузиться в свое rescue, ну дальше загрузился 
с нормального винта, сделал:
grub=install /dev/sdb

Теперь система грузится с обеих винтов.

В результате, без лишних телодвижений у меня не получилось установить 
grub2 на винт с gpt в ручную.
Может ему чего в --target при установке указать надо?
Или все-таки может бага?

На всякий прилагаю дампы нулевых секторов.

hexedit -s mbr_ok
00000000   EB 63 90 00 00 00 00 00  00 00 00 00 00 00 00 00 
.c..............
00000010   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
00000020   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
00000030   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
00000040   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
00000050   00 00 00 00 00 00 00 00  00 00 00 80 00 08 00 00 
................
00000060   00 00 00 00 FF FA 90 90  F6 C2 80 74 05 F6 C2 70 
...........t...p
00000070   74 02 B2 80 EA 79 7C 00  00 31 C0 8E D8 8E D0 BC 
t....y|..1......
00000080   00 20 FB A0 64 7C 3C FF  74 02 88 C2 52 BE 80 7D  . 
..d|<.t...R..}
00000090   E8 17 01 BE 05 7C B4 41  BB AA 55 CD 13 5A 52 72 
.....|.A..U..ZRr
000000A0   3D 81 FB 55 AA 75 37 83  E1 01 74 32 31 C0 89 44 
=..U.u7...t21..D
000000B0   04 40 88 44 FF 89 44 02  C7 04 10 00 66 8B 1E 5C 
.@.D..D.....f..\
000000C0   7C 66 89 5C 08 66 8B 1E  60 7C 66 89 5C 0C C7 44 
|f.\.f..`|f.\..D
000000D0   06 00 70 B4 42 CD 13 72  05 BB 00 70 EB 76 B4 08 
..p.B..r...p.v..
000000E0   CD 13 73 0D F6 C2 80 0F  84 D8 00 BE 8B 7D E9 82 
..s..........}..
000000F0   00 66 0F B6 C6 88 64 FF  40 66 89 44 04 0F B6 D1 
.f....d.@f.D....
00000100   C1 E2 02 88 E8 88 F4 40  89 44 08 0F B6 C2 C0 E8 
.......@.D......
00000110   02 66 89 04 66 A1 60 7C  66 09 C0 75 4E 66 A1 5C 
.f..f.`|f..uNf.\
00000120   7C 66 31 D2 66 F7 34 88  D1 31 D2 66 F7 74 04 3B 
|f1.f.4..1.f.t.;
00000130   44 08 7D 37 FE C1 88 C5  30 C0 C1 E8 02 08 C1 88 
D.}7....0.......
00000140   D0 5A 88 C6 BB 00 70 8E  C3 31 DB B8 01 02 CD 13 
.Z....p..1......
00000150   72 1E 8C C3 60 1E B9 00  01 8E DB 31 F6 BF 00 80 
r...`......1....
00000160   8E C6 FC F3 A5 1F 61 FF  26 5A 7C BE 86 7D EB 03 
......a.&Z|..}..
00000170   BE 95 7D E8 34 00 BE 9A  7D E8 2E 00 CD 18 EB FE 
..}.4...}.......
00000180   47 52 55 42 20 00 47 65  6F 6D 00 48 61 72 64 20  GRUB .Geom.Hard
00000190   44 69 73 6B 00 52 65 61  64 00 20 45 72 72 6F 72  Disk.Read. 
Error
000001A0   0D 0A 00 BB 01 00 B4 0E  CD 10 AC 3C 00 75 F4 C3 
...........<.u..
000001B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 80 00 
................
000001C0   01 00 EE FE FF FF 01 00  00 00 AF 4B F9 0D 00 00 
...........K....
000001D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
000001E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
000001F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 AA 
..............U.

hexedit -s mbr_fail
00000000   EB 63 90 00 00 00 00 00  00 00 00 00 00 00 00 00 
.c..............
00000010   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
00000020   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
00000030   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
00000040   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
00000050   00 00 00 00 00 00 00 00  00 00 00 80 00 08 00 00 
................
00000060   00 00 00 00 FF FA 90 90  F6 C2 80 74 05 F6 C2 70 
...........t...p
00000070   74 02 B2 80 EA 79 7C 00  00 31 C0 8E D8 8E D0 BC 
t....y|..1......
00000080   00 20 FB A0 64 7C 3C FF  74 02 88 C2 52 BE 80 7D  . 
..d|<.t...R..}
00000090   E8 17 01 BE 05 7C B4 41  BB AA 55 CD 13 5A 52 72 
.....|.A..U..ZRr
000000A0   3D 81 FB 55 AA 75 37 83  E1 01 74 32 31 C0 89 44 
=..U.u7...t21..D
000000B0   04 40 88 44 FF 89 44 02  C7 04 10 00 66 8B 1E 5C 
.@.D..D.....f..\
000000C0   7C 66 89 5C 08 66 8B 1E  60 7C 66 89 5C 0C C7 44 
|f.\.f..`|f.\..D
000000D0   06 00 70 B4 42 CD 13 72  05 BB 00 70 EB 76 B4 08 
..p.B..r...p.v..
000000E0   CD 13 73 0D F6 C2 80 0F  84 D8 00 BE 8B 7D E9 82 
..s..........}..
000000F0   00 66 0F B6 C6 88 64 FF  40 66 89 44 04 0F B6 D1 
.f....d.@f.D....
00000100   C1 E2 02 88 E8 88 F4 40  89 44 08 0F B6 C2 C0 E8 
.......@.D......
00000110   02 66 89 04 66 A1 60 7C  66 09 C0 75 4E 66 A1 5C 
.f..f.`|f..uNf.\
00000120   7C 66 31 D2 66 F7 34 88  D1 31 D2 66 F7 74 04 3B 
|f1.f.4..1.f.t.;
00000130   44 08 7D 37 FE C1 88 C5  30 C0 C1 E8 02 08 C1 88 
D.}7....0.......
00000140   D0 5A 88 C6 BB 00 70 8E  C3 31 DB B8 01 02 CD 13 
.Z....p..1......
00000150   72 1E 8C C3 60 1E B9 00  01 8E DB 31 F6 BF 00 80 
r...`......1....
00000160   8E C6 FC F3 A5 1F 61 FF  26 5A 7C BE 86 7D EB 03 
......a.&Z|..}..
00000170   BE 95 7D E8 34 00 BE 9A  7D E8 2E 00 CD 18 EB FE 
..}.4...}.......
00000180   47 52 55 42 20 00 47 65  6F 6D 00 48 61 72 64 20  GRUB .Geom.Hard
00000190   44 69 73 6B 00 52 65 61  64 00 20 45 72 72 6F 72  Disk.Read. 
Error
000001A0   0D 0A 00 BB 01 00 B4 0E  CD 10 AC 3C 00 75 F4 C3 
...........<.u..
000001B0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
000001C0   01 00 EE FE FF FF 01 00  00 00 2F 60 38 3A 00 00 
........../`8:..
000001D0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
000001E0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
................
000001F0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 AA 
..............U.

-- 
С уважением,
Васюк Максим


  reply	other threads:[~2015-02-24  7:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-19  8:45 Васюк Максим Анатольевич
2015-02-19 15:59 ` Michael Shigorin
2015-02-22 16:18     ` Michael Shigorin
2015-02-24  7:54       ` Васюк Максим Анатольевич [this message]
2015-02-24  8:13         ` Motsyo Gennadi aka Drool
2015-02-24  8:47           ` Вадим Илларионов
2015-02-24  9:38           ` Васюк Максим Анатольевич

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=54EC2E32.5020708@gmail.com \
    --to=vaksim@gmail.com \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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