{"id":6024,"date":"2016-07-14T11:35:38","date_gmt":"2016-07-14T03:35:38","guid":{"rendered":"http:\/\/rmohan.com\/?p=6024"},"modified":"2016-07-14T11:35:38","modified_gmt":"2016-07-14T03:35:38","slug":"solaris-11-zfs-root-recovery","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6024","title":{"rendered":"SOLARIS 11 ZFS ROOT RECOVERY:"},"content":{"rendered":"<p>SOLARIS 11 ZFS ROOT RECOVERY:<\/p>\n<p>* Boot system into single user via network or CDROM.<br \/>\nboot net -s<br \/>\nboot cdrom -s<\/p>\n<p>* On X86 machine, you need edit grub and append -s on kernel line OR boot CDROM with Solaris-11-Text image\/media, then select option \u201c3 shell\u201d on \u201cWelcome to the Oracle Solaris Installation Menu\u201d.<br \/>\n* If it ask username: root\/solaris or root\/password<\/p>\n<p># mkdir \/a \/b<br \/>\n# zpool import -R \/a -f rpool<br \/>\n# zfs mount \u2013o mountpoint=\/b rpool\/ROOT\/solaris<br \/>\n# vi \/b\/etc\/shadow<\/p>\n<p>*Remove the root password section, it will become look like this:<br \/>\nroot::15356::::::<\/p>\n<p>*Note that by default, the new Solaris 11 doesn\u2019t allow blank password<br \/>\n*To allow empty passwords at login:<\/p>\n<p># vi \/b\/etc\/default\/login<br \/>\n*Switch this line \u201cPASSREQ=YES\u201d to \u201cPASSREQ=NO\u201d<\/p>\n<p>*If you access the system via SSH, also check the directive PermitEmptyPasswords in \u201c\/etc\/ssh\/sshd_config\u201d<br \/>\nPermitEmptyPasswords yes<\/p>\n<p># cd \/<br \/>\n# umount \/b<br \/>\n# zpool export -f rpool<br \/>\n# reboot<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SOLARIS 11 ZFS ROOT RECOVERY:<\/p>\n<p>* Boot system into single user via network or CDROM. boot net -s boot cdrom -s<\/p>\n<p>* On X86 machine, you need edit grub and append -s on kernel line OR boot CDROM with Solaris-11-Text image\/media, then select option \u201c3 shell\u201d on \u201cWelcome to the Oracle Solaris Installation Menu\u201d. * [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6024"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6024"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6024\/revisions"}],"predecessor-version":[{"id":6025,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6024\/revisions\/6025"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}