{"id":769,"date":"2014-05-22T00:04:04","date_gmt":"2014-05-21T22:04:04","guid":{"rendered":"https:\/\/www.fanjoe.be\/?p=769"},"modified":"2014-07-19T01:38:40","modified_gmt":"2014-07-18T23:38:40","slug":"convertir-une-partition-ext2-ou-ext3-en-ext4-avec-tune2fs","status":"publish","type":"post","link":"https:\/\/www.fanjoe.be\/?p=769","title":{"rendered":"Convertir une partition Ext2 ou Ext3 en Ext4 avec tune2fs"},"content":{"rendered":"<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-01.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"770\" data-permalink=\"https:\/\/www.fanjoe.be\/?attachment_id=770\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-01.png\" data-orig-size=\"720,340\" data-comments-opened=\"1\" data-image-title=\"Ext4-01\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-01.png\" class=\"alignnone wp-image-770 size-full\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-01.png\" alt=\"Ext4-01\" width=\"720\" height=\"340\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-01.png 720w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-01-175x82.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-01-300x141.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>Apr\u00e8s quelques petites recherches sur le net, je me suis aper\u00e7u que mon disque et ma clef connect\u00e9s en USB sur mon Rasperry Pi auraient tout int\u00e9r\u00eat \u00e0 \u00eatre format\u00e9s en Ext4 pour gagner en performances.<br \/>\n<!--more--><\/p>\n<div class=\"tiled-gallery type-rectangular tiled-gallery-unresized\" data-original-width=\"980\" data-carousel-extra='{&quot;blog_id&quot;:1,&quot;permalink&quot;:&quot;https:\\\/\\\/www.fanjoe.be\\\/?p=769&quot;,&quot;likes_blog_id&quot;:71477700}' itemscope itemtype=\"http:\/\/schema.org\/ImageGallery\" > <div class=\"gallery-row\" style=\"width: 980px; height: 297px;\" data-original-width=\"980\" data-original-height=\"297\" > <div class=\"gallery-group images-1\" style=\"width: 490px; height: 297px;\" data-original-width=\"490\" data-original-height=\"297\" > <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-03.png?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"486\"> <meta itemprop=\"height\" content=\"293\"> <img decoding=\"async\" class=\"\" data-attachment-id=\"773\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-03.png\" data-orig-size=\"483,291\" data-comments-opened=\"1\" data-image-title=\"Ext4-03\" data-image-description=\"\" data-medium-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-03-300x180.png\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-03.png\" src=\"https:\/\/i0.wp.com\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-03.png?w=486&#038;h=293&#038;ssl=1\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-03.png 483w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-03-175x105.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-03-300x180.png 300w\" width=\"486\" height=\"293\" loading=\"lazy\" data-original-width=\"486\" data-original-height=\"293\" itemprop=\"http:\/\/schema.org\/image\" title=\"Ext4-03\" alt=\"\u00a9 Dell\" style=\"width: 486px; height: 293px;\" \/> <\/a> <div class=\"tiled-gallery-caption\" itemprop=\"caption description\"> \u00a9 Dell <\/div> <\/div> <\/div> <!-- close group --> <div class=\"gallery-group images-1\" style=\"width: 490px; height: 297px;\" data-original-width=\"490\" data-original-height=\"297\" > <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-02.png?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"486\"> <meta itemprop=\"height\" content=\"293\"> <img decoding=\"async\" class=\"\" data-attachment-id=\"772\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-02.png\" data-orig-size=\"483,291\" data-comments-opened=\"1\" data-image-title=\"Ext4-02\" data-image-description=\"\" data-medium-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-02-300x180.png\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-02.png\" src=\"https:\/\/i0.wp.com\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-02.png?w=486&#038;h=293&#038;ssl=1\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-02.png 483w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-02-175x105.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-02-300x180.png 300w\" width=\"486\" height=\"293\" loading=\"lazy\" data-original-width=\"486\" data-original-height=\"293\" itemprop=\"http:\/\/schema.org\/image\" title=\"Ext4-02\" alt=\"\u00a9 Dell\" style=\"width: 486px; height: 293px;\" \/> <\/a> <div class=\"tiled-gallery-caption\" itemprop=\"caption description\"> \u00a9 Dell <\/div> <\/div> <\/div> <!-- close group --> <\/div> <!-- close row --> <\/div>\n<p>Voici la marche \u00e0 suivre pour convertit une partition Ext2 ou Ext3 en Ext4 avec tune2fs :<\/p>\n<p><strong>Etape 1 : Lister les partitions des supports connect\u00e9s en USB<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><code>sudo file -s \/dev\/sd*<\/code><\/p>\n<p style=\"padding-left: 30px;\">Admettons que la partition qui nous int\u00e9resse est <strong><code>\/dev\/sda1<\/code><\/strong>.<\/p>\n<p><strong>Etape 2 : \u00ab\u00a0D\u00e9monter\u00a0\u00bb la partition<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><code>sudo umount \/dev\/sda1<\/code><\/p>\n<p><strong>Etape 3 : Convertir<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><strong>Conversion Ext2 vers Ext3 :<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><code>sudo tune2fs -j \/dev\/sda1<\/code><\/p>\n<p style=\"padding-left: 30px;\"><strong>Conversion Ext2 vers Ext4 :<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><code>sudo tune2fs -O extents,uninit_bg,dir_index,has_journal \/dev\/sda1<\/code><\/p>\n<p style=\"padding-left: 30px;\"><strong>Conversion Ext3 vers Ext4 :<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><code>sudo tune2fs -O extents,uninit_bg,dir_index \/dev\/sda1<\/code><\/p>\n<p><strong>Etape 4 : V\u00e9rifier la partition<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><code>sudo e2fsck -pf \/dev\/sda1<\/code><\/p>\n<p><strong>Etape 5 : Remonter la partition<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><code>sudo mount \/dev\/sda1 \/mnt\/sda1<\/code><\/p>\n<p><strong>Etape 6 : Editer fstab<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><code>sudo nano \/etc\/fstab<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/05\/Ext4-01.png\"><\/a><\/p>\n<p>Apr\u00e8s quelques petites recherches sur le net, je me suis aper\u00e7u que mon disque et ma clef connect\u00e9s&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_post_was_ever_published":false},"categories":[10,3,12],"tags":[27,28,29,26],"class_list":["post-769","post","type-post","status-publish","format-standard","hentry","category-geek","category-informatique","category-raspberrypi","tag-ext2","tag-ext3","tag-ext4","tag-partition","end"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts\/769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=769"}],"version-history":[{"count":0,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts\/769\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}