From owner-freebsd-questions@FreeBSD.ORG Fri Dec 26 10:30:47 2003 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 7DC9716A4CE for ; Fri, 26 Dec 2003 10:30:47 -0800 (PST) Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 173E843D54 for ; Fri, 26 Dec 2003 10:30:42 -0800 (PST) (envelope-from ginipig@earthlink.net) Received: from user-12hc6vb.cable.mindspring.com ([69.22.27.235] helo=GINIPIG) by avocet.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 1AZwjR-0004vM-00 for freebsd-questions@freebsd.org; Fri, 26 Dec 2003 10:30:41 -0800 Message-ID: <006d01c3cbdd$5bb2eed0$6401a8c0@GINIPIG> From: "Joseph" To: Date: Fri, 26 Dec 2003 12:23:27 -0600 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Migrate /usr (ufs) to different partition (ufs2) on different slice 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: Fri, 26 Dec 2003 18:30:47 -0000 Is it possible for me, in one way or another, to newfs a ufs2 partition = from a differently partitioned slice? I'm using 5_1_releng at the moment, with no evident problems. My = Settings are: /dev/ad0s2e on / (ufs, local, soft-updates) devfs on /dev (devfs, local) /dev/ad0s1g on /home (ufs, local, soft-updates) <--- = Shared /dev/ad0s2h on /usr (ufs, local, soft-updates) /dev/ad0s2f on /var (ufs, local, soft-updates) =20 procfs on /proc (procfs, local) /dev/ad0s1h on /usr/ports/distfiles (ufs, local, soft-updates) <--- = Shared /dev/ad0s1d on /bleh (ufs, local, soft-updates) <--- = Stray ... Additional partions from disklabel: ad0s1a 400 ad0s1e 64 ad0s1f 256 The aforementioned shared slices used to belong to my 4_Stable Partition = that I had initially installed as the main o/s. A fortnight ago, I decided to test 5_1_releng out on some extra space = that I had assigned to document-storage. The installation went Great! I had all the functionality of 4-Stable, = with a few added benefits. Apparently, it went so smoothly that I had now decided to use ad0s1's = (original slice) greater storage capacity to migrate my /usr & /var = over. I will still keep my root partition intact on slice ad0s2e, and I was = hoping that there was some way I could painlessly migrate over the settings. In essence, what I'm trying to do is: Merge space from unused ad0s1; newfs to ufs2; Create new /usr partition based on ad0s1's given space; Create new /var partition " Configure Loader to only recognise the 5_1_releng partition. I understand the implications of this procedure. Namely, I'll lose a = Stable Partition, whilst having to deal with Current's quirks. This isn't a production server, it's more of a hobby machine where I can = learn how to implement commands, and understand coding structure/debug/fix.