{"id":5681,"date":"2020-11-25T18:13:29","date_gmt":"2020-11-25T16:13:29","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=5681"},"modified":"2025-10-18T19:51:55","modified_gmt":"2025-10-18T16:51:55","slug":"%d0%93%d1%80%d1%83%d0%b7%d0%b8%d0%bc-solaris-%d0%b8%d0%b7-grub","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=5681","title":{"rendered":"\u0413\u0440\u0443\u0437\u0438\u043c Solaris \u0438\u0437 grub"},"content":{"rendered":"\n<p>\u0415\u0441\u043b\u0438 \u0442\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0432\u0430\u0448 <strong>grub<\/strong> \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0433\u0440\u0443\u0437\u0438\u0442\u044c <strong>Solaris<\/strong>, \u0442\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043b\u044f \u0432\u0430\u0441. \u0421\u043a\u0430\u0436\u0443 \u0441\u0440\u0430\u0437\u0443, \u0447\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442 2 \u0440\u0435\u0436\u0438\u043c\u0430: <strong>rescue<\/strong> \u0438 <strong>normal<\/strong>. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043f\u043e\u0432\u0435\u0437\u043b\u043e \u0438 \u0432\u0430\u0441 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 <strong>rescue<\/strong> (\u043e\u0431 \u044d\u0442\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 <strong>grub rescue&gt;<\/strong>), \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441 \u043d\u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0432 <strong>normal<\/strong> \u0438 \u043f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u044c \u041e\u0421. \u041e\u0442\u043b\u0438\u0447\u0438\u0435 <strong>rescue<\/strong> \u043e\u0442 <strong>normal&#8217;a<\/strong> &#8211; \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b: \u0432 <strong>rescue<\/strong> \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043b\u0438\u0448\u044c 4 \u043a\u043e\u043c\u0430\u043d\u0434\u044b (<strong>ls, set, unset, insmod<\/strong>). \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0440\u0435\u0436\u0438\u043c <strong>normal<\/strong>, \u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0430\u0431\u0437\u0430\u0446.<\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p>\u0418\u0442\u0430\u043a, \u0438\u0449\u0435\u043c \u0432\u0430\u0448\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n\n\n<pre>grub rescue&gt; ls\n(hd0) (hd0,gpt9) (hd0,gpt2) (hd0,gpt1) (hd1)<\/pre>\n\n\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u041e\u0421 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 <strong>hd0<\/strong>. \u0418 \u0442\u0430\u043a, <strong>gpt1<\/strong> &#8211; \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, <strong>gpt2<\/strong> &#8211; \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u041e\u0421, <strong>gpt9<\/strong> &#8211; <strong>reserved<\/strong>. \u042d\u0442\u0438 \u0436\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>prtvtoc<\/strong> (\u043d\u043e \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u0443\u0436\u0435 \u0441 0-\u043b\u044f, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u0434\u0432\u0438\u043d\u0443\u0442\u0430 \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443):<\/p>\n\n\n<pre># prtvtoc \/dev\/rdsk\/c7t0d1\n* \/dev\/rdsk\/c7t0d1 partition map\n*\n* Dimensions:\n*     512 bytes\/sector\n* 585937500 sectors\n* 585937433 accessible sectors\n*\n* Flags:\n*   1: unmountable\n*  10: read-only\n*\n* Unallocated space:\n*       First     Sector    Last\n*       Sector     Count    Sector \n*          34       222       255\n*\n*                          First     Sector    Last\n* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory\n       0     24    00        256    524288    524543\n       1      4    00     524544 585396539 585921082\n       8     11    00  585921083     16384 585937466\n<\/pre>\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0449\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c <strong>normal.mod<\/strong> \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 <strong>normal<\/strong> \u0440\u0435\u0436\u0438\u043c <strong>grub&#8217;a<\/strong> \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0441 \u041e\u0421 &#8211; <strong>gpt2<\/strong>, \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u0439\u0442\u0438 \u0444\u0430\u0439\u043b<\/p>\n\n\n<pre>grub rescue&gt; ls (hd0,gpt2)\/ROOT\/11.4.25.75.3\/@\/boot\/grub\/i386-pc\/\n... normal.mod ...\n<\/pre>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044f. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0443 \u043d\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u041e\u0421 <strong>Oracle Solaris<\/strong> <strong>11.4<\/strong> \u0438 <strong>SRU 25<\/strong> \u0438 <strong>Boot Enviroment<\/strong> \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e &#8211; <strong>11.4.25.75.3<\/strong><\/p>\n\n\n<p>\u0415\u0441\u043b\u0438 \u0444\u0430\u0439\u043b \u043d\u0430\u0439\u0434\u0435\u043d, \u0442\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c <strong>prefix<\/strong> (\u0438\u0431\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d <strong><span style=\"color:#ec0625\" class=\"has-inline-color\">prefix=(hd0,gpt2)\/\/@\/boot\/grub\/i386-pc<\/span><\/strong>):<\/p>\n\n\n<pre>grub rescue&gt; set prefix=(hd0,gpt2)\/ROOT\/11.4.25.75.3\/@\/boot\/grub\/i386-pc\n<\/pre>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>set<\/strong>:<\/p>\n<pre>grub rescue&gt; set\n...\nprefix=(hd0,gpt2)\/ROOT\/11.4.25.75.3\/@\/boot\/grub\/i386-pc\nroot=hd0,gpt2\n...\n<\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0433\u0440\u0443\u0437\u0438\u043c <strong>normal grub<\/strong>:<\/p>\n<pre>grub rescue&gt; insmod normal\ngrub rescue&gt; normal\n                  GNU GRUB  version 1.99,11.4.25.0.1.75.3\n\n   Minimal BASH-like line editing is supported. For the first word, TAB\n   lists possible command completions. Anywhere else TAB lists possible\n   device or file completions.\n\ngrub&gt;\n<\/pre>\n\n\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 <strong>zfs<\/strong>:<\/p>\n\n\n<pre>grub&gt; insmod zfs<\/pre>\n\n\n<p>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u0433\u0434\u0435 \u0438\u0441\u043a\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a:<\/p>\n\n\n<pre>grub&gt; zfs-bootfs \/ROOT\/11.4.25.75.3\/@\/ zfs-bootfs<\/pre>\n\n\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u044f\u0434\u0440\u0443 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u0440\u043d\u044f \u0424\u0421:<\/p>\n\n\n<pre>grub&gt; set kern=\/platform\/i86pc\/kernel\/amd64\/unix<\/pre>\n\n\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u0448\u0435 \u044f\u0434\u0440\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>multiboot<\/strong> (\u0435\u0449\u0451 \u0431\u044b\u0432\u0430\u044e\u0442 <strong>chain-loader<\/strong>, \u043a\u0430\u043a <strong>Linux<\/strong>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440) \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a \u043d\u0435\u043c\u0443 (\u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0443 <strong>zfs_bootfs<\/strong> \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0438\u043c\u0432\u043e\u043b \u043d\u0438\u0436\u043d\u0435\u0433\u043e \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f):<\/p>\n\n\n<pre>grub&gt; $multiboot \/ROOT\/11.4.25.75.3\/@\/$kern $kern -B $zfs_bootfs\n0%...done<\/pre>\n\n\n<p>\u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u0441\u0436\u0430\u0442\u0438\u044f <strong>gzio<\/strong> \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u043a <strong>boot archive<\/strong>:<\/p>\n\n\n<pre>grub&gt; insmod gzio\ngrub&gt; $module \/ROOT\/11.4.25.75.3\/@\/platform\/i86pc\/amd64\/boot_archive\n0%...54%...done<\/pre>\n\n\n<p>\u0418 \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <strong>boot<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0447\u043d\u0451\u0442 \u0433\u0440\u0443\u0437\u0438\u0442\u044c \u041e\u0421<\/p>\n\n\n<pre>grub&gt; boot<\/pre>\n\n\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e <strong>grub&#8217;e<\/strong> \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c <a href=\"https:\/\/www.gnu.org\/software\/grub\/manual\/grub\/grub.html\" target=\"_blank\" rel=\"noreferrer noopener\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0442\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0432\u0430\u0448 grub \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0433\u0440\u0443\u0437\u0438\u0442\u044c Solaris, \u0442\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043b\u044f \u0432\u0430\u0441. \u0421\u043a\u0430\u0436\u0443 \u0441\u0440\u0430\u0437\u0443, \u0447\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442 2 \u0440\u0435\u0436\u0438\u043c\u0430: rescue \u0438 normal. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043f\u043e\u0432\u0435\u0437\u043b\u043e \u0438 \u0432\u0430\u0441 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 rescue (\u043e\u0431 \u044d\u0442\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 grub rescue&gt;), \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441 \u043d\u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0432 normal \u0438 \u043f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u044c \u041e\u0421. \u041e\u0442\u043b\u0438\u0447\u0438\u0435 rescue \u043e\u0442 normal&#8217;a &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-5681","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5681"}],"version-history":[{"count":5,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5681\/revisions"}],"predecessor-version":[{"id":6643,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5681\/revisions\/6643"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}