{"id":263,"date":"2019-01-30T20:04:50","date_gmt":"2019-01-30T19:04:50","guid":{"rendered":"http:\/\/xpam.pl\/blog\/?p=263"},"modified":"2019-02-01T07:53:19","modified_gmt":"2019-02-01T06:53:19","slug":"resize-fedora-root-partition","status":"publish","type":"post","link":"https:\/\/xpam.pl\/blog\/?p=263","title":{"rendered":"resize Fedora root partition"},"content":{"rendered":"\n<p>Default root partition size on my Fedora installs usually becomes too small down the line to the point I can no longer install packages or perform the upgrades without removing packages or clearing dnf cache. <\/p>\n\n\n\n<p>Therefore I wanted to shrink my home partition and add that space to root.<\/p>\n\n\n\n<p>We can't perform the resize while partitions are mounted so we need to boot in emergency or rescue mode. I first tried the emergency mode but the boot would lock up at Fedora logo so I decided to go with rescue instead.<\/p>\n\n\n\n<p>Once in grub menu, press <strong>e<\/strong> to edit. At the end of the line of <em>linux16<\/em> or <em>linuxefi<\/em> entry, add <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemd.unit=rescue.target<\/code><\/pre>\n\n\n\n<p>Press Ctrl+x to boot with modified parameters. Once in rescue mode, perform the resize:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lvresize -L -10G --resizefs \/dev\/fedora\/home\nlvresize -L +10G --resizefs \/dev\/fedora\/root<\/code><\/pre>\n\n\n\n<p><br><\/p>\n<div class=\"wp-post-signature\">\r\n<br \/>\r\n<br \/>\r\n<img src='https:\/\/xpam.pl\/aaaaff.png' title='Moonie' \/> Cen<br \/>\r\n<a href='https:\/\/github.com\/cen1'>GitHub<\/a><br \/>\r\n<a href='https:\/\/eurobattle.net'>Eurobattle.net<\/a><br \/>\r\n<a href='https:\/\/lagabuse.com'>Lagabuse.com<\/a><br \/>\r\n<a href='https:\/\/bnetdocs.org'>Bnetdocs<\/a><br \/>\r\n<\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>Default root partition size on my Fedora installs usually becomes too small down the line to the point I can no longer install packages or perform the upgrades without removing packages or clearing dnf cache. Therefore I wanted to shrink my home partition and add that space to root. We can't perform the resize while [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-other"],"_links":{"self":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263"}],"version-history":[{"count":4,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions\/267"}],"wp:attachment":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}