<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=10899&amp;type=atom" />
	<updated>2012-12-15T18:06:03Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=10899</id>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=314814#p314814" />
			<content type="html"><![CDATA[<p>Очень подробно написано <a href="http://info-linux.ru/article/66">RAID+GRUB+DEBIAN</a></p>]]></content>
			<author>
				<name><![CDATA[awful_sw]]></name>
				<uri>https://linuxforum.ru/profile.php?id=19471</uri>
			</author>
			<updated>2012-12-15T18:06:03Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=314814#p314814</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=202580#p202580" />
			<content type="html"><![CDATA[<p><strong>Vallefor</strong>,&nbsp; проблема эта решается установкой GRUB2 на второй диск.<br />Скажем, есть у вас программное raid-устройство md0 из разделов дисков sda и sdb, к примеру, из sda1 и sdb1.<br />Для того, чтобы GRUB2 мог найти загрузочное устройство, во-первых, GRUB2 нужно установить на оба диска: и на sda, и на sdb. А, во-вторых, описать новую ситуацию в device.map-файле (/boot/grub/device.map).<br />Так уж сложилось, что grub-install, какое бы устройство вы не указывали, ставит на то, которое в device.map прописано, как hd0 (лезем, смотрим какое указано). Практически наверняка это будет sda. Поэтому проделываем маленький подлог, а именно прописываем так, чтобы hd0 стал sdb, а hd1 -- sda.<br />Затем делаем grub-install sdb.<br />И в конце в device.map прописываем так, чтобы и sda, и sdb были hd0.<br />Всё.</p>]]></content>
			<author>
				<name><![CDATA[kgboy]]></name>
				<uri>https://linuxforum.ru/profile.php?id=18852</uri>
			</author>
			<updated>2011-08-12T07:33:11Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=202580#p202580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=155887#p155887" />
			<content type="html"><![CDATA[<p>Есть правда у меня проблема, при выключении Debian выдает такие ошибки:<br />Shutdown LVM Volume Groups Can&#039;t Deactive Volume Groups &quot;LVM&quot; with 1 open logical volumes - Failed<br />Stopping early crypto disk - Failed</p><p>Пришлось раз 10 перегрузить, что бы переписать эту надпись, но потом каждый раз запускается нормально. Насколько это критично и можно избавится от этих ошибок, хотя из эстетических соображений?</p>]]></content>
			<author>
				<name><![CDATA[Kradllit]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16049</uri>
			</author>
			<updated>2011-03-13T00:21:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=155887#p155887</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=155882#p155882" />
			<content type="html"><![CDATA[<p>Ну смотря какой raid.</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-03-12T22:42:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=155882#p155882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=155880#p155880" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>igor_semmy пишет:</cite><blockquote><p>У меня тож была такая проблема. DEbian6+md raid + 2xHDD RAID1 - загрузка с /dev/sda - OK. С /dev/sdb- циклический reset. Помогло следующее -&nbsp; в /etc/default/grub – раскоментировать строку “GRUB terminal=console” и запустить #update-grub&nbsp; для пересоздания конфигурационных файлов в /boot Описание возможной проблемы - когда грузится графический терминал GRUB–меню по-умолчанию – подгружается файл фонта из /boot – скорее всего он не может загрузится – поэтому смена на GRUB terminal=console&nbsp; помогает - там не грузится данный фонт.</p></blockquote></div><p>Спасибо огромное! Аналогичная проблема была и этот совет помог этот совет, как вы только смогли додуматся до такого решения. Очень рад, потому как использую связку dm-crypt+lvm+raid1, на Ubuntu Server 10.04 баг и такая связка не может работать. Поставил Debian и думал, блин опять грабли.</p><p>З.Ы. На всяк случай для тех кто впервые будет ставить raid1. После установки Debian 6 на raid1 нужно установить загрузчик на второй винт. Делается командой #grub-install /dev/sdb</p>]]></content>
			<author>
				<name><![CDATA[Kradllit]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16049</uri>
			</author>
			<updated>2011-03-12T22:30:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=155880#p155880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=149127#p149127" />
			<content type="html"><![CDATA[<p>У меня тож была такая проблема. DEbian6+md raid + 2xHDD RAID1 - загрузка с /dev/sda - OK. С /dev/sdb- циклический reset. Помогло следующее -&nbsp; в /etc/default/grub – раскоментировать строку “GRUB terminal=console” и запустить #update-grub&nbsp; для пересоздания конфигурационных файлов в /boot Описание возможной проблемы - когда грузится графический терминал GRUB–меню по-умолчанию – подгружается файл фонта из /boot – скорее всего он не может загрузится – поэтому смена на GRUB terminal=console&nbsp; помогает - там не грузится данный фонт.</p>]]></content>
			<author>
				<name><![CDATA[igor_semmy]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15671</uri>
			</author>
			<updated>2011-02-24T07:17:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=149127#p149127</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=144462#p144462" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Kettler пишет:</cite><blockquote><p>Он же пишет Filesystem type unknown, partition type 0xfd ! <br />Вам надо загрузиться с livecd и проверить диски fsck</p></blockquote></div><p>С liveCD Груб1 то же самое пишет. И вообще, если смотреть файловую систему у отдельных дисков райда, то там что-то такое пишет: linux_raid_бла-бла-бла. Я думаю из-за этого груб1 ругается. Нет?</p><p>В общем &quot;решил&quot; проблему немного через задницу. Запихал груб на флешку, а файлы vmlinuz**** и initrd**** оставил на райдовском /boot (и в путях для загрузки написал (md/0)/initrd и т.д.). Вообще я так понял, груб в ИБР на хардах садится замечательно, но когда загрузчик пытается выполнить grub.cfg и подгрузить остатки модулей, то почему-то без первого харда получается ресет (кстати, если grub.cfg заведомо написать косяков, то вместо ребута мы попадем в шелл Груба). Возможно был смысл править grub.cfg, но что-то я уже устал =/</p><p>И еще сторонний вопрос. Я правильно понимаю, если выполнить команду (sdc - это флешка)<br />#cat /dev/sdc &gt; flashBack <br />То мы забекапим все файлы и разметку в файл flashBack, а если сделать cat flashBack &gt; /dev/sdc, то восстановим ее ?</p>]]></content>
			<author>
				<name><![CDATA[Vallefor]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6782</uri>
			</author>
			<updated>2011-02-13T08:15:13Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=144462#p144462</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=144425#p144425" />
			<content type="html"><![CDATA[<p>Он же пишет Filesystem type unknown, partition type 0xfd ! <br />Вам надо загрузиться с livecd и проверить диски fsck</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-02-13T06:24:15Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=144425#p144425</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=144289#p144289" />
			<content type="html"><![CDATA[<p>Кстати попробовал первый GRUB. Но там другая беда =)</p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">root@debianraid:/# update-grub<br />Searching for GRUB installation directory ... found: /boot/grub<br />Searching for default file ... found: /boot/grub/default<br />Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst<br />Searching for splash image ... none found, skipping ...<br />Found kernel: /vmlinuz-2.6.32-5-686<br />Updating /boot/grub/menu.lst ... done</p><p>root@debianraid:/# grub-install /dev/sda<br />Searching for GRUB installation directory ... found: /boot/grub<br />The file /boot/grub/stage1 not read correctly.<br />root@debianraid:/# grub-install /dev/sdb<br />Searching for GRUB installation directory ... found: /boot/grub<br />The file /boot/grub/stage1 not read correctly.<br />root@debianraid:/# grub-install /dev/md0<br />Searching for GRUB installation directory ... found: /boot/grub<br />The file /boot/grub/stage1 not read correctly.<br />root@debianraid:/#<br /></div></p><p>Если юзать через консоль груба, то там вот такое вот:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">grub&gt; root (hd0,0)<br />Filesystem type unknown, partition type 0xfd<br />grub&gt; setup (hd0)<br />Error 17: Cannot mount selected partition<br />grub&gt;</div></p>]]></content>
			<author>
				<name><![CDATA[Vallefor]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6782</uri>
			</author>
			<updated>2011-02-12T20:27:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=144289#p144289</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=144287#p144287" />
			<content type="html"><![CDATA[<p><strong>2mogul82</strong><br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">root@debianraid:/etc# /usr/sbin/grub-setup /dev/sda<br />root@debianraid:/etc# /usr/sbin/grub-setup /dev/sdb<br />root@debianraid:/etc# /usr/sbin/update-grub<br />Generating grub.cfg ...<br />Found background image: /usr/share/images/desktop-base/desktop-grub.png<br />Found linux image: /boot/vmlinuz-2.6.32-5-686<br />Found initrd image: /boot/initrd.img-2.6.32-5-686<br />done</div><br />Не помогло =/ Да и инсталл вроде бы сетап тоже запускает.</p><p><strong>2Kettler</strong><br />Это пробовал уже. Но не с лайвСД.<br />Вообще при загрузке с лайв СД весь массив распадается. Есть ли смысл его там собирать и пробовать?</p><p>Че-то жесть я запарился с этим грубом уже.. Даже на LILO посмотрел, но там какой-то гемор с метадатой райда (в mdadm он 1.2, а LILO судя по гуглению работает только с 0.9).</p>]]></content>
			<author>
				<name><![CDATA[Vallefor]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6782</uri>
			</author>
			<updated>2011-02-12T20:22:23Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=144287#p144287</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=144265#p144265" />
			<content type="html"><![CDATA[<p>лучше при рабочей системе или с live-cd</p><p>grub-install –root-directory=/mnt/system /dev/sda</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-02-12T19:30:11Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=144265#p144265</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=144252#p144252" />
			<content type="html"><![CDATA[<p>а если /usr/sbin/grub-setup от рута и указать устройство.<br />потом /usr/sbin/update-grub выполнить</p>]]></content>
			<author>
				<name><![CDATA[mogul82]]></name>
				<uri>https://linuxforum.ru/profile.php?id=3309</uri>
			</author>
			<updated>2011-02-12T19:13:01Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=144252#p144252</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=144144#p144144" />
			<content type="html"><![CDATA[<p>Посмотрел. Там предлагают следующее:</p><p># grub<br />grub&gt; root (hd0,0)<br />grub&gt; setup (hd0)<br />grub&gt; device (hd0) /dev/sdb<br />grub&gt; root (hd0,0)<br />grub&gt; setup (hd0)</p><p>Я так понимаю это не для grub2. У меня этот мануал не работает уже на стадии&nbsp; &quot;# grub&quot; :Р</p><p>Кстати... В принципе мне не принципиально что там в mbr, груб1 или груб2. Если кто-то напишет как установить груб 1, чтоб все не развалилось - то тоже пойдет.<br />У компа нет СДрома и на единственной флешке стоит Debian НетИнсталл, так что если вообще все перестанет грузиться, то это будет плохо <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[Vallefor]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6782</uri>
			</author>
			<updated>2011-02-12T14:51:32Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=144144#p144144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=144131#p144131" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>durc пишет:</cite><blockquote><p><a href="http://blog.antage.name/posts/%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bb%d1%8c%d0%bd%d0%b0%d1%8f-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-grub-%d0%bd%d0%b0-software-raid1.html">http://blog.antage.name/posts/%d0%bf%d1 … raid1.html</a><br />Может пригодится.</p></blockquote></div><p>Что-то у меня там: Error establishing a database connection</p><p>Позже надеюсь откроется.</p>]]></content>
			<author>
				<name><![CDATA[Vallefor]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6782</uri>
			</author>
			<updated>2011-02-12T14:35:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=144131#p144131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debian 6 + GRUB2 + Soft Raid 1. Не грузится если отключить первый хард]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=144115#p144115" />
			<content type="html"><![CDATA[<p><a href="http://blog.antage.name/posts/%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bb%d1%8c%d0%bd%d0%b0%d1%8f-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-grub-%d0%bd%d0%b0-software-raid1.html">http://blog.antage.name/posts/%d0%bf%d1 … raid1.html</a><br />Может пригодится.</p>]]></content>
			<author>
				<name><![CDATA[durc]]></name>
				<uri>https://linuxforum.ru/profile.php?id=3704</uri>
			</author>
			<updated>2011-02-12T14:12:53Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=144115#p144115</id>
		</entry>
</feed>
