{"id":892,"date":"2022-04-04T06:15:33","date_gmt":"2022-04-04T00:45:33","guid":{"rendered":"https:\/\/lookouthost.com\/?p=892"},"modified":"2022-04-04T06:50:24","modified_gmt":"2022-04-04T01:20:24","slug":"how-to-delete-a-parition-in-linux-centos-ubuntu-using-command-line-interface","status":"publish","type":"post","link":"https:\/\/lookouthost.com\/blog\/how-to-delete-a-parition-in-linux-centos-ubuntu-using-command-line-interface\/","title":{"rendered":"How to delete a partition 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 partitions using the command &#8220;lsblk&#8221;<\/li><\/ul><pre class=\"wp-block-code\"><code>lsblk<\/code><\/pre><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;d&#8221; to delete the partition<\/li><li>Now Type &#8220;w&#8221; to write this operations in system and &#8220;q&#8221; to quit<\/li><\/ul><pre class=\"wp-block-preformatted\"><code>wq<\/code><\/pre><ul class=\"wp-block-list\"><li>Now just reboot and use command lsblk to see that partition has been deleted in linux successfully.  <\/li><\/ul><figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lookouthost.com\/wp-content\/uploads\/2022\/04\/image-7.png\" alt=\"Delete parition in linux or ubuntu\" class=\"wp-image-893\" width=\"845\" height=\"352\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-7.png 920w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-7-600x250.png 600w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-7-300x125.png 300w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2022\/04\/image-7-768x321.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><figcaption>Parition deleted in Linux<\/figcaption><\/figure><ul class=\"wp-block-list\"><li><span style=\"color: initial;\">You can also see this guide on our official Youtube Channel on How to Delete a Parition in Linux\/Ubuntu using commands. <\/span><\/li><\/ul><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 Delete a Parition in Ubuntu 20 Using Command Line Interface\" width=\"790\" height=\"444\" src=\"https:\/\/www.youtube.com\/embed\/Qed6oXtGuMo?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 partitions using the command &#8220;lsblk&#8221; 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 that drive as follow: Now type &#8220;d&#8221; to delete the partition Now Type &#8220;w&#8221; to write this operations in system and &#8220;q&#8221; to quit wq Now just reboot and use command lsblk to see that partition has been deleted in linux successfully. You can also&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-892","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\/892","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=892"}],"version-history":[{"count":0,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/892\/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=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/categories?post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/tags?post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}