{"id":662,"date":"2020-12-26T14:18:57","date_gmt":"2020-12-26T14:18:57","guid":{"rendered":"https:\/\/www.developercookies.net\/?p=662"},"modified":"2020-12-27T07:46:26","modified_gmt":"2020-12-27T07:46:26","slug":"increase-disk-size-on-linux","status":"publish","type":"post","link":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/","title":{"rendered":"Increase Disk-Size on Linux"},"content":{"rendered":"<p>If your disk size is running out you can easily extend the disk space on virtual image on ESXi side. But if within your VM container is running Linux the increase of disk size is a little bit tricky. Below you find a checklist how you increase the disk size of a linux partition. The checklist describes an extension of \/dev\/sda2 on Ubuntu Linux.<\/p>\n<ol>\n<li>Make a snapshot of the VM if something goes wrong<\/li>\n<li>Shut down VM<\/li>\n<li>Increase disk size of VM on ESXi side as desired<\/li>\n<li>Startup VM<\/li>\n<li>Show mounting Point<br \/>\n<img decoding=\"async\" class=\"ngg-singlepic ngg-none\" src=\"https:\/\/www.developercookies.net\/wp-content\/gallery\/post_increasedisksize\/screenshot_df.jpg\" alt=\"screenshot_df\" width=\"600\"><\/li>\n<li>Start fdisk\n<pre class=\"brush:text\">fdisk \/dev\/sda<\/pre>\n<\/li>\n<li>Select and delete 2. partition<br \/>\n<strong>Important<\/strong>: Write down starting sector value (in our example with \/dev\/sda2 is the starting sector 4096) and the file system type. You will need it by partition creation in the next step.<\/p>\n<pre class=\"brush:text\">p\r\nd\r\n2<\/pre>\n<p><img decoding=\"async\" class=\"ngg-singlepic ngg-none\" src=\"https:\/\/www.developercookies.net\/wp-content\/gallery\/post_increasedisksize\/screenshot_delete_partition.jpg\" alt=\"screenshot_delete_partition\" width=\"600\"><\/li>\n<li>Create new partition<br \/>\n<strong>Important<\/strong>: First sector value and file system type has to be the same as written down in step before. <strong>Do not change anything<\/strong>, otherwise you are going to loose data!<\/p>\n<pre class=\"brush:text\">n\r\n2\r\n4096\r\nN\r\nw<\/pre>\n<p><img decoding=\"async\" class=\"ngg-singlepic ngg-none\" src=\"https:\/\/www.developercookies.net\/wp-content\/gallery\/post_increasedisksize\/screenshot_create_partition.jpg\" alt=\"screenshot_create_partition\" width=\"600\"><\/li>\n<li>Resize disk\n<pre class=\"brush:text\">fsadm resize \/dev\/sda2<\/pre>\n<p><img decoding=\"async\" class=\"ngg-singlepic ngg-none\" src=\"https:\/\/www.developercookies.net\/wp-content\/gallery\/post_increasedisksize\/screenshot_resize.jpg\" alt=\"screenshot_resize\" width=\"600\"><\/li>\n<li>Restart VM<\/li>\n<li>Now you should have an increased partition regarding to increased disk size<\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>If your disk size is running out you can easily extend the disk space on virtual image on ESXi side. But if within your VM container is running Linux the increase of disk size is a little bit tricky. Below you find a checklist how you increase the disk size of a linux partition. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":663,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ngg_post_thumbnail":0,"footnotes":""},"categories":[31,40],"tags":[41,24,14],"class_list":["post-662","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-vmware","tag-esxi","tag-maintenance","tag-migration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Increase Disk-Size on Linux - Developer Cookies Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Increase Disk-Size on Linux - Developer Cookies Blog\" \/>\n<meta property=\"og:description\" content=\"If your disk size is running out you can easily extend the disk space on virtual image on ESXi side. But if within your VM container is running Linux the increase of disk size is a little bit tricky. Below you find a checklist how you increase the disk size of a linux partition. The [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Developer Cookies Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-26T14:18:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-27T07:46:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.developercookies.net\/wp-content\/uploads\/2020\/12\/hard-disk-775847_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Peter\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Peter\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/\"},\"author\":{\"name\":\"Peter\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\"},\"headline\":\"Increase Disk-Size on Linux\",\"datePublished\":\"2020-12-26T14:18:57+00:00\",\"dateModified\":\"2020-12-27T07:46:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/\"},\"wordCount\":184,\"publisher\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\"},\"image\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/hard-disk-775847_1920.jpg\",\"keywords\":[\"ESXi\",\"Maintenance\",\"Migration\"],\"articleSection\":[\"Linux\",\"VMware\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/\",\"url\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/\",\"name\":\"Increase Disk-Size on Linux - Developer Cookies Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/hard-disk-775847_1920.jpg\",\"datePublished\":\"2020-12-26T14:18:57+00:00\",\"dateModified\":\"2020-12-27T07:46:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/hard-disk-775847_1920.jpg\",\"contentUrl\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/hard-disk-775847_1920.jpg\",\"width\":1920,\"height\":1280},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/increase-disk-size-on-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.developercookies.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Increase Disk-Size on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#website\",\"url\":\"https:\\\/\\\/www.developercookies.net\\\/\",\"name\":\"Developer Cookies Blog\",\"description\":\"Recipes and tutorials for developers\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.developercookies.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\",\"name\":\"Peter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\",\"caption\":\"Peter\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Increase Disk-Size on Linux - Developer Cookies Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/","og_locale":"de_DE","og_type":"article","og_title":"Increase Disk-Size on Linux - Developer Cookies Blog","og_description":"If your disk size is running out you can easily extend the disk space on virtual image on ESXi side. But if within your VM container is running Linux the increase of disk size is a little bit tricky. Below you find a checklist how you increase the disk size of a linux partition. The [&hellip;]","og_url":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/","og_site_name":"Developer Cookies Blog","article_published_time":"2020-12-26T14:18:57+00:00","article_modified_time":"2020-12-27T07:46:26+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2020\/12\/hard-disk-775847_1920.jpg","type":"image\/jpeg"}],"author":"Peter","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Peter","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/#article","isPartOf":{"@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/"},"author":{"name":"Peter","@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613"},"headline":"Increase Disk-Size on Linux","datePublished":"2020-12-26T14:18:57+00:00","dateModified":"2020-12-27T07:46:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/"},"wordCount":184,"publisher":{"@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613"},"image":{"@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2020\/12\/hard-disk-775847_1920.jpg","keywords":["ESXi","Maintenance","Migration"],"articleSection":["Linux","VMware"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/","url":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/","name":"Increase Disk-Size on Linux - Developer Cookies Blog","isPartOf":{"@id":"https:\/\/www.developercookies.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2020\/12\/hard-disk-775847_1920.jpg","datePublished":"2020-12-26T14:18:57+00:00","dateModified":"2020-12-27T07:46:26+00:00","breadcrumb":{"@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/#primaryimage","url":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2020\/12\/hard-disk-775847_1920.jpg","contentUrl":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2020\/12\/hard-disk-775847_1920.jpg","width":1920,"height":1280},{"@type":"BreadcrumbList","@id":"https:\/\/www.developercookies.net\/de\/increase-disk-size-on-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.developercookies.net\/"},{"@type":"ListItem","position":2,"name":"Increase Disk-Size on Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.developercookies.net\/#website","url":"https:\/\/www.developercookies.net\/","name":"Developer Cookies Blog","description":"Recipes and tutorials for developers","publisher":{"@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.developercookies.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613","name":"Peter","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g","caption":"Peter"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts\/662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/comments?post=662"}],"version-history":[{"count":11,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts\/662\/revisions"}],"predecessor-version":[{"id":712,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts\/662\/revisions\/712"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/media\/663"}],"wp:attachment":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/media?parent=662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/categories?post=662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/tags?post=662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}