{"id":393,"date":"2011-01-28T00:30:38","date_gmt":"2011-10-30T21:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/make-a-copy-of-your-root-disk-on-solaris-10\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-10-30T21:51:50","slug":"make-a-copy-of-your-root-disk-on-solaris-10","status":"publish","type":"post","link":"\/blog\/index.php\/make-a-copy-of-your-root-disk-on-solaris-10\/","title":{"rendered":"Make a copy of your root disk on solaris 10"},"content":{"rendered":"<p>if you need to make a copy of your boot disk, and you don&#8217;t have<br \/>\ndisksuite, and you only have one slice as &#8220;\/&#8221;, and this is solaris 10,<br \/>\nyou can do:<br \/>\n#prtvtoc \/dev\/rdsk\/c0t0d0s0 | fmthard -s &#8211; \/dev\/rdsk\/c0t1d0s0<br \/>\n#newfs \/dev\/dsk\/c0t1d0s 0<br \/>\n#mount \/dev\/dsk\/c0t1d0s0 \/a<br \/>\n#cd \/<br \/>\n#find . -mount | cpio -pmdv \/a<br \/>\n#installboot \/usr\/platform\/`uname -i`\/lib\/fs\/ufs\/bootblk \/dev\/rdsk\/c0t1d0s0<br \/>\n#vi \/a\/etc\/vfstab<br \/>\n(change references from c0t0d0s0 to c1)<br \/>\n#mkdir \/a\/tmp<br \/>\n#mkdir \/a\/dev<br \/>\n#mkdir \/a\/proc<br \/>\n#touch \/a\/etc\/mnttab<br \/>\n#mkdir \/a\/etc\/svc\/volatile<br \/>\n#mkdir \/a\/system\/object<br \/>\n#mkdir \/a\/system\/contract<br \/>\n#umount \/a<br \/>\n#init 0<br \/>\n#boot otherdisk -r<br \/>\nAnd the system will boot fine from the other disk.<br \/>\nRemember it should be better to do this in single user mode, and with apps down.<br \/>\n200\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>if you need to make a copy of your boot disk, and you don&#8217;t have disksuite, and you only have one slice as &#8220;\/&#8221;, and this is solaris 10, you can do: #prtvtoc \/dev\/rdsk\/c0t0d0s0 | fmthard -s &#8211; \/dev\/rdsk\/c0t1d0s0 #newfs \/dev\/dsk\/c0t1d0s 0 #mount \/dev\/dsk\/c0t1d0s0 \/a #cd \/ #find . -mount | cpio -pmdv \/a #installboot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}