gpart bootcode Operation not permitted
Miroslav Lachman
000.fbsd at quip.cz
Fri Apr 3 21:09:08 UTC 2020
Artem Kuchin wrote on 2020/04/03 21:48:
> 03.04.2020 22:44, Miroslav Lachman пишет:
>> Artem Kuchin wrote on 2020/04/03 21:23:
>>
>> gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
>> gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada1
>>
>
> But why i cannot then just install it into mirror/boot?
>
> It does now even show it
>
> # gpart show mirror/boot
> gpart: No such geom: mirror/boot.
>
> # gpart show boot
> gpart: No such geom: boot.
gpart show does not work for unconfigured devices.
If you put brand new empty HDD in to the machine (for example ada2) then
gpart show ada2 will not work too until you create some scheme on it
with "gpart create". Boot partition does not use scheme / filesystem.
Miroslav Lachman
More information about the freebsd-fs
mailing list