{"id":1066,"date":"2014-04-11T18:56:45","date_gmt":"2014-04-11T16:56:45","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=1066"},"modified":"2014-07-06T18:56:59","modified_gmt":"2014-07-06T16:56:59","slug":"clonedisk-how-to-make-a-bootable-image-round-2","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=1066","title":{"rendered":"CloneDisk : how to make a bootable image, round 2"},"content":{"rendered":"<p>In a <a href=\"https:\/\/labalec.fr\/erwan\/?p=925\" target=\"_blank\">previous article<\/a>, we have seen how to make a bootable image using Windows API and MS Virtual Disk.<\/p>\n<p>Now, lets do the same but this time we will manipulate bytes in the Drive Master Boot Record and in the Volume Boot Sector with <a href=\"https:\/\/labalec.fr\/erwan\/?page_id=42\" target=\"_blank\">CloneDisk <\/a>and <a href=\"http:\/\/www.ltr-data.se\/opencode.html\/\" target=\"_blank\">ImDisk<\/a>.<\/p>\n<p><strong>1-Create a raw disk image<\/strong>\u00a0(here test.img=64 MB)<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1067 size-large\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi1-1024x509.png\" alt=\"clonedisk_mi1\" width=\"695\" height=\"345\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi1-1024x509.png 1024w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi1-300x149.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi1.png 1662w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>2-Retrieve file size in sectors<\/strong>\u00a0(here 131072 = (64MB * 1024KB * 1024B) \/ 512 sectors)<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1068 size-large\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi2-1024x509.png\" alt=\"clonedisk_mi2\" width=\"695\" height=\"345\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi2-1024x509.png 1024w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi2-300x149.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi2.png 1662w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>3-Modify partition table<\/strong>\u00a0: chs end\/start=1023\/254\/63, sectors before=2048, total sectors=129023 (131072-2048-1)<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1069 size-large\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi3-1024x509.png\" alt=\"clonedisk_mi3\" width=\"695\" height=\"345\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi3-1024x509.png 1024w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi3-300x149.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi3.png 1662w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>4-Write NT6 mbr<\/strong><\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi31.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1070 size-large\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi31-1024x509.png\" alt=\"clonedisk_mi31\" width=\"695\" height=\"345\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi31-1024x509.png 1024w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi31-300x149.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi31.png 1662w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>5-Mount disk image<\/strong>\u00a0(<a href=\"http:\/\/www.ltr-data.se\/opencode.html\/\" target=\"_blank\">ImDisk<\/a> auto detect offset=2048, size of disk=129023)<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi32.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1071 size-large\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi32-1024x509.png\" alt=\"clonedisk_mi32\" width=\"695\" height=\"345\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi32-1024x509.png 1024w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi32-300x149.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi32.png 1662w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>6-Format to NTFS<\/strong><\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi33.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1072 size-large\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi33-1024x509.png\" alt=\"clonedisk_mi33\" width=\"695\" height=\"345\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi33-1024x509.png 1024w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi33-300x149.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi33.png 1662w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>7-Change Hidden Sectors in Boot Sector \u00a0(<\/strong>since it is incorrectly set to 1<strong>)<\/strong><\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1073 size-large\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi4-1024x509.png\" alt=\"clonedisk_mi4\" width=\"695\" height=\"345\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi4-1024x509.png 1024w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi4-300x149.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/04\/clonedisk_mi4.png 1662w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n<p><strong>8-Boot<\/strong>\u00a0(in qemu or virtualbox)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous article, we have seen how to make a bootable image using Windows API and MS Virtual Disk. Now, lets do the same but this time we will manipulate bytes in the Drive Master Boot Record and in the Volume Boot Sector with CloneDisk and ImDisk. 1-Create a raw disk image\u00a0(here test.img=64 MB) <a href='https:\/\/labalec.fr\/erwan\/?p=1066' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,26],"tags":[],"class_list":["post-1066","post","type-post","status-publish","format-standard","hentry","category-boot","category-clonedisk","category-16-id","category-26-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1066"}],"version-history":[{"count":6,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1066\/revisions"}],"predecessor-version":[{"id":1347,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1066\/revisions\/1347"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}