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
[-- Attachment #1 --]
FATAL: no bootable medium found! System halted.
gpart shows me this…
=> 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/
[-- Attachment #2 --]
<div dir="ltr"><div>FATAL: no bootable medium found! System halted. </div><div><br></div>gpart shows me this…<br><br>=> 40 134217648 ada1 GPT (64G)<br> 40 1024 1 freebsd-boot (512K)<br> 1064 984 - free - (492K)<br> 2048 4194304 2 freebsd-ufs (2.0G)<br> 4196352 4194304 3 freebsd-swap (2.0G)<br> 8390656 10485760 4 freebsd-ufs (5.0G)<br> 18876416 524288 5 freebsd-ufs (256M)<br> 19400704 114814976 6 freebsd-ufs (55G)<br> 134215680 2008 - free - (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'ed disk. It wanted to change the boot code which sounds like what I want. </div><div><br></div><div>On Thu, Sep 1, 2022 at 4:45 PM Dan Mahoney <<a href="mailto:freebsd@gushi.org">freebsd@gushi.org</a>> wrote:<br>><br>><br>><br>> > On Sep 1, 2022, at 16:41, paul beard <<a href="mailto:paulbeard@gmail.com">paulbeard@gmail.com</a>> wrote:<br>> ><br>> > 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.<br>> ><br>> > 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.<br>><br>> Let's start with the obvious: Can you post your disk layout? Mirrored how? Gmirror/ZFS/Hardware raid/etc? MBR or Gpart?<br>><br>> What commands have you tried thusfar?<br>><br>> What does the boot so far look like (i.e. are you hitting the stage 0 boot loader, and getting the loader prompt?)<br>><br>> More info required, please, but this sounds very fixable.<br>><br>> -Dan<br><br><br><br>--<br>Paul Beard / <a href="http://www.paulbeard.org/">www.paulbeard.org/</a></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMtcK2rtMvRtXw%2Be2eQA%2BP1uVd%2Bi7VubqchgYd00cRKWXH_aJQ>
