From owner-freebsd-stable@FreeBSD.ORG Fri Oct 20 09:10:49 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D7DB16A415 for ; Fri, 20 Oct 2006 09:10:49 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D75943D46 for ; Fri, 20 Oct 2006 09:10:48 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1GaqOt-000NRs-7f; Fri, 20 Oct 2006 11:10:47 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-stable@FreeBSD.ORG, r00t_0101@yahoo.com In-reply-to: <200610200810.k9K8AwBM063342@lurza.secnetix.de> References: <200610200810.k9K8AwBM063342@lurza.secnetix.de> Comments: In-reply-to Oliver Fromme message dated "Fri, 20 Oct 2006 10:10:58 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 20 Oct 2006 11:10:47 +0200 From: Danny Braniss Message-ID: Cc: Subject: Re: BSD/Linux slices like Solaris' Solstice DiskSuite X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2006 09:10:49 -0000 > r00t_0101 wrote: > > Does anyone know how to create a true slice on a BSD/Linux node. > > I know that Solaris uses Solstice DiskSuite or some type of volume > > management where you are able to reboot to a particular partition > > through command-line instead of manual reboot. So whith that said, my > > goal is to create multiple slices (FreeBSD, Linux 6.x, Linux 7.x, etc > > ...) where I could ssh into a node to be able to reboot into another > > partition based on my work environment. This would be useful due to > > working remotely with different environments. > > I'm not sure I understand your question correctly. Use the > fdisk(8) utility to create slices on FreeBSD (you can also > use sysinstall(8) if you prefer a gaily colored interface). > > To change the active slice to, say, the third one, use the > command "fdisk -a 3 /dev/yourdisk". That will request for > confirmation interactively. To do it non-interactively > (e.g. in a script), use "echo a 3 | fdisk -f - /dev/...". I use 'bsdlabel -s[1234] /dev/mydisk' all the time when changing between 'slices' danny