From owner-freebsd-questions@freebsd.org Wed Mar 28 10:39:30 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 55324F73891 for ; Wed, 28 Mar 2018 10:39:30 +0000 (UTC) (envelope-from moheed.ms@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 C3A9781F5E for ; Wed, 28 Mar 2018 10:39:29 +0000 (UTC) (envelope-from moheed.ms@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id r82so4338991wme.0 for ; Wed, 28 Mar 2018 03:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oz/8JbPkRthNtfxjtQVXvXEGhQIpML80MWgCOAcLl9k=; b=MgDMQ9phffmuiAwk7Vmb/RqyaG6XsgrO3VLdjPOJ2l4yCFBjak8OGTB5Go9ZK+4XB2 KUSpqnYCZR1rRr/dqWmgSNl7d+hYtD+TZdChIjgHLrieIhoDga35rO8ZU6uvK9csic6o juQrD0+FqL7hqx4e629bPZvqoYnjpXmAwUQOKNOTnempXzQXOvqHK0Wznox5bwgiBjNJ THRVZpuk9dc1CbqgteS6H5BpTpDQhXNphtcmeRVmOfpIfgPgj+NHwU8YakfN8wrfnBmy xZeU0hkTfn7QUFo0p6AXKxUMt7tnJbvbn7fE5+5uZHmNeh30evh0y3F5sY0hL5BYATU6 hJdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oz/8JbPkRthNtfxjtQVXvXEGhQIpML80MWgCOAcLl9k=; b=POjfVUWrGd4uRZw4ACyvPslZW7mC7m7QZRZRR/fnYEf86uY38ofa5XGxOos6CDWLq9 uRwsa8kfBMI9uWuexI63rfKZdJFm0+QhBscT7HuoGTAVi6qlR55PMnHnt8k56p4XEE39 XJ6xPQHwVdBrRTz8f97IIQv+0HJhro7kFgzdmTpBGGLApokHa5G7CA1Dmeh4z+PSPJ0E dngNG2DRTMNNKEQ0FIz5mGvQAAkquW5lvy68J2I4UORTsedW6K470PT+cuVktqqLpq9V A9IQb22lfYGM86nv0RDt0AnMO3v4036vgEB/FgmMmztgHBrKRUXVGrRvT4hQamRJTJPa 2Dwg== X-Gm-Message-State: AElRT7E2rz4xOzTkUH/+PYqwiruWc/sfnFLhC0YjDT0fes3TZuDh7lkO 906BNu9POlYRR2eSpk7RTVNd9mx6vnmUj4HG21Y= X-Google-Smtp-Source: AIpwx49CPsXgn/5tiFH9W0aishB70hW2zf/FrKcadLsTHiMIKbz/St+RMdWx4SMmiClTe9ZEznEisXsDIzYZiB2NW/M= X-Received: by 10.28.53.194 with SMTP id c185mr2330419wma.27.1522233568241; Wed, 28 Mar 2018 03:39:28 -0700 (PDT) MIME-Version: 1.0 References: <20180325155149.GA494@admin.sibptus.transneft.ru> In-Reply-To: <20180325155149.GA494@admin.sibptus.transneft.ru> From: Moheed Ahmad Date: Wed, 28 Mar 2018 10:39:17 +0000 Message-ID: Subject: Re: How to make default root as partition-d (ada0s1d) To: Victor Sudakov Cc: 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: Wed, 28 Mar 2018 10:39:30 -0000 Thanks Victor. Do you mean echo "0:ad(1,d)/boot/loader" > part-a:/boot.config Or echo "0:ad(1,d)/boot/loader" > part-d:/boot.config Putting boot.config in part-a makes it working. However that is not what I'm looking for. I've Bsd installation on both a and d. However, if for some reason I wipe out part-a.. (say for example installing another version or I want to use this part for some other purpose )I can't rely on storing /boot.config in part-a. What I am looking is, if there is a way to specify label(or part) to boot1 during its installation. [I'm ready to spend time on boot1 code if it's not supported already]. Specifying it in a boot.config in part-a defeats the very idea of booting from another partition independent of part-a. Thank you. Moheed On Mon, Mar 26, 2018, 7:01 AM Victor Sudakov wrote: > Moheed Ahmad wrote: > > 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). > > If you try > > echo "0:ad(1,d)/boot/loader" > /boot.config > > > Is it ignored? > > -- > Victor Sudakov, VAS4-RIPE, VAS47-RIPN > AS43859 >