{"id":1550,"date":"2015-01-30T19:05:51","date_gmt":"2015-01-30T18:05:51","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=1550"},"modified":"2015-02-05T22:04:30","modified_gmt":"2015-02-05T21:04:30","slug":"how-to-append-a-master-boot-record-to-a-partition-image","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=1550","title":{"rendered":"How to append a disk master boot record to a partition image"},"content":{"rendered":"<p>In some specific situations, you may want to backup only one partition but still wish to boot it as a disk image.<br \/>\nLets see below how to turn a partition image into a disk image.<\/p>\n<p>Before we start, have a a look at the below disk layout to have a better understanding of items such as MBR, BS, Disk and Partition.<br \/>\n<a href=\"http:\/\/imgur.com\/mCosyUV\"><img decoding=\"async\" src=\"http:\/\/i.imgur.com\/mCosyUV.png\" title=\"source: imgur.com\" \/><\/a><\/p>\n<p><strong>1.Create a 1 MBytes (2048*512=1MB) header file (under virtualdisk, create raw disk image)<\/strong><br \/>\nNote : instead of 2048 sectors, you can go for 63 or 128 or whatever \u00ab\u00a0sectors before\u00a0\u00bb may suit you &#8211; just report that number in the following steps.<br \/>\n<a href=\"http:\/\/imgur.com\/v66u8Eh\"><img decoding=\"async\" src=\"http:\/\/i.imgur.com\/v66u8Eh.png\" title=\"source: imgur.com\" \/><\/a><\/p>\n<p><strong>2.Append this header to your partition image using the dos command line copy \/b header.img+part.img disk.img<\/strong><br \/>\n<a href=\"http:\/\/imgur.com\/PM7EG8p\"><img decoding=\"async\" src=\"http:\/\/i.imgur.com\/PM7EG8p.png\" title=\"source: imgur.com\" \/><\/a><\/p>\n<p><strong>3.Adapt MBR type=07 (for ntfs), boot=80, chs start &#038; end=1023*254*63, sectors before=2048, sectors=bootsector.totalsec+1<\/strong><br \/>\n(You need to untick \u00ab\u00a0hide advanced menu\u00a0\u00bb under tools menu to enable advanced screens in CloneDisk).<br \/>\n<a href=\"http:\/\/imgur.com\/G0nj3SR\"><img decoding=\"async\" src=\"http:\/\/i.imgur.com\/G0nj3SR.png\" title=\"source: imgur.com\" \/><\/a><\/p>\n<p><strong>4.Inject boot code (nt6) (this will also fix the mbr magic byte AA55).<\/strong><br \/>\n<a href=\"http:\/\/imgur.com\/j2K7ocd\"><img decoding=\"async\" src=\"http:\/\/i.imgur.com\/j2K7ocd.png\" title=\"source: imgur.com\" \/><\/a><\/p>\n<p><strong>5.Adapt bootSector hiddensec=2048 so that it matches MBR sectors before field<\/strong><br \/>\n<a href=\"http:\/\/imgur.com\/LfUcOMn\"><img decoding=\"async\" src=\"http:\/\/i.imgur.com\/LfUcOMn.png\" title=\"source: imgur.com\" \/><\/a><\/p>\n<p>You are now ready to boot this image as it has all it requires to boot :<br \/>\n-a disk boot record<br \/>\n-a partition table<br \/>\n-a boot sector<br \/>\n-a consistent BPB (bios parameter block)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some specific situations, you may want to backup only one partition but still wish to boot it as a disk image. Lets see below how to turn a partition image into a disk image. Before we start, have a a look at the below disk layout to have a better understanding of items such <a href='https:\/\/labalec.fr\/erwan\/?p=1550' 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":[26],"tags":[],"class_list":["post-1550","post","type-post","status-publish","format-standard","hentry","category-clonedisk","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\/1550","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=1550"}],"version-history":[{"count":14,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1550\/revisions"}],"predecessor-version":[{"id":1564,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1550\/revisions\/1564"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}