{"id":56,"date":"2009-07-13T21:50:00","date_gmt":"2009-07-13T19:50:00","guid":{"rendered":"http:\/\/www.hauweele.net\/~gawen\/blog\/?p=56"},"modified":"2014-05-12T19:44:33","modified_gmt":"2014-05-12T17:44:33","slug":"ext4-on-root-filesystem","status":"publish","type":"post","link":"https:\/\/hauweele.net\/~gawen\/blog\/?p=56","title":{"rendered":"Ext4 on root filesystem"},"content":{"rendered":"<p>Since a few days the last version of <span style=\"font-style: italic;\">squeeze&#8217;s debian installer<\/span> (which runs <span style=\"font-style: italic;\">sid<\/span> I think) is able to install on an ext4 filesystem. Which means that the ext4<span style=\"font-style: italic;\"> <\/span>filesystem could now easily be used as <span style=\"font-style: italic;\">root<\/span> filesystem.<br \/>When the installation is completed a problem might appear at the first boot. The kernel will simply panic complaining that he cannot mount the root filesystem. Actually the squeeze&#8217;s default kernel is currently <span style=\"font-style: italic;\">2.6.26<\/span> and this version does not fully support ext4.<br \/>The quick fix is to use the rescue part of the <span style=\"font-style: italic;\">debian installer <\/span>which will <span style=\"font-style: italic;\">chroot <\/span>you in your <span style=\"font-style: italic;\">root <\/span>partition and let you temporarily change your apt&#8217;s sources from <span style=\"font-style: italic;\">squeeze<\/span> to <span style=\"font-style: italic;\">unstable <\/span>so that you can install the last <span style=\"font-style: italic;\">unstable <\/span>kernel (<span style=\"font-style: italic;\">&gt;= 2.6.28<\/span>) wich is ext4 capable.<span style=\"font-style: italic;\"><span style=\"font-style: italic;\"><\/span><\/span><br \/>If you try to install with the  <span style=\"font-style: italic;\">stable debian installer<\/span> or any GNU\/Linux distribution which is not ext4 capable here is a trick to use ext4 as your <span style=\"font-style: italic;\">root<\/span> filesystem.<br \/>First install your system with an ext3 filesystem and let <span style=\"font-style: italic;\">\/dev\/sda1 <\/span>be that partition. Then install <span style=\"font-style: italic;\">grub2<\/span> <span style=\"font-style: italic;\"><\/span>and make sure it works perfectly. Then boot on a live system which is ext4 capable, backup all files so you can  create an ext4 filesystem on <span style=\"font-style: italic;\">\/dev\/sda1<\/span>, put your backup back in it. Then change <span style=\"font-style: italic;\">fstab<\/span> in <span style=\"font-style: italic;\">\/dev\/sda1 <\/span>and replace ext3 with ext4 for the root filesystem. Check that<span style=\"font-style: italic;\"> grub.cfg <\/span>in <span style=\"font-style: italic;\">\/dev\/sda1<\/span><span style=\"font-style: italic;\"> <\/span>doesn&#8217;t use UUID to pass the root parameter to the kernel (actually they&#8217;ll change since you made a new filesystem) and use <span style=\"font-style: italic;\">root=\/dev\/sda1 <\/span>instead. Now reboot and your system should be running ext4 on the root filesystem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since a few days the last version of squeeze&#8217;s debian installer (which runs sid I think) is able to install on an ext4 filesystem. Which means that the ext4 filesystem could now easily be used as root filesystem.When the installation &hellip; <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=56\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[7,242,241,6,243,240],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-debian","tag-ext4","tag-filesystem","tag-linux","tag-root","tag-squeeze"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56"}],"version-history":[{"count":0,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions"}],"wp:attachment":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}