{"id":121,"date":"2015-12-06T19:57:23","date_gmt":"2015-12-06T19:57:23","guid":{"rendered":"http:\/\/bogdan.ulea.ro\/?p=121"},"modified":"2015-12-06T19:57:23","modified_gmt":"2015-12-06T19:57:23","slug":"create-partitions","status":"publish","type":"post","link":"https:\/\/bogdan.ulea.ro\/?p=121","title":{"rendered":"create partitions"},"content":{"rendered":"<p>Add a new virtual disk.<br \/>\nVerify the available space.<br \/>\n# cat \/proc\/partitions<br \/>\nInto proc directory is all the information about what is happening into kernel.<br \/>\nsdb is the new device used to create partitions.<br \/>\nOn sda there are 2 partitions: sda1 and sda2.<br \/>\nCreate partitions with fdisk:<br \/>\n# fdisk \/dev\/sdb<br \/>\ntype &#8220;m&#8221; for help. There is menu. The important are:<br \/>\n&#8220;p&#8221; print the current layout&#8230;partition table<br \/>\n&#8220;n&#8221; &#8211; add a new partition.<br \/>\n&#8220;w&#8221; &#8211; write the information to disk.<br \/>\nuse &#8220;p&#8221; to create partition.<br \/>\nThe size of space is 1073 MB which have 2097152 sectors. Every sector is 1\/2 KBytes (512 bytes). The sectors will be used for creating partitions on disk<br \/>\ntype &#8220;n&#8221; for new.<br \/>\n!!!!!! Always use &#8220;p&#8221; for primary partition unless want to create more than 4 partitions on disk.<br \/>\nChoose default by press <enter> for type, number and first sector. 1MB is used to store metadata.<br \/>\nSize for last sector. The size +size100M. If not &#8220;M&#8221;, it will choose automatically as sector and is too small.<br \/>\nWrite changes to disk with &#8220;w&#8221;.<br \/>\nVerify:<br \/>\n# cat \/proc\/partitions<br \/>\nNow have to create file-system. If there is an error with &#8220;device is busy&#8221;, reboot the system.<\/enter><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add a new virtual disk. Verify the available space. # cat \/proc\/partitions Into proc directory is all the information about what is happening into kernel. sdb is the new device used to create partitions. On sda there are 2 partitions: sda1 and sda2. Create partitions with fdisk: # fdisk \/dev\/sdb type &#8220;m&#8221; for help. There &hellip; <a href=\"https:\/\/bogdan.ulea.ro\/?p=121\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">create partitions<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=\/wp\/v2\/posts\/121"}],"collection":[{"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=121"}],"version-history":[{"count":1,"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=\/wp\/v2\/posts\/121\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bogdan.ulea.ro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}