From owner-freebsd-questions@freebsd.org Sat Mar 24 13:11:37 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4450AF6C611 for ; Sat, 24 Mar 2018 13:11:37 +0000 (UTC) (envelope-from moheed.ms@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 B653F6B2DF for ; Sat, 24 Mar 2018 13:11:36 +0000 (UTC) (envelope-from moheed.ms@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id t7so8016437wmh.5 for ; Sat, 24 Mar 2018 06:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=27mYW7t1wChvW5YiqdqTkhUPgwg2oGi7K+0dWRMFiu4=; b=iiBKlT8i6URbhsUwz6fciJa9FlCZJQ0GLINqzVl9v16HWVp2A+NP9xdGaaZx4jfeNI OAVRAl7uyo/fQyUuEbVQeHZZe0h8mk545E4Z9LBzQTnJ9wMuBYgawXk6x/T0Us+Pl8e1 i9iMFeN2CRd/ICDts/JbGj+zWA11PVotN4q20+6BA3bbm2gknGK/79FaXlcJyoNbg5xb 22wjnK8FhHNJ5T7bR1UpAmjEjvQPDWSEF1zbn30+0Zfm3hxOjWtFHCliMz7s8Ql3iu8I oWp5vgPANpAZdRGyzv6ToBck4aMoe7wNBoRbS5dL0akUXqZq1XSh4tOp05v3lCPU9sEs SpNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=27mYW7t1wChvW5YiqdqTkhUPgwg2oGi7K+0dWRMFiu4=; b=IvqN7Vz5ZIfKc9Tc4aMypYEJTthf60EHkb82PvL+WKlb+mfRd6Zw/78L4qnMG6p4gj kAA0KuCKWTFNNTB01V6fCLmHR7FTOMoz7bUrq1hWtq6PWlCi9pU89Or7UHysKLzqPJi8 /tef6h94k2VaW3xuWsA2QzOKpZR6YvUEkctqbVqo11FCHKMQzJGKcm+9eMg+Rrc88IMx 4QpI70lc0LsV01Akh0fyMJ00VJpWqE+uO8XcH3YvO18yf1Dhvc4T81yBcU7LYjqjOFmO E45kTJoHCgPVD8PhDsM8d7LTvYndhhnwy/LqGsTV9VUOK3XhEn1LjJe0orcqmNT6Kb1m XS7g== X-Gm-Message-State: AElRT7ECJGzDFARhbyL5U4oEg9B/gBQjhju0Q7hYK0Tgb8tSihSPzhPg ulO3CEZOA/g9ItACGGEdEFq7eZ28L9FCzYw8jMA= X-Google-Smtp-Source: AIpwx49Uqc3TLNruUFHUTC+npr+7r90TydfqQLesmxihAkh28F7KzY8k8qS8+CCBROhv8FEN6XNTyvsPZvi7Jck4HJg= X-Received: by 10.28.53.194 with SMTP id c185mr818116wma.27.1521897095196; Sat, 24 Mar 2018 06:11:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.145.230 with HTTP; Sat, 24 Mar 2018 06:11:04 -0700 (PDT) From: Moheed Ahmad Date: Sat, 24 Mar 2018 18:41:04 +0530 Message-ID: Subject: How to make default root as partition-d (ada0s1d) To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Mar 2018 13:11:37 -0000 Hello there, I am trying to have two different version of bsd on a single slice. I've an MBR partitioned 2T disk with single slice. I've divided disk to 4 slices. ada0s1a [9.x bsd here] ada0s1b [swap] ada0s1d [want 11.x bsd here] ada0s1e [data partition] Installation goes fine and things boot fine. However, everytime I boot, default boot happens from 0:ad(1,a)/boot/loader. How can this default be changed so that default boot happens from ):ad(1,d). I went through the boot-mgr, boot0, bootcfg, nextboot docs It says 'a' is treated as traditional root. and /boot/boot code always tries to load loader from 'a'. For the gpt-scheme there are attributes bootme/bootonce etc that can mark a partition to be booted by default everytime. However for MBR(with disklabels), I don't see any option available. [Other than possibly modify boot/boot code to treat 'd' as default /. -- -Moheed "I am who I am, no matter where I am or who I am with."