Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2015 09:46:18 -0600 (MDT)
From:      Warren Block <>
To:        David Newman <>
Subject:   Re: Missing boot loader (was: Re: creating a virtual clone)
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, 29 May 2015, David Newman wrote:

> On 4/6/15 9:28 PM, Olivier Nicole wrote:
>> My solution is
>> certainly not the best/fastest, but it works.
> Thanks for this. After following the clone instructions, restore appears
> to work, but the system comes up with a "Missing boot loader" error.
> This is perhaps because the next-to-last step from the live CD is:
> cd /
> mount -o rw /dev/da0p1 /mnt
> gpart bootcode -b /mnt/boot/pmbr -p /mnt/boot/gptboot -i 1 da0
> And that returns "/dev/da0p1: Operation not permitted" even though da0p1
> is the target system's root/boot partition.

In this code, da0 is the source disk, where the bootcode files are read. 
It is mounted on /mnt.  So there are two reasons that gpart cannot write 
bootcode to da0p1.  First, it is mounted, and second, it is filesystem 
partition, not a freebsd-boot partition.

The target disk cannot be da0p1.  Maybe it is a simple typo, and 
either the second or third line was meant to be ada0 rather than da0.

Want to link to this message? Use this URL: <>