http://wiki.rosalab.com/en/index.php?title=%D0%91%D0%BB%D0%BE%D0%B3:ROSA_Planet/Boot_and_Install_ROSA_from_your_own_HDD&feed=atom&action=historyБлог:ROSA Planet/Boot and Install ROSA from your own HDD - Revision history2024-03-29T10:48:40ZRevision history for this page on the wikiMediaWiki 1.26.4http://wiki.rosalab.com/en/index.php?title=%D0%91%D0%BB%D0%BE%D0%B3:ROSA_Planet/Boot_and_Install_ROSA_from_your_own_HDD&diff=8394&oldid=prevDenis.silakov: оформление2014-07-09T12:55:49Z<p>оформление</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 12:55, 9 July 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>'''There are many ways to install <del class="diffchange diffchange-inline">ROSA – </del>for example, you can use <del class="diffchange diffchange-inline"> </del>[http://wiki.rosalab.ru/en/index.php/Booting_ROSA_from_iso_file ISO image] located at your hard drive. However, a trick with ISO described in our wiki requires some full-functional operating system to be installed in your machine to perform some preliminary actions. However it can happen that your system is broken and neither you can boot from external device. Our colleague Sergey Sokolov recently met such a problem, and below he describes a solution that helped him to bring his system back to life.'''</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>'''There are many ways to install <ins class="diffchange diffchange-inline">ROSA — </ins>for example, you can use [http://wiki.rosalab.ru/en/index.php/Booting_ROSA_from_iso_file ISO image] located at your hard drive. However, a trick with ISO described in our wiki requires some full-functional operating system to be installed in your machine to perform some preliminary actions. However it can happen that your system is broken and neither you can boot from external device. Our colleague Sergey Sokolov recently met such a problem, and below he describes a solution that helped him to bring his system back to life.'''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Since I am one of ROSA developers, it is no wonder that I have installed a development release of ROSA Fresh R4 to my notebook (at the time when we even <del class="diffchange diffchange-inline">didn't </del>have an Alpha release). Once a day I decided to update my system to the current state of repositories. Unfortunately, it turned out that exactly at that moment a lot of system stuff updates (systemd, glibc, etc.) were ongoing. And I was so unlucky that my system refused to boot after update.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Since I am one of ROSA developers, it is no wonder that I have installed a development release of ROSA Fresh R4 to my notebook (at the time when we even <ins class="diffchange diffchange-inline">didn’t </ins>have an Alpha release). Once a day I decided to update my system to the current state of repositories. Unfortunately, it turned out that exactly at that moment a lot of system stuff updates (systemd, glibc, etc.) were ongoing. And I was so unlucky that my system refused to boot after update.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>It would be nice to launch Live CD or just reinstall the system, but my machine <del class="diffchange diffchange-inline">didn't </del>have CD/DVD recorder, I <del class="diffchange diffchange-inline">didn't </del>have a boot USB flash and there was nobody near me to prepare such a boot device for me! However, I remembered that I had an ISO image of ROSA on my HDD.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>It would be nice to launch Live CD or just reinstall the system, but my machine <ins class="diffchange diffchange-inline">didn’t </ins>have CD/DVD recorder, I <ins class="diffchange diffchange-inline">didn’t </ins>have a boot USB flash and there was nobody near me to prepare such a boot device for me! However, I remembered that I had an ISO image of ROSA on my HDD.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>I took a look at my partition table:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>I took a look at my partition table:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l22" >Line 22:</td>
<td colspan="2" class="diff-lineno">Line 22:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Here /dev/sda1 was a swap which I <del class="diffchange diffchange-inline">didn't </del>use anymore, /dev/sda2 was my root and /dev/sda5 was a /home.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Here /dev/sda1 was a swap which I <ins class="diffchange diffchange-inline">didn’t </ins>use anymore, /dev/sda2 was my root and /dev/sda5 was a /home.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The system failed to boot normally, but I still had initrd loaded and dracut console. And that turned out to be enough to do the following actions:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The system failed to boot normally, but I still had initrd loaded and dracut console. And that turned out to be enough to do the following actions:</div></td></tr>
</table>Denis.silakovhttp://wiki.rosalab.com/en/index.php?title=%D0%91%D0%BB%D0%BE%D0%B3:ROSA_Planet/Boot_and_Install_ROSA_from_your_own_HDD&diff=8393&oldid=prevDenis.silakov: Fix URL to ISO booting2014-07-09T08:56:20Z<p>Fix URL to ISO booting</p>
<p><b>New page</b></p><div>'''There are many ways to install ROSA – for example, you can use [http://wiki.rosalab.ru/en/index.php/Booting_ROSA_from_iso_file ISO image] located at your hard drive. However, a trick with ISO described in our wiki requires some full-functional operating system to be installed in your machine to perform some preliminary actions. However it can happen that your system is broken and neither you can boot from external device. Our colleague Sergey Sokolov recently met such a problem, and below he describes a solution that helped him to bring his system back to life.'''<br />
<br />
Since I am one of ROSA developers, it is no wonder that I have installed a development release of ROSA Fresh R4 to my notebook (at the time when we even didn't have an Alpha release). Once a day I decided to update my system to the current state of repositories. Unfortunately, it turned out that exactly at that moment a lot of system stuff updates (systemd, glibc, etc.) were ongoing. And I was so unlucky that my system refused to boot after update.<br />
<br />
It would be nice to launch Live CD or just reinstall the system, but my machine didn't have CD/DVD recorder, I didn't have a boot USB flash and there was nobody near me to prepare such a boot device for me! However, I remembered that I had an ISO image of ROSA on my HDD.<br />
<br />
I took a look at my partition table:<br />
<pre><br />
# fdisk -l /dev/sda<br />
<br />
Disk /dev/sda: 480.1 GB, 480103981056 bytes, 937703088 sectors<br />
Units = sectors of 1 * 512 = 512 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x00000000<br />
<br />
Device Boot Start End Blocks Id System<br />
/dev/sda1 2048 33556479 16777216 82 Linux swap / Solaris<br />
/dev/sda2 33556480 96471039 31457280 83 Linux<br />
/dev/sda3 96471040 937703087 420616024 5 Extended<br />
/dev/sda5 96473088 937703087 420615000 83 Linux<br />
</pre><br />
<br />
Here /dev/sda1 was a swap which I didn't use anymore, /dev/sda2 was my root and /dev/sda5 was a /home.<br />
<br />
The system failed to boot normally, but I still had initrd loaded and dracut console. And that turned out to be enough to do the following actions:<br />
<br />
<pre><br />
mkdir /mnt<br />
mount /dev/sad2 /mnt<br />
mount -o bind /dev /mnt/dev<br />
mount -o bind /dev/pts /mnt/dev/pts<br />
mount -o bind /proc /mnt/proc<br />
mount -o bind /sys /mnt/sys<br />
mount /dev/sda5 /mnt/home<br />
chroot /mnt<br />
dd if=/home/path/to/ROSA.FRESH.KDE.R3.x86_64.iso of=/dev/sda1 bs=8M<br />
touch /boot/resque.iso<br />
vi /boot/grub2/grub.cfg<br />
</pre><br />
<br />
In grub.cfg, I found rescue.iso item and edited it as follows:<br />
<pre><br />
### BEGIN /etc/grub.d/43_resque ###<br />
if [ -f /boot/resque.iso -o -f /boot/sgb.iso ]; then<br />
submenu 'Repair tools' {<br />
if [ -f /boot/resque.iso ]; then<br />
menuentry "Boot rescue CD" {<br />
linux (hd0,1)/isolinux/vmlinuz0 boot=live iso_filename=/dev/sda1 root=live:/dev/sda1 rootfstype=auto ro rd.live.image rhgb splash=silent logo.nologo rd.luks=0 rd.md=0 rd.dm=0<br />
initrd (hd0,1)/isolinux/initrd0.img<br />
}<br />
fi<br />
</pre><br />
<br />
Finally, I synced filesystem and rebooted. And now I had some kind of recovery partition which could be used to install a system or launch it in Live mode. Just not forget that we should not format sda1 partition when installing a system!<br />
<br />
[[Category:ToROSAPlanet]]<br />
{{wl-publish: 2014-07-09 12:55:18 +0400 | Denis.silakov }}</div>Denis.silakov