From owner-freebsd-questions@FreeBSD.ORG Thu Apr 8 09:30:19 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 BBC8C16A4CE; Thu, 8 Apr 2004 09:30:19 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6318343D3F; Thu, 8 Apr 2004 09:30:18 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i38GU5gP026673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Apr 2004 17:30:05 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i38GU5HS026672; Thu, 8 Apr 2004 17:30:05 +0100 (BST) (envelope-from matthew) Date: Thu, 8 Apr 2004 17:30:05 +0100 From: Matthew Seaman To: Tadimeti Keshav Message-ID: <20040408163005.GB26470@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Tadimeti Keshav , freebsd-questions@freebsd.org, freebsd-database@freebsd.org References: <20040408152347.24355.qmail@web25003.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qcHopEYAB45HaUaB" Content-Disposition: inline In-Reply-To: <20040408152347.24355.qmail@web25003.mail.ukl.yahoo.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 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 X-Virus-Scanned: clamd / ClamAV version devel-20040323, clamav-milter version 0.70a cc: freebsd-database@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: partition deletion and creation 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: Thu, 08 Apr 2004 16:30:20 -0000 --qcHopEYAB45HaUaB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 08, 2004 at 04:23:47PM +0100, Tadimeti Keshav wrote: > Hi list, > I have freeBSD installed on my 40 GB HDD with the > foll. layout: > / =3D 512MB > swap=3D1GB > /var=3D512MB > /tmp=3D512MB > /usr=3D8GB > /home=3D26GB > (It should roughly total to the max available ~37GB) > I want to have /home resized to 20GB and then create 4 > mount points /u01=3D3GB,/u02=3D2GB,/u03=3D512MB,/u04=3D512MB. That's feasible, except you can only have 8 partitions per slice. Actually 7, since the 'c' partition is special and you shouldn't use it to put filesystems on. =20 > I have 2 options: > 1. using /stand/sysinstall-->fdisk to delete /home, > create the new partitions, and then mount the > mount-points. Q=3Dwill this format all older partitions > (/usr,/...), forcing me to reinstall FreeBSD again? > Clearly I don't want this. I have spent quite a while > to get the setup running. Don't use /stand/sysinstall to do this: use disklabel(8) [if you're running 4.x] or bsdlabel(8) [if you're running 5.x]. Run whichever of those commands with the '-e' flag, and it will put you in an editor window with the partition table data that you can modify to your hearts content. Remember to unmount any partitions you're going to modify before starting. Any partition you create, or change the size of will need a new filesystem created on it (newfs(8)) and will end up empty. The partitions you don't modify will be left alone. However, this question is academic given that you need more partitions than you can have in a single slice. =20 > 2. create links to /home/u01 from /u01, /home/u02 from > /u02.. > ln -s /home/u01 /u01 > Can I install Oracle this way? Sounds like a plan. It's certainly worth trying. If Oracle insists on having real filesystems then there's several other possibilities you might want to consider: * mount_null(8) -- you can create a loopback mount of some other directory on your filesystem. Despite the awful warnings in the man page, this actually works fairly well although it would be safer to use it for data that is mostly read-only. * vnconfig(8) [4.x] or mdconfig(8) [5.x] -- Create a filesystem image on a vnode device backed by a file, and mount that wherever you need to. Works pretty smoothly 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 --qcHopEYAB45HaUaB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAdX4NdtESqEQa7a0RAlWoAJ4pI5dczxdPeOgyAQY+0TGiqcIkPwCfW0TQ lFnX1xRPMok0QwOlO+TyENU= =G5HM -----END PGP SIGNATURE----- --qcHopEYAB45HaUaB--