From owner-freebsd-hackers@FreeBSD.ORG Fri May 27 17:45:21 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EDBD106564A for ; Fri, 27 May 2011 17:45:21 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 106548FC15 for ; Fri, 27 May 2011 17:45:20 +0000 (UTC) Received: by bwz12 with SMTP id 12so2153360bwz.13 for ; Fri, 27 May 2011 10:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=DZe0cYPJuyEz0UTjh/L/3DoIgAz7g7z09BQoulqITVM=; b=lWcy9Yg2Zd+wXHxlmhs8L03kqKRyYLfxjp3KculdgMCjKnGqmBz5yb3iYZ4tSo25gV 2vKGS9jq14T5ipVtKdIgCJPI79hz1cHdSTpUpvD/IZZGPpAen+gNt1TnI+175zxKY6GC car+6Ou3sDOhMtEm3cOMalmRx8JOrHaPDGOxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=cSBZpou0sLNMZR9OD4Y526K0wZ9KwUR35ynPN/v2UKMmf7MSLhGJYxCf1aOYWRuu/6 DQGLETr7/TuzhW5XQNLqzriYbrcpUVBbNLB1Zz+3uqnMDdamStu2Tywf3yo8vy+hSCHO 7Zw1g/YMRvJ4fZkdHPzyJMy1F01HVIFStIQQM= MIME-Version: 1.0 Received: by 10.204.14.144 with SMTP id g16mr2019829bka.34.1306516866046; Fri, 27 May 2011 10:21:06 -0700 (PDT) Received: by 10.204.66.81 with HTTP; Fri, 27 May 2011 10:21:05 -0700 (PDT) Received: by 10.204.66.81 with HTTP; Fri, 27 May 2011 10:21:05 -0700 (PDT) In-Reply-To: <20110527.164723.750.2@DEV> References: <20110527.124553.718.1@DEV> <20110527134754.GA94769@freebsd.org> <20110527.164723.750.2@DEV> Date: Fri, 27 May 2011 18:21:05 +0100 Message-ID: From: Chris Rees To: rank1seeker@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: hackers@freebsd.org Subject: Re: Active slice, only for a next boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 17:45:21 -0000 On 27 May 2011 17:47, wrote: > > ----- Original Message ----- > From: Alexander Best > To: rank1seeker@gmail.com > Cc: hackers@freebsd.org > Date: Fri, 27 May 2011 13:47:54 +0000 > Subject: Re: Active slice, only for a next boot > > > On Fri May 27 11, rank1seeker@gmail.com wrote: > > > Idea is ... > > > I have i.e; 3 slices, of which first is active. > > > Now I wana set slice 2 active, but only for a one/next boot. > > > Once slice 2 is booted and system is shutdown or rebooted, once again, > first slice is active and booted, without user's intervention. > > > > > > Is this possible or should be implemented? > > > > take a look at the gpart(8) manual, expecially the ATTRIBUTES section. if > you > > are running with a GPT scheme you can use the "bootonce" attribute to do > > exactly what you asked for. > > > > cheers. > > alex > > > > Thanls, but I need it for MBR. > > Domagoj S. MBR has only a one-bit wide field for active status. You'll need logic in the first boot to change the flag, perhaps an fdisk statement. Chris