{"id":195,"date":"2018-07-04T09:30:42","date_gmt":"2018-07-04T12:30:42","guid":{"rendered":"http:\/\/xaxowareti.com.br\/?p=195"},"modified":"2018-07-04T09:30:42","modified_gmt":"2018-07-04T12:30:42","slug":"criando-particao-maior-que-2-tb-no-linux","status":"publish","type":"post","link":"https:\/\/xaxowareti.com.br\/?p=195","title":{"rendered":"Criando parti\u00e7\u00e3o maior que 2 TB no Linux"},"content":{"rendered":"<p>Descobri somente na pratica que o MBR est\u00e1 limitado para parti\u00e7\u00f5es de at\u00e9 2 TB, mas para maiores temos uma solu\u00e7\u00e3o o GPT!<\/p>\n<p>Para mais informa\u00e7\u00f5es olhe as fontes!<\/p>\n<p>Aqui vai como fazer:<\/p>\n<h2>Vendo dados do Disco<\/h2>\n<p><code># fdisk -l \/dev\/sdb<\/code><\/p>\n<p>Saida:<\/p>\n<pre><strong>Disk \/dev\/sdb: 3000.6 GB<\/strong>, 3000592982016 bytes\r\n255 heads, 63 sectors\/track, 364801 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisk identifier: 0x00000000\r\nDisk \/dev\/sdb doesn't contain a valid partition table<\/pre>\n<h2>Criar um parti\u00e7\u00e3o de 3 TB<\/h2>\n<p><code># parted \/dev\/sdb<\/code><\/p>\n<p>Sa\u00edda:<\/p>\n<pre>GNU Parted 2.3\r\nUsing \/dev\/sdb\r\nWelcome to GNU Parted! Type 'help' to view a list of commands.\r\n(parted)<\/pre>\n<p>Criando um novo rotulo do tipo GPT:<\/p>\n<pre>(parted) <strong>mklabel gpt<\/strong><\/pre>\n<p>sa\u00edda:<\/p>\n<pre>Warning: The existing disk label on \/dev\/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?\r\nYes\/No? <strong>yes<\/strong>\r\n(parted)<\/pre>\n<p>Setar para TB a unidade de medida:<\/p>\n<pre>(parted) <strong>unit TB<\/strong><\/pre>\n<p>Criando a parti\u00e7\u00e3o com 3TB:<\/p>\n<pre>(parted) <strong>mkpart primary 0.00TB 3.00TB<\/strong><\/pre>\n<p>Imprimindo o resultado:<\/p>\n<pre>(parted) <strong>print<\/strong><\/pre>\n<p>Sample outputs:<\/p>\n<pre>Model: ATA ST33000651AS (scsi)\r\nDisk \/dev\/sdb: 3.00TB\r\nSector size (logical\/physical): 512B\/512B\r\nPartition Table: gpt\r\nNumber  Start   End     Size    File system  Name     Flags\r\n 1      0.00TB  3.00TB  3.00TB  ext4         primary<\/pre>\n<p>Saindo e salvando as mudan\u00e7as:<\/p>\n<pre>(parted) <strong>quit<\/strong><\/pre>\n<p>Agora utilize o mkfs.ext4 para formatar a parti\u00e7\u00e3o criada!<\/p>\n<p><code><\/code><code># mkfs.ext4 \/dev\/sdb1<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Descobri somente na pratica que o MBR est\u00e1 limitado para parti\u00e7\u00f5es de at\u00e9 2 TB, mas para maiores temos uma solu\u00e7\u00e3o o GPT! Para mais informa\u00e7\u00f5es olhe as fontes! Aqui vai como fazer: Vendo dados do Disco # fdisk -l \/dev\/sdb Saida: Disk \/dev\/sdb: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors\/track, 364801 cylinders Units [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-195","post","type-post","status-publish","format-standard","hentry","category-dicassolucoes"],"_links":{"self":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=195"}],"version-history":[{"count":1,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions"}],"predecessor-version":[{"id":196,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions\/196"}],"wp:attachment":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}