<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello, </p>
<p>after more research on the internet, I came to the conclusion that the best way to proceed would be to revert to BIOS partitions with fdisk and MBR booting. However, the machine still fails to boot. I get a black screen with a single word: error. At the
 end of this post follows what I did. What am I missing? Any ideas would be appreciated. </p>
<p><br>
</p>
<p>Note also that in this setting (BIOS instead of GPT slices), the HAMMER2 filesystem failed to mount (<span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">I
 can remember a complaint</span> about missing PFS). </p>
<p><br>
</p>
<p> </p>
<p></p>
<div>dd if=/dev/zero of=/dev/da0 bs=512 count=32                # zero out the disk to start clean</div>
<div>fdisk -iB /dev/da0                                                             # initialize sector 0 of the disk and install the MBR</div>
<div><br>
</div>
<div>                                                                                        # I created two fdisk partitions, each of 150 MB, da0s1 and da0s2. I marked da0s1 as active.</div>
<div><br>
</div>
<div></div>
<div>disklabel64 -r -w -B da0s1 auto </div>
<div></div>
<div><br>
</div>
<div>disklabel64 -e da0s1   <span style="white-space:pre"> </span></div>
<div><span style="white-space:pre"></span>       a: 50G * HAMMER                           # the root partition</div>
<div><span style="white-space:pre"></span>      <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"> b: 8G * swap</span></div>
<div><span style="white-space:pre"></span>       <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">d: * * HAMMER   
                             # the /home partition</span></div>
<div><span style="white-space:pre"></span> </div>
<div>                                       # Note: I first tried with HAMMER2 for both a: and d, but later they failed to mount. </div>
<div>                                       # That is why I reverted to HAMMER</div>
<div></div>
<div><br>
</div>
<div>newfs_hammer -L ROOT /dev/da0s1a         # format the root partition with HAMMER</div>
<div>mount_hammer /dev/da0s1a /mnt                # mount the root partition</div>
<div>mkdir /mnt/home</div>
<div>newfs_hammer -L HOME /dev/da0s1d                 # format the home partition with HAMMER</div>
<div>mount_hammer /dev/da0s1d /mnt/home</div>
<div><br>
</div>
<div><span style="font-size: 12pt;">cpdup / /mnt </span><span style="font-size: 12pt; white-space: pre;"></span><span style="font-size: 12pt;"></span><span style="font-size: 12pt; white-space: pre;"></span><span style="font-size: 12pt;">  # copy the root file
 system</span><br>
</div>
<div><br>
</div>
<div><span style="font-size: 12pt;">vi /mnt/etc/fstab </span><span style="font-size: 12pt; white-space: pre;"></span><span style="font-size: 12pt;">   </span><span style="font-size: 12pt; white-space: pre;">
</span><span style="font-size: 12pt;">  </span><br>
</div>
<div><span style="white-space:pre"></span>    <span style="white-space:pre"></span>  /dev/da0s1a / hammer rw 1 1</div>
<div><span style="white-space:pre"></span>           <span style="white-space:pre">
</span>  /dev/da0s1b none swap sw 0 0</div>
<div><span style="white-space:pre"></span>     <span style="white-space:pre"> </span>
  /dev/da0s1d /home hammer rw 1 1</div>
<div><br>
</div>
<div>vi /mnt/boot/loader.conf<span style="white-space:pre"> </span>  </div>
<div><span style="white-space:pre"></span>    vfs.root.mountfrom="hammer:da0s1a"</div>
<div><br>
</div>
<div><span style="font-size: 12pt;">umount /mnt</span><br>
</div>
<div>reboot</div>
<div><br>
</div>
<br>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:"Calibri","sans-serif"">
  </p>
<br>
<p></p>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Dr. Martin Ivanov<br>
<b>Gesendet:</b> Montag, 29. Oktober 2018 20:40:02<br>
<b>An:</b> Matthew Dillon<br>
<b>Cc:</b> DragonFlyBSD Users<br>
<b>Betreff:</b> AW: DragonFly BSD manual install: cannot boot</font>
<div> </div>
</div>
<div><style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello Matthew,</p>
<p>thank you very much for your reply. The machine is 64 bit.</p>
<p><br>
</p>
<p>From your reply I understand that to boot the GPT-partitioned disk on this non-uefi laptop, I have to create a legacy boot sector. Can I create the legacy boot sector with dragonfly's gpt command? Do I still need the EFI partition I created? Currently the
 EFI partition is the first one on the hard drive. I have separated it from the /boot partition because I want to share it with another operating system (OpenBSD). I want to avoid sharing the whole /boot partition.</p>
<p><br>
</p>
<p>I understand my problem has little to do with Dragonfly BSD, therefore I would be very thankful if you suggest another forum or a mailing list to me, where I can get further help.</p>
<p><br>
</p>
<p>Thank you very much for your attention.</p>
<p><br>
</p>
<p>Best regards,</p>
<p>Martin</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:"Calibri","sans-serif"">
  </p>
<br>
<p></p>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Matthew Dillon <dillon@backplane.com><br>
<b>Gesendet:</b> Montag, 29. Oktober 2018 03:35:58<br>
<b>An:</b> Dr. Martin Ivanov<br>
<b>Cc:</b> DragonFlyBSD Users<br>
<b>Betreff:</b> Re: DragonFly BSD manual install: cannot boot</font>
<div> </div>
</div>
<div>
<div dir="ltr">If its an older machine first be sure that it is a 64-bit capable CPU.  If it isn't, DragonFlyBSD won't run on it anyway as DFly is now 64-bit only.
<div><br>
</div>
<div>For classic booting... someone else might have a better solution for you because I now our live images can dual-boot (non-EFI and EFI) but I don't remember offhand how to set that up.  For a non-EFI boot I use the legacy fdisk program instead of GPT to
 partition the drive (warning, this will wipe everything!!!).   The EFI setup you did is definitely missing the legacy boot sector.  Normally fdisk -B installs this, but it might mess up the rest of the GPT setup so I don't know if that will work.  A Legacy
 low-level format goes something like this:</div>
<div><br>
</div>
<div>fdisk -IB /dev/da0</div>
<div>disklabel -r -w -B /dev/da0s1 auto</div>
<div><br>
</div>
<div>and then go from there.  Note that the UFS 'a' partition should be the first partition on the drive, that is the partition with the lowest LBA, and I would limit it to 1GB in size.  Older systems have trouble addressing high LBAs.</div>
<div><br>
</div>
<div>-Matt</div>
</div>
</div>
</div>
</body>
</html>