Date: Thu, 12 Feb 2015 12:10:12 +0300 From: Alexander Lunev <sol289@gmail.com> To: freebsd-questions@freebsd.org Subject: booting two freebsd slices from syslinux (boots always the first freebsd slice) Message-ID: <CABk4_A7TiBuSU%2BjUwF_NyFYGTk2c7-w7WKF=UTF65E=E7yPs1A@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello everyone! I'm trying to make bootable USB flash for servers install and recovery. To make it one USB for all my needs, i've come to this partitioning scheme: % gpart show da0 => 63 15734721 da0 MBR (7.5G) 63 8241282 1 fat32 [active] (3.9G) 8241345 3071943 2 freebsd (1.5G) 11313288 3071943 3 freebsd (1.5G) 14385231 1349523 4 freebsd (659M) 15734754 30 - free - (15K) % ls -l /dev/da da0% da0s1% da0s2% da0s2a% da0s3% da0s3a% da0s4% da0s4a% First partition is fat32 with HP SPP on it, which is booting by syslinux loader. Second is for FreeBSD 10.1-R 32bit system (root mounting from /dev/ufs/fbsd32). Third is for FreeBSD 10.1-R 64bit system (root mounting from /dev/ufs/fbsd64). Fourth is common to both FreeBSD systems /root folder. To make 2nd and 3rd partitions bootable i've make them with 'bsdlabel -B -w /dev/da0s2' and 'bsdlabel -B -w /dev/da0s3'. Here comes syslinux.cfg: label fbsd32 MENU LABEL FreeBSD 32bit KERNEL chain.c32 APPEND boot 2 label fbsd64 MENU LABEL FreeBSD 64bit KERNEL chain.c32 APPEND boot 3 label fbsd4 MENU LABEL FreeBSD 4part KERNEL chain.c32 APPEND boot 4 While booting if i choose label for "fbsd32" label, it boots 32bit system from da0s2. And when i choose "fbsd64" label it also boots 32bit system! I've make "fbsd4" label for testing purposes, it tries to boot from da0s4 slice and it's not booting since there are no boot code in it. Why does it boot from da0s2 system when i choose fbsd64 label? How can i debug booting process? -- your sweet isn't ready yet
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABk4_A7TiBuSU%2BjUwF_NyFYGTk2c7-w7WKF=UTF65E=E7yPs1A>