{"id":899,"date":"2022-04-04T06:55:16","date_gmt":"2022-04-04T01:25:16","guid":{"rendered":"https:\/\/lookouthost.com\/?p=899"},"modified":"2022-04-04T06:55:18","modified_gmt":"2022-04-04T01:25:18","slug":"how-to-create-a-parition-in-linux-centos-ubuntu-using-command-line-interface","status":"publish","type":"post","link":"https:\/\/lookouthost.com\/blog\/how-to-create-a-parition-in-linux-centos-ubuntu-using-command-line-interface\/","title":{"rendered":"How To Create A Parition in Linux, CentOs, Ubuntu Using Command Line Interface"},"content":{"rendered":"<ul class=\"wp-block-list\"><li>First log into your account using root. <\/li><li>Then checkout the drives and paritions using the command &#8220;lsblk&#8221;<\/li><\/ul><pre class=\"wp-block-code\"><code>lsblk<\/code><\/pre><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"272\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2022\/04\/image-8.png\" alt=\"\" class=\"wp-image-901\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-8.png 563w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-8-300x145.png 300w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/figure><ul class=\"wp-block-list\"><li>It will show you the drives begining with the name sda, sdb, sdc and so on. <\/li><li>We can see that there is a drive sdb with no partition on it. <\/li><li>Just note down the drive &#8220;sdb&#8221; on which you want to create parition in linux. <\/li><\/ul><ul class=\"wp-block-list\"><li>It will show you the drives begining with the name sda, sdb, sdc and so on. <\/li><li>Just note down the drive on which you want to delete the parition in linux. <\/li><li>Use the command fdisk to enter in that drive as follow:<\/li><\/ul><pre class=\"wp-block-code\"><code>fdisk \/dev\/sdb<\/code><\/pre><ul class=\"wp-block-list\"><li>Now type &#8220;n&#8221; to create the partition <\/li><li>Just select the option &#8220;primary&#8221; and press enter twice to select the default options.<\/li><li>The default options will select the start sector and ending sector. <\/li><li>Now Type &#8220;w&#8221; to write this operations in system and press enter.<\/li><li>Now Type &#8220;lsblk&#8221; again to see the paritions. <\/li><\/ul><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"519\" height=\"222\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2022\/04\/image-9.png\" alt=\"\" class=\"wp-image-903\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-9.png 519w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-9-300x128.png 300w\" sizes=\"auto, (max-width: 519px) 100vw, 519px\" \/><\/figure><ul class=\"wp-block-list\"><li>Now we can see that there is one partition by the name of sdb1 under the drive sdb. <\/li><\/ul><p>You can also see the complete guide on how to create a parition in linux, CentOS or Ubuntu on our official Youtube Channel. <\/p><figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How To Create A Parition in Linux, CentOs, Ubuntu Using Command Line Interface\" width=\"790\" height=\"444\" src=\"https:\/\/www.youtube.com\/embed\/lcBabHPholM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure><p><\/p>","protected":false},"excerpt":{"rendered":"<p>First log into your account using root. Then checkout the drives and paritions using the command &#8220;lsblk&#8221; It will show you the drives begining with the name sda, sdb, sdc and so on. We can see that there is a drive sdb with no partition on it. Just note down the drive &#8220;sdb&#8221; on which you want to create parition in linux. It will show you the drives begining with the name sda, sdb, sdc and so on. Just note down the drive on which you want to delete the parition in linux. Use the command fdisk to enter in&hellip; <\/p>\n","protected":false},"author":1,"featured_media":276,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,20],"tags":[],"class_list":["post-899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-ubuntu"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/comments?post=899"}],"version-history":[{"count":0,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/899\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/media\/276"}],"wp:attachment":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/media?parent=899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/categories?post=899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/tags?post=899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}