{"id":29678,"date":"2017-02-19T14:39:35","date_gmt":"2017-02-19T14:39:35","guid":{"rendered":"http:\/\/antonini.psc.br\/blogmed\/?p=29678"},"modified":"2021-04-08T01:52:56","modified_gmt":"2021-04-08T01:52:56","slug":"29678","status":"publish","type":"post","link":"https:\/\/antonini.ddns.net\/?p=29678","title":{"rendered":"Como criar um pendrive boot\u00e1vel de qualquer distro Linux pelo terminal"},"content":{"rendered":"<p style=\"text-align: justify;\">Como criar um pendrive boot\u00e1vel pelo terminal<br \/>\n1. Espetar o pendrive e rodar:<br \/>\n<strong>fdisk -l<\/strong><\/p>\n<p style=\"text-align: justify;\">para ver o endere\u00e7o da unidade (sdX)<\/p>\n<p style=\"text-align: justify;\">2. desmontar o pendrive:<br \/>\n<strong>umount \/dev\/sdX<\/strong><\/p>\n<p style=\"text-align: justify;\">3. formatar o pendrive:<br \/>\n<strong>mkfs.vfat -I \/dev\/sdX<\/strong><\/p>\n<p style=\"text-align: justify;\">ou<\/p>\n<p style=\"text-align: justify;\"><strong>mkfs.ext4 -I \/dev\/sdX<\/strong><\/p>\n<p style=\"text-align: justify;\">4. Instalar o pacote pv no Debian e Ubuntu (se n\u00e3o estiver instalado):<br \/>\n<strong>apt-get install pv<\/strong><\/p>\n<p style=\"text-align: justify;\">5. rodar o comando dd para criar o pendrive boot\u00e1vel:<br \/>\n<strong>dd if=\/local\/da\/imagem.iso of=\/dev\/sdX<\/strong><\/p>\n<p style=\"text-align: justify;\">ou dentrar na pasta da ISO (geralmente em Download) e rodar<br \/>\n<strong>dd if=imagem.iso of=\/dev\/sdX<\/strong><\/p>\n<p style=\"text-align: justify;\">N\u00e3o esquecer que of com apenas um f e n\u00e3o off.<\/p>\n<p style=\"text-align: justify;\">6. Para garantir que todos os dados sejam copiados para o pendrive, ap\u00f3s a conclus\u00e3o do comando dd, digite (tamb\u00e9m como root):<br \/>\n<strong>sync<\/strong><\/p>\n<p style=\"text-align: justify;\">O dd tamb\u00e9m converte imagens de sistema de .img para .iso<br \/>\n<strong>dd if=arquivo.img of=arquivo.iso<\/strong><\/p>\n<p style=\"text-align: justify;\">Para imagens como o RemixOS<br \/>\n<strong>zcat android-x86-1.6-r2_usb.img.gz | dd of=\/dev\/sdc<\/strong><\/p>\n<p style=\"text-align: center;\">[<a href=\"javascript:history.go(-1)\">Voltar<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Como criar um pendrive boot\u00e1vel pelo terminal 1. Espetar o pendrive e rodar: fdisk -l para ver o endere\u00e7o da unidade (sdX) 2. desmontar o pendrive: umount \/dev\/sdX 3. formatar o pendrive: mkfs.vfat -I \/dev\/sdX ou mkfs.ext4 -I \/dev\/sdX 4. Instalar o pacote pv no Debian e Ubuntu (se n\u00e3o estiver instalado): apt-get install pv [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-29678","post","type-post","status-publish","format-standard","hentry","category-videos"],"_links":{"self":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/29678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29678"}],"version-history":[{"count":2,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/29678\/revisions"}],"predecessor-version":[{"id":29680,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/29678\/revisions\/29680"}],"wp:attachment":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}