Re: making a disk/slice bootable
- In reply to: Dan Mahoney : "Re: making a disk/slice bootable"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Sep 2022 00:09:44 UTC
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/