{"id":1138,"date":"2009-06-12T22:11:34","date_gmt":"2009-06-13T02:11:34","guid":{"rendered":"http:\/\/blogs.sungeek.net\/unixwiz\/?p=1138"},"modified":"2009-06-12T22:11:34","modified_gmt":"2009-06-13T02:11:34","slug":"installing-solaris-on-a-large-harddrive","status":"publish","type":"post","link":"https:\/\/blogs.sungeek.net\/unixwiz\/2009\/06\/12\/installing-solaris-on-a-large-harddrive\/","title":{"rendered":"Installing Solaris on a large harddrive"},"content":{"rendered":"<p>Because of the storms a couple of weeks ago, the harddrives in my one solaris box had failed. I bought a couple of new 500gb harddrives to replace the 80 that was in it. So I downloaded the newest update of Solaris 10 (update 7) and did the install. Everything worked perfect, then it rebooted. All I got was the &#8220;grub>&#8221; prompt. Nothing would let me boot it. I booted back off of the cdrom and updated the boot-archive, everything seemed fine, but it still would not boot off of the harddrive. So I tried to do it by hand at the grub> prompt:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngrub&gt; kernel \/platform\/i86pc\/multiboot\r\nError 18: selected cylinder exceeds maximum supported by bios\r\n<\/pre>\n<p>Great.. now what. It appears that you have to have the boot info in the first 1023 cylinders of the harddrive. Well this big 500GB harddrive has over 60,000+ cylinders on it. Guess what, the Solaris installer put the swap on 3-263 and then put the root on 58884 &#8211; some high number.. So obviously grub is going to have a problem. <\/p>\n<p>So how do you fix this. There is 2 possible ways that I can think of and possibly a third.  <\/p>\n<p>The first would be for Sun to change the installer to not automatically place root at the end of the disk. <\/p>\n<p>The second is when you are getting ready to do the install, pre-layout the disks using format from the command line. <\/p>\n<p>The third is what I am trying, since the remaining of the disk has not been used yet, I am going to move the partitions around with dd. The first thing I did was delete the swap partition on slice 1. The second was to create a new temp partition on slice 3 that is the exact same size as slice 0. Now using dd I did the following:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndd if=\/dev\/dsk\/c0d0s0 of=\/dev\/dsk\/c0d0s3 bs=4096k\r\n<\/pre>\n<p>Hopefully this won&#8217;t take too long as the partition is only 15gb in size. You could have done the same thing with tar and have both partitions mounted. Once the dd finishes. I will delete the slice 0 and recreate it starting at cylinder 3 and give it the same size as it was before, and then dd the info back. Once that is done, delete the temp slice and recreate a swap partition. Hopefully this works.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Because of the storms a couple of weeks ago, the harddrives in my one solaris box had failed. I bought a couple of new 500gb harddrives to replace the 80 that was in it. So I downloaded the newest update of Solaris 10 (update 7) and did the install. Everything worked perfect, then it rebooted. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blogs.sungeek.net\/unixwiz\/2009\/06\/12\/installing-solaris-on-a-large-harddrive\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Installing Solaris on a large harddrive&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[146,145,147,444],"class_list":["post-1138","post","type-post","status-publish","format-standard","hentry","category-solaris","category-sun","tag-big-disk","tag-format","tag-install","tag-solaris"],"_links":{"self":[{"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/posts\/1138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/comments?post=1138"}],"version-history":[{"count":1,"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/posts\/1138\/revisions"}],"predecessor-version":[{"id":1139,"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/posts\/1138\/revisions\/1139"}],"wp:attachment":[{"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/media?parent=1138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/categories?post=1138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sungeek.net\/unixwiz\/wp-json\/wp\/v2\/tags?post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}