{"id":1862,"date":"2015-11-22T00:08:50","date_gmt":"2015-11-21T23:08:50","guid":{"rendered":"https:\/\/www.fanjoe.be\/?p=1862"},"modified":"2015-11-22T00:11:43","modified_gmt":"2015-11-21T23:11:43","slug":"monter-une-partition-ext2-ext3-ext4-contenue-dans-une-archive-iso-sur-mac","status":"publish","type":"post","link":"https:\/\/www.fanjoe.be\/?p=1862","title":{"rendered":"Monter une partition ext2 \/ ext3 \/ ext4 contenue dans une archive ISO sur Mac"},"content":{"rendered":"<h1>Introduction<\/h1>\n<p>Il y a quelques temps, nous avons vu comment <a href=\"https:\/\/www.fanjoe.be\/?p=446\" target=\"_blank\" rel=\"bookmark\">monter une partition ext2 \/ ext3 \/ ext4 sur Mac<\/a> gr\u00e2ce \u00e0 Fuse for OS X et fuse-ext2.<\/p>\n<p>Nous avons aussi vu comment effectuer une <a href=\"https:\/\/www.fanjoe.be\/?p=1373\" target=\"_blank\">sauvegarde de la carte SD du Raspberry Pi<\/a>.<\/p>\n<p>Ici, nous allons voir comment extraire des fichiers depuis la sauvegarde, sans la r\u00e9\u00e9crire compl\u00e8tement sur une carte SD.<\/p>\n<h1>Pr\u00e9requis<\/h1>\n<p>Je vous invite \u00e0 suivre la proc\u00e9dure d\u00e9crite dans ce <a href=\"https:\/\/www.fanjoe.be\/?p=446\" target=\"_blank\">pr\u00e9c\u00e9dent article<\/a> pour installer Fuse for OS X et fuse-ext2 sur votre Mac.<\/p>\n<h1>Proc\u00e9dure<\/h1>\n<p>Nous allons commencer par r\u00e9cup\u00e9rer le fichier de sauvegarde du Raspberry Pi qui devrait se nommer : \u00ab\u00a0<code>backup-YYYYMMJJ-HHMM.gz<\/code>\u00a0\u00bb si vous avez suivi mes <a href=\"https:\/\/www.fanjoe.be\/?p=1373\" target=\"_blank\">autres tutos<\/a> et le rapatrier sur le bureau de votre mac.<\/p>\n<p>Il s&rsquo;agit simplement d&rsquo;une image disque de la carte SD compress\u00e9e dans un fichier zip.<\/p>\n<p>On commence par se placer sur le bureau, puis, on d\u00e9zippe le fichier :<\/p>\n<pre>$ cd ~\/Desktop<\/pre>\n<pre>$ gunzip backup-YYYYMMJJ-HHMM.gz<\/pre>\n<p>On modifie l&rsquo;extension du fichier d\u00e9compress\u00e9 (qui n&rsquo;a pas d&rsquo;extension) en ISO :<\/p>\n<pre>$ mv backup-YYYYMMJJ-HHMM backup-YYYYMMJJ-HHMM.iso<\/pre>\n<p>Puis, nous allons monter l&rsquo;image ISO avec cette commande :<\/p>\n<pre>$ hdiutil mount ~\/Desktop\/backup-YYYYMMJJ-HHMM.iso<\/pre>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-02.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1868\" data-permalink=\"https:\/\/www.fanjoe.be\/?attachment_id=1868\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-02.png\" data-orig-size=\"665,160\" data-comments-opened=\"1\" data-image-title=\"EXT2inISO-02\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-02-620x149.png\" class=\"alignnone size-large wp-image-1868\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-02-620x149.png\" alt=\"EXT2inISO-02\" width=\"620\" height=\"149\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-02-620x149.png 620w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-02-175x42.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-02-300x72.png 300w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-02.png 665w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>Il existe une alternative \u00e0 cette derni\u00e8re commande qui passe par l&rsquo;Utilitaire de disque :<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-01.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1865\" data-permalink=\"https:\/\/www.fanjoe.be\/?attachment_id=1865\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-01.png\" data-orig-size=\"620,263\" data-comments-opened=\"1\" data-image-title=\"EXT2inISO-01\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-01-620x263.png\" class=\"alignnone size-large wp-image-1865\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-01-620x263.png\" alt=\"EXT2inISO-01\" width=\"620\" height=\"263\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-01.png 620w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-01-175x74.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-01-300x127.png 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>Une fois l&rsquo;image disque mont\u00e9e, on peut s&rsquo;apercevoir dans l&rsquo;Utilitaire de disque que seules les partitions en FAT 16 ou FAT 32 sont mont\u00e9es sur le bureau : <code>RECOVERY<\/code> et <code>BOOT<\/code>.<\/p>\n<p>Les partitions en Ext2 \/ Ext3 \/ Ext4 ne sont pas mont\u00e9es car non reconnues par le syst\u00e8me.<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-03.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1870\" data-permalink=\"https:\/\/www.fanjoe.be\/?attachment_id=1870\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-03.png\" data-orig-size=\"1021,612\" data-comments-opened=\"1\" data-image-title=\"EXT2inISO-03\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-03-620x372.png\" class=\"alignnone size-large wp-image-1870\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-03-620x372.png\" alt=\"EXT2inISO-03\" width=\"620\" height=\"372\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-03-620x372.png 620w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-03-175x105.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-03-300x180.png 300w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-03.png 1021w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>Pour monter l&rsquo;une des partitions gris\u00e9es, nous allons commencer par cr\u00e9er son nom dans le dossier <code>\/Volumes\/<\/code> :<\/p>\n<pre>$ sudo mkdir \/Volumes\/root<\/pre>\n<p>Puis, nous allons rep\u00e9rer o\u00f9 elle a \u00e9t\u00e9 connect\u00e9e :<\/p>\n<pre>$ diskutil list<\/pre>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-04.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1871\" data-permalink=\"https:\/\/www.fanjoe.be\/?attachment_id=1871\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-04.png\" data-orig-size=\"665,605\" data-comments-opened=\"1\" data-image-title=\"EXT2inISO-04\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-04-620x564.png\" class=\"alignnone size-large wp-image-1871\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-04-620x564.png\" alt=\"EXT2inISO-04\" width=\"620\" height=\"564\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-04-620x564.png 620w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-04-175x159.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-04-300x273.png 300w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-04.png 665w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>Ici, root est connect\u00e9 sur <code>\/dev\/disk4s6<\/code>.<\/p>\n<p>Et on monte la partition <code>root<\/code> avec cette commande :<\/p>\n<pre>$ sudo mount -t fuse-ext2 \/dev\/disk4s6 \/Volumes\/root<\/pre>\n<p>On la d\u00e9monte avec celle-ci :<\/p>\n<pre>$ sudo umount \/dev\/disk4s6<\/pre>\n<p>Quand la partition est mont\u00e9e, on peut naviguer dans l&rsquo;arborescence du dossier :<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-05.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1873\" data-permalink=\"https:\/\/www.fanjoe.be\/?attachment_id=1873\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-05.png\" data-orig-size=\"665,140\" data-comments-opened=\"1\" data-image-title=\"EXT2inISO-05\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-05-620x131.png\" class=\"alignnone size-large wp-image-1873\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-05-620x131.png\" alt=\"EXT2inISO-05\" width=\"620\" height=\"131\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-05-620x131.png 620w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-05-175x37.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-05-300x63.png 300w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-05.png 665w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>Et dans le Finder, les partitions mont\u00e9es apparaissent bien :<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-06.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1874\" data-permalink=\"https:\/\/www.fanjoe.be\/?attachment_id=1874\" data-orig-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-06.png\" data-orig-size=\"770,368\" data-comments-opened=\"1\" data-image-title=\"EXT2inISO-06\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-06-620x296.png\" class=\"alignnone size-large wp-image-1874\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-06-620x296.png\" alt=\"EXT2inISO-06\" width=\"620\" height=\"296\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-06-620x296.png 620w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-06-175x84.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-06-300x143.png 300w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-06.png 770w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>R\u00e9f\u00e9rences :<\/strong><\/span><\/p>\n<p><a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=1688257\" target=\"_blank\">http:\/\/ubuntuforums.org\/showthread.php?t=1688257<\/a><\/p>\n<p><a href=\"http:\/\/www.howtogeek.com\/tips\/how-to-mount-an-iso-image-in-mac-os-x\/\" target=\"_blank\">http:\/\/www.howtogeek.com\/tips\/how-to-mount-an-iso-image-in-mac-os-x\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction <\/p>\n<p>Il y a quelques temps, nous avons vu comment <a href=\"https:\/\/www.fanjoe.be\/?p=446\" target=\"_blank\" rel=\"bookmark\">monter une partition ext2 \/ ext3 \/&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1879,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_post_was_ever_published":false},"categories":[10,3,173,178,12],"tags":[21,27,28,29,31,35,30,26],"class_list":["post-1862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-geek","category-informatique","category-linux","category-mac","category-raspberrypi","tag-backup","tag-ext2","tag-ext3","tag-ext4","tag-fuse-ext2","tag-mount","tag-osxfuse","tag-partition","end"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2015\/11\/EXT2inISO-00.png","_links":{"self":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts\/1862","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=1862"}],"version-history":[{"count":0,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts\/1862\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/media\/1879"}],"wp:attachment":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}