From owner-freebsd-questions@FreeBSD.ORG Mon Mar 1 18:50:29 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0E7C106567D for ; Mon, 1 Mar 2010 18:50:29 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from mail.gelita.se (212-162-182-244.skbbip.com [212.162.182.244]) by mx1.freebsd.org (Postfix) with ESMTP id 9B2F38FC1D for ; Mon, 1 Mar 2010 18:50:29 +0000 (UTC) Received: from mail.gelita.se (localhost.gelita.se [127.0.0.1]) by mail.gelita.se (Postfix) with ESMTP id A302510E50A; Mon, 1 Mar 2010 19:52:25 +0100 (CET) X-Virus-Scanned: amavisd-new at troback.com Received: from mail.gelita.se ([127.0.0.1]) by mail.gelita.se (mail.gelita.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GMTT5oKyhTvh; Mon, 1 Mar 2010 19:52:20 +0100 (CET) Received: from bljbsd01.no-ip.org (c-195-216-040-164.static.bjare.net [195.216.40.164]) by mail.gelita.se (Postfix) with ESMTP id 28CD010E79E; Mon, 1 Mar 2010 19:52:20 +0100 (CET) Message-ID: <4B8C0C6E.3020009@eskk.nu> Date: Mon, 01 Mar 2010 19:50:22 +0100 From: Leslie Jensen User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; sv-SE; rv:1.9.1.8) Gecko/20100226 Thunderbird/3.0.2 MIME-Version: 1.0 To: Polytropon References: <4B8B881C.1040008@eskk.nu> <20100301174901.95041084.freebsd@edvax.de> In-Reply-To: <20100301174901.95041084.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Adding slice on existing disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 18:50:30 -0000 On 2010-03-01 17:49, Polytropon wrote: > On Mon, 01 Mar 2010 10:25:48 +0100, Leslie Jensen wrote: >> On a dualboot system I've made some space available that I want to make >> a freebsd slice of. >> [...] >> Any suggestions on how to solve this? > > I would suggest to use sysinstall oder sade for this task, > this is because I'm lazy. :-) > > In the slice editor, you create a slice covering the space > you made free, or, if neccessary, you delete obsolete slices > prior to creating a new one. > > In the label editor, you select the new slice (e. g. ad4s4) > and create a partition covering the whole slice. You set > the options "UFS2+S Y" (which means to use UFS2 file system > plus soft updates, and "yes" to newfs, so the partition will > be formatted), and set a mountpoint that you have already > created (e. g. /data). > > Finally you confirm the settings and write them to the disk. At this screen: -------------------------------------------------------------- FreeBSD Disklabel Editor Disk: ad4 Partition name: ad4s4 Free: 0 blocks (0MB) Disk: ad4 Partition name: ad4s3 Free: 0 blocks (0MB) Part Mount Size Newfs Part Mount Size Newfs ---- ----- ---- ----- ---- ----- ---- ----- ad4s4d /data 30866MB UFS2+S Y ad4s3a 1024MB * ad4s3b swap 4096MB SWAP ad4s3d 2048MB * ad4s3e 4096MB * ad4s3f 20480MB * ad4s3g 28125MB * The following commands are valid here (upper or lower case): C = Create D = Delete M = Mount pt. W = Write N = Newfs Opts Q = Finish S = Toggle SoftUpdates Z = Custom Newfs T = Toggle Newfs U = Undo A = Auto Defaults R = Delete+Merge Use F1 or ? to get more help, arrow keys to select. -------------------------------------------------------------- Unfortunately at this point when I choose W to write the changes I get the following error: Unable to add /dev/ad4s3b as a swap device: the device is busy This is the existing swap partition so I do not quite understand why I get this error Then I choose OK and then I get: Error mounting /dev/ad4s4d on /data : No such file or directory > This should work fine. > > Of course, you can do the same using the command line tools, > in the same order: > 1. create new slice, > 2. create new partition inside slice, > 3. format the partition, and finally > 4. mount it. > > >