Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Sep 2022 17:09:44 -0700
From:      paul beard <paulbeard@gmail.com>
To:        Dan Mahoney <freebsd@gushi.org>
Cc:        FreeBSD-questions <freebsd-questions@freebsd.org>
Subject:   Re: making a disk/slice bootable
Message-ID:  <CAMtcK2rtMvRtXw%2Be2eQA%2BP1uVd%2Bi7VubqchgYd00cRKWXH_aJQ@mail.gmail.com>
In-Reply-To: <07BE254D-7701-47F2-94E3-09ED7229FB2B@gushi.org>
References:  <CAMtcK2r4L3SCba4EZt73=F2=fnBnEPGvEL3GCM_38R8_e5meXg@mail.gmail.com> <07BE254D-7701-47F2-94E3-09ED7229FB2B@gushi.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000c35b4405e7a68c72
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

FATAL: no bootable medium found! System halted.

gpart shows me this=E2=80=A6

=3D>       40  134217648  ada1  GPT  (64G)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048    4194304     2  freebsd-ufs  (2.0G)
    4196352    4194304     3  freebsd-swap  (2.0G)
    8390656   10485760     4  freebsd-ufs  (5.0G)
   18876416     524288     5  freebsd-ufs  (256M)
   19400704  114814976     6  freebsd-ufs  (55G)
  134215680       2008        - free -  (1.0M)

All I have done so for is

fdisk -B -b /boot/boot0 device

Not sure that is the right approach with a gpart'ed disk. It wanted to
change the boot code which sounds like what I want.

On Thu, Sep 1, 2022 at 4:45 PM Dan Mahoney <freebsd@gushi.org> wrote:
>
>
>
> > On Sep 1, 2022, at 16:41, paul beard <paulbeard@gmail.com> wrote:
> >
> > I have been mirroring the virtual disk in a FreeBSD vm for a couple of
years and the main disk got corrupted. The mirrored disk doesn't boot, says
it can't find a kernel, so I think I missed out on an additional step,
writing an MBR or boot sector, perhaps.
> >
> > The files are all there if I mount them from a VM with FreeBSD.I assume
there is a way to make a mountable disk bootable.  fdisk and gpart are
available but it's been a long time since I messed around with those.
>
> Let's start with the obvious: Can you post your disk layout?  Mirrored
how?  Gmirror/ZFS/Hardware raid/etc?  MBR or Gpart?
>
> What commands have you tried thusfar?
>
> What does the boot so far look like (i.e. are you hitting the stage 0
boot loader, and getting the loader prompt?)
>
> More info required, please, but this sounds very fixable.
>
> -Dan



--
Paul Beard / www.paulbeard.org/

--000000000000c35b4405e7a68c72
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>FATAL: no bootable medium found! System halted.=C2=A0=
</div><div><br></div>gpart shows me this=E2=80=A6<br><br>=3D&gt; =C2=A0 =C2=
=A0 =C2=A0 40 =C2=A0134217648 =C2=A0ada1 =C2=A0GPT =C2=A0(64G)<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A040 =C2=A0 =C2=A0 =C2=A0 1024 =C2=A0 =C2=A0 1 =C2=
=A0freebsd-boot =C2=A0(512K)<br>=C2=A0 =C2=A0 =C2=A0 =C2=A01064 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0984 =C2=A0 =C2=A0 =C2=A0 =C2=A0- free - =C2=A0(492K)<br>=
=C2=A0 =C2=A0 =C2=A0 =C2=A02048 =C2=A0 =C2=A04194304 =C2=A0 =C2=A0 2 =C2=A0=
freebsd-ufs =C2=A0(2.0G)<br>=C2=A0 =C2=A0 4196352 =C2=A0 =C2=A04194304 =C2=
=A0 =C2=A0 3 =C2=A0freebsd-swap =C2=A0(2.0G)<br>=C2=A0 =C2=A0 8390656 =C2=
=A0 10485760 =C2=A0 =C2=A0 4 =C2=A0freebsd-ufs =C2=A0(5.0G)<br>=C2=A0 =C2=
=A018876416 =C2=A0 =C2=A0 524288 =C2=A0 =C2=A0 5 =C2=A0freebsd-ufs =C2=A0(2=
56M)<br>=C2=A0 =C2=A019400704 =C2=A0114814976 =C2=A0 =C2=A0 6 =C2=A0freebsd=
-ufs =C2=A0(55G)<br>=C2=A0 134215680 =C2=A0 =C2=A0 =C2=A0 2008 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0- free - =C2=A0(1.0M)<br><br>All I have done so for is<div=
><br></div><div>fdisk -B -b /boot/boot0 device<br><br>Not sure that is the =
right approach with a gpart&#39;ed=C2=A0disk. It wanted to change the boot =
code which sounds like what I want.=C2=A0</div><div><br></div><div>On Thu, =
Sep 1, 2022 at 4:45 PM Dan Mahoney &lt;<a href=3D"mailto:freebsd@gushi.org"=
>freebsd@gushi.org</a>&gt; wrote:<br>&gt;<br>&gt;<br>&gt;<br>&gt; &gt; On S=
ep 1, 2022, at 16:41, paul beard &lt;<a href=3D"mailto:paulbeard@gmail.com"=
>paulbeard@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; I have been m=
irroring the virtual disk in a FreeBSD vm for a couple of years and the mai=
n disk got corrupted. The mirrored disk doesn&#39;t boot, says it can&#39;t=
 find a kernel, so I think I missed out on an additional step, writing an M=
BR or boot sector, perhaps.<br>&gt; &gt;<br>&gt; &gt; The files are all the=
re if I mount them from a VM with FreeBSD.I assume there is a way to make a=
 mountable disk bootable. =C2=A0fdisk and gpart are available but it&#39;s =
been a long time since I messed around with those.<br>&gt;<br>&gt; Let&#39;=
s start with the obvious: Can you post your disk layout?=C2=A0 Mirrored how=
?=C2=A0 Gmirror/ZFS/Hardware raid/etc?=C2=A0 MBR or Gpart?<br>&gt;<br>&gt; =
What commands have you tried thusfar?<br>&gt;<br>&gt; What does the boot so=
 far look like (i.e. are you hitting the stage 0 boot loader, and getting t=
he loader prompt?)<br>&gt;<br>&gt; More info required, please, but this sou=
nds very fixable.<br>&gt;<br>&gt; -Dan<br><br><br><br>--<br>Paul Beard / <a=
 href=3D"http://www.paulbeard.org/">www.paulbeard.org/</a></div></div>;

--000000000000c35b4405e7a68c72--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMtcK2rtMvRtXw%2Be2eQA%2BP1uVd%2Bi7VubqchgYd00cRKWXH_aJQ>