From owner-freebsd-questions@FreeBSD.ORG Sun Jan 25 07:22:04 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17D8516A4CE for ; Sun, 25 Jan 2004 07:22:04 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE31143D1F for ; Sun, 25 Jan 2004 07:21:59 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i0PFLsjc011793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 25 Jan 2004 15:21:54 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i0PFLsAP011792; Sun, 25 Jan 2004 15:21:54 GMT (envelope-from matthew) Date: Sun, 25 Jan 2004 15:21:54 +0000 From: Matthew Seaman To: Robert Fitzpatrick Message-ID: <20040125152154.GA11028@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Robert Fitzpatrick , FreeBSD References: <1074986019.4114.53.camel@columbus> <20040125110337.GA5755@happy-idiot-talk.infracaninophile.co.uk> <1075041101.5739.14.camel@columbus> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <1075041101.5739.14.camel@columbus> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Subject: Re: Mounting free space X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2004 15:22:04 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 25, 2004 at 09:31:41AM -0500, Robert Fitzpatrick wrote: > On Sun, 2004-01-25 at 06:03, Matthew Seaman wrote: > > You need to edit that, using the command: > >=20 > > # bsdlabel -e aac0s1 > >=20 > > which will put you into the editor specified in your $EDITOR > > environment variable (defaults to: vi(1)) with that text in there. > > Edit the text so that it looks like: > >=20 > > 8 partitions: > > # size offset fstype [fsize bsize bps/cpg] > > c: 71681967 0 unused 0 0 =20 > > h: 71681967 0 4.2BSD 1024 8192 16 > >=20 > > [ie. copy the 'size' value that your system automatically puts into > > the c: partition entry] > >=20 >=20 > This is what I have below, I added the labels to the right of how I'm usi= ng them now and they were setup during install. The whole disk is used for = FreeBSD. I know that I have 100GB of free space left on the c: partition. W= hat I'd like to do is take 20GB of that free space only and make mount it. = That 100MB is for remote backup of some clients, I have one now that will b= e sending up to 20GB. Next week, I may create another 5GB for another custo= mer. I like the idea of having a separate partition for each customers data. >=20 > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 4096000 0 4.2BSD 2048 16384 28552 # / 2000MB > b: 4139008 4096000 swap > c: 312448122 0 unused 0 0 # "raw" part, do= n't edit > d: 40960000 8235008 4.2BSD 2048 16384 28552 # /usr 20000MB > e: 20480000 49195008 4.2BSD 2048 16384 28552 # /var 10000MB > f: 2048000 69675008 4.2BSD 2048 16384 28552 # /tmp 1000MB > g: 35923968 71723008 4.2BSD 2048 16384 28552 # /home 17541MB >=20 > Anyway, I just want to take part of the free space, not all of it, right = now, and want to be sure about what I'm doing. How do I get just that 20GB = setup? Using your example, is this what I need to do in the editor: >=20 > # size offset fstype [fsize bsize bps/cpg] > > c: 71681967 0 unused 0 0 =20 > > h: 40960000 0 4.2BSD 1024 8192 16 >=20 > Thanks for the great instructions. Careful. Are you using all of those other partitions already on the device? If you are, then you need to preserve all of those entries 'a' to 'g'. If you are using all of those partitions already, then you've only got the 'h' partition left to play with. Leave all of the other lines alone and add: h: 204801146 107646976 4.2BSD 1024 8192 16 This will give you a partition of approximately 51Gb filling up the rest of the space on the device. You can get back another partition by not having /tmp on a separate partition: I find using a mermory filesystem (see mount_mfs(8)) backed by the swap area works well. If you don't use up all of the extra space on the device with the 'h' partition, then you won't be able to use the rest of the available space without a deal of effort. In principle, you can make two FreeBSD slices on the device, to give you a grand total of 16 partitions (well, 14, as you can use the 'c' partitions directly). It should be possible to split the current slice into two, so long as you don't clip the end off your 'g' partition. However, that is an operation that runs a high risk of completely trashing everything on the drive. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAE98SdtESqEQa7a0RAmjyAJ0Tgff6T0qUUpDU/HBPqM5eaQLTKACgifQG KHLiRzZcZpqAmTR3cemkRt8= =ceRd -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--