{"id":19,"date":"2004-01-18T16:47:00","date_gmt":"2004-01-18T21:47:00","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=19"},"modified":"2004-01-18T16:47:00","modified_gmt":"2004-01-18T21:47:00","slug":"resizing-a-linux-ext3-partition","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=19","title":{"rendered":"Resizing a Linux ext3 Partition"},"content":{"rendered":"<p>The DVD editing partition is mounted at <code>\/mnt\/edit<\/code>.  It&#8217;s an ext3 file system.  To back it up, I put in a DVD+RW, changed to <code>\/mnt<\/code> and ran <code>growisofs -M \/dev\/dvd -R -J edit<\/code>.  About 20 minutes later, the 3.7GB was backed up.<\/p>\n<p><a href=\"http:\/\/www.gnu.org\/software\/parted\/\">Parted<\/a> is supposed to be able to resize an ext3 file system, but version 1.6.3 complains <quote>No Implementation: This ext2 filesystem has a rather strange layout!  Parted can&#8217;t resize this (yet).<\/quote>  This is strange because <code>print<\/code> shows the system to be ext3.  Mm-kay.  I remember reading that it&#8217;s easy to switch between ext2 and ext3 and found the following commands to do so:<\/p>\n<p>ext3 -> ext2:  <code>tune2fs -O '^has_journal' \/dev\/hdb2<\/code><\/p>\n<p>ext2 -> ext3:  <code>tune2fs -j \/dev\/hdb2<\/code><\/p>\n<p>Alas, parted still complained about the partition in its ext2 incarnation.  Some Googling turned up references to this error as an unresolved Parted issue due to Parted using an old version of ext2resize.  The recommendation is to use the utility directly.  So I downloaded and installed (<code>rpm -Uvh<\/code>) ext2resize-1.1.17-1.i386.rpm from the <a href=\"http:\/\/ext2resize.sourceforge.net\/download.html\">ext2resize<\/a> site.  The man page for ext2resize says it only resizes the file system, not the partion.  To resize the partion, you should delete and recreate it with <code>fdisk<\/code> making sure you use the same starting position.  Hey, I made a backup, right?  On exit of fdisk, it said there was a problem reloading the partition table and the kernel would use the old one.  Time for a reboot.<\/p>\n<p>So far, so good.  Next command is <code>ext2resize \/dev\/hdb2<\/code> which will resize the file system to fill the partition (now about 104GB).  No errors.  Converted back to ext3 and mounted.  Touchdown!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The DVD editing partition is mounted at \/mnt\/edit. It&#8217;s an ext3 file system. To back it up, I put in a DVD+RW, changed to \/mnt and ran growisofs -M \/dev\/dvd -R -J edit. About 20 minutes later, the 3.7GB was backed up. Parted is supposed to be able to resize an ext3 file system, but [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":0,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}