From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 09:10:34 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1C2C9C33 for ; Thu, 12 Feb 2015 09:10:34 +0000 (UTC) Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E08A811E for ; Thu, 12 Feb 2015 09:10:33 +0000 (UTC) Received: by iecat20 with SMTP id at20so10332608iec.12 for ; Thu, 12 Feb 2015 01:10:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Bz//Bp6PInuWLmCZk5ONhEgiWB/CARqJgmTJrDEYSQI=; b=ufDkQVYVLiIsMo9CnFRwhoh9nbStkDeOU2NkqzL0uTjCSFRaJGpLzC3Stdky9DJYcQ Sj5g78opkOqXDe5uS0OpIgXJATMsSzQkW9sREWkOgEsfo+QlIWA/iy7hzvcwaR8ML7K3 BcFqwwD+rPxY0JfN6PGP1KT2g9ABgLowTS0BFvw2LfLdK7/DzZHNOUGySXeTvd6pBhCe 4GTYu6gbqAtpeQ3mCql2832IcoJ2KjsY9BqueG790o6v9fENd3lRS65fuEfaxfl7QPH1 4Jo92hBU5YketEHvz+7PKBjiAweQTBydLgmdGn+hNd9kAYU88t96AS2wRm0F6BES73m9 R3+g== X-Received: by 10.42.188.133 with SMTP id da5mr7253084icb.37.1423732232932; Thu, 12 Feb 2015 01:10:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.119.34 with HTTP; Thu, 12 Feb 2015 01:10:12 -0800 (PST) From: Alexander Lunev Date: Thu, 12 Feb 2015 12:10:12 +0300 Message-ID: Subject: booting two freebsd slices from syslinux (boots always the first freebsd slice) To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2015 09:10:34 -0000 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