Date: Sun, 25 Jan 2004 15:21:54 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Robert Fitzpatrick <robert@webtent.com> Cc: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Mounting free space Message-ID: <20040125152154.GA11028@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <1075041101.5739.14.camel@columbus> References: <1074986019.4114.53.camel@columbus> <20040125110337.GA5755@happy-idiot-talk.infracaninophile.co.uk> <1075041101.5739.14.camel@columbus>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040125152154.GA11028>