{"id":20424,"date":"2013-08-10T02:32:06","date_gmt":"2013-08-10T02:32:06","guid":{"rendered":"http:\/\/www.inacreditavel.pt\/?p=20424"},"modified":"2013-08-10T08:15:40","modified_gmt":"2013-08-10T08:15:40","slug":"panico-no-kernel","status":"publish","type":"post","link":"http:\/\/www.inacreditavel.pt\/?p=20424","title":{"rendered":"P\u00e2nico no Kernel"},"content":{"rendered":"<p>Estive a fazer mais umas atualiza\u00e7\u00f5es e, aparentemente, a m\u00e1quina virtual onde est\u00e1 a maior parte das bases de dados n\u00e3o tinha sido totalmente atualizada. Desta vez foi a \u00fanica a pedir-me para atualizar o <a href=\"http:\/\/www.inacreditavel.pt\/?p=20420\">kernel<\/a>. Desconfiei, mas l\u00e1 foi. E nunca mais arrancou.<\/p>\n<p>Depois de muita pesquisa e trabalho, l\u00e1 arranjei uma solu\u00e7\u00e3o. Fica aqui registada para n\u00e3o me esquecer.<\/p>\n<p>Reiniciar a m\u00e1quina virtual, ligando ao leitor de CD um ISO com a \u00faltima vers\u00e3o do sistema operativo. Depois de arrancar e escolher o layout do teclado, executar os comandos seguintes.<\/p>\n<div style=\"border: 2px solid black; border-radius: 5px; box-shadow: 5px 5px 5px grey; background-color: lightyellow; margin: 10px; padding: 8px; font-family: monospace;\">\nmount \/dev\/sda2 \/mnt<br \/>\nmount -t proc proc \/mnt\/proc   (this was the magic step)<br \/>\nchroot \/mnt<br \/>\ncd \/boot<br \/>\nmkinitrd -c -k 3.10.5 -m ext3<br \/>\n# No ficheiro \/etc\/lilo.conf colocar a linha<br \/>\ninitrd = \/boot\/initrd.gz<br \/>\n# no fim do ficheiro, logo ap\u00f3s a linha<br \/>\nroot = \/dev\/sda2<br \/>\n# depois, executar os comandos:<br \/>\nlilo<br \/>\nreboot\n<\/div>\n<p>Et voil\u00e0<\/p>\n<p>Tirado de:<br \/>\n<a href=\"http:\/\/serverfault.com\/questions\/254938\/mkinitrd-lvm-slackware\">http:\/\/serverfault.com\/questions\/254938\/mkinitrd-lvm-slackware<\/a><br \/>\n<a href=\"http:\/\/docs.slackware.com\/howtos:slackware_admin:kernelbuilding\">http:\/\/docs.slackware.com\/howtos:slackware_admin:kernelbuilding<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Estive a fazer mais umas atualiza\u00e7\u00f5es e, aparentemente, a m\u00e1quina virtual onde est\u00e1 a maior parte das bases de dados n\u00e3o tinha sido totalmente atualizada. Desta vez foi a \u00fanica a pedir-me para atualizar o kernel. Desconfiei, mas l\u00e1 foi. E nunca mais arrancou. Depois de muita pesquisa e trabalho, l\u00e1 arranjei uma solu\u00e7\u00e3o. Fica [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/20424"}],"collection":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20424"}],"version-history":[{"count":11,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/20424\/revisions"}],"predecessor-version":[{"id":20436,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/20424\/revisions\/20436"}],"wp:attachment":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20424"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}