Арсений Яковлевич пишет:Поставил OpenBSD 5.4, но после перезагрузки получил вот это:
>> OpenBSD/i386 BOOT 3.21
open(hd0a:/etc/boot.conf): Invalid argument
failed(22). will try /bsd
запустить систему получилось только после ввода:
Я так понял, что проблема из-за того, что я первым разделом создал swap, а вторым корневую файловую "
root filesystem".
Следующее заклинание не помогает:
echo "boot hd0b:/bsd" > /etc/boot.conf
Вводить "
boot hd0b:/bsd" после каждой загрузки/перезагрузки не помогает.
Вопрос: как можно выставить загрузку из "
hd0b:/bsd" по умолчанию?
Ага: http://en.wikipedia.org/wiki/BSD_disklabel
1.) Partition 'a' is the "root" partition, the volume from which the operating system is bootstrapped. The boot code in the Volume Boot Record containing the disklabel is thus simplified, as it need only look in one fixed location to find the location of the boot volume;
2.) Partition 'b' is the "swap" partition;
3.) Partition 'c' overlaps all of the other partitions and describes the entire disk. Its start and length are fixed. On systems where the disklabel co-exists with another partitioning scheme (such as on PC hardware), partition 'c' may actually only extend to an area of disk allocated to the BSD operating system, and partition 'd' is used to cover the whole physical disk.
А если на великом да могучем, то во всех BSD (NetBSD, OpenBSD, FreeBSD and DragonFly BSD) подобных системах метки 'a' and 'b' зарезервированы - первая под системный (ака корневой "/") раздел, а вторая под файл подкачки (ака своп) и думаю что, восстановить нормальную загрузку можно только либо перепиливанием меток (ака disklabel/bsdlabel) либо же переустановкой системы с правильным присвоением меток.
Создать своп первым в начале правильная мысль, но для этого нужно сначала его создавать как "a b", а после уже метить корневой.