<div dir="ltr">&gt;<br>&gt;<br>&gt; On 22.07.2017 19:35, Aruna Hewapathirane wrote:<br>&gt; [...]<br>&gt; &gt;&gt;&gt; sudo losetup -o $((2048*512)) /dev/loop1 hd.img<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; should&#39;nt it be 63*512 ?<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; nope should be 2048 and this is why --&gt;<br>&gt; &gt; <a href="https://superuser.com/questions/352572/why-does-the-partition-start-on-sector-2048-instead-of-63" target="_blank">https://superuser.com/<wbr>questions/352572/why-does-the-<wbr>partition-start-on-sector-<wbr>2048-instead-of-63</a><br>&gt;<br>&gt; it is for new hard disks,<br><br>Yes agreed it is for newer hard disks..<br> <br>&gt; here it conflicts with geometry used:<br>&gt;<br>&gt; &gt;&gt;&gt;&gt; fdisk -u -C100 -S63 -H16 hd.img<br><br>Actually no because if you look at the initial email hao sent carefully in step 2:<br><br>2. Create a primary partition.<br>fdisk -u -C100 -S63 -H16 hd.img<br><br>Notice even though hao *has* specified the geometry, fdisk does not show this ? Try it and see... if we go through the process and ask fidsk to print the partition information. This is what I see :<br><br>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<br>Command (m for help): p                        <br>Disk hd.img: 49.2 MiB, 51609600 bytes, 100800 sectors ---&gt; geometry is usually shown on the next line but zilch here ? <br>Units: sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disklabel type: dos<br>Disk identifier: 0x4c0d7fa4<br><br>Device     Boot Start    End Sectors  Size Id Type<br>hd.img1          2048 100799   98752 48.2M 83 Linux<br>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<div><br>But if I do this: /sbin/fdisk -c=dos -u -C100 -S63 -H16 hd3.img<br><br>then fdisk complains saying DOS-compatible mode is deprecated, and after going through the process once again and we ask fdisk to print the partition we see:<br><br>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>Command (m for help): p<br>Disk hd3.img: 49.2 MiB, 51609600 bytes, 100800 sectors<br>Geometry: 16 heads, 63 sectors/track, 100 cylinders &lt;----  fdisk shows geometry this time around ah-ha !<br>Units: sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disklabel type: dos<br>Disk identifier: 0x030e7198<br>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div><br>I put together a small video will make it easier for you to see all the above: <a href="https://youtu.be/kmG7CCy-F9Q">https://youtu.be/kmG7CCy-F9Q</a><br><br>&gt; and maybe conflicts with Bochs BIOS options or disk geometry options ?<br><br>Mmm.. I don&#39;t believe there are any conflicts. Please watch the video I sent earlier. <br>It has a fix and working solution : <a href="https://youtu.be/6oqTu8utMe4" target="_blank">https://youtu.be/6oqTu8utMe4</a><div><br></div><div>:)<br><br>Thank&#39;s - Aruna<br><br><br> <br>&gt;<br>&gt; --<br>&gt; Best regards,<br>&gt; Kamil Konieczny<br>&gt; Samsung R&amp;D Institute Poland<br>&gt;</div></div></div>