From owner-freebsd-questions Sun Jul 19 13:18:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16856 for freebsd-questions-outgoing; Sun, 19 Jul 1998 13:18:20 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harfang.CC.UMontreal.CA (harfang.CC.UMontreal.CA [132.204.2.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA16851 for ; Sun, 19 Jul 1998 13:18:17 -0700 (PDT) (envelope-from beaupran@JSP.UMontreal.CA) Received: from epsom.jsp.umontreal.ca (epsom.JSP.UMontreal.CA [132.204.45.25]) by harfang.CC.UMontreal.CA (8.8.8/8.8.8) with SMTP id QAA07449; Sun, 19 Jul 1998 16:18:02 -0400 (EDT) Received: from outpost.nada.org (derby.jsp.umontreal.ca [132.204.45.26]) by epsom.jsp.umontreal.ca via SMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id QAA08062; Sun, 19 Jul 1998 16:17:59 -0400 Date: Sun, 19 Jul 1998 16:19:57 -0400 (EDT) From: Spidey X-Sender: beaupran@outpost.nada.org To: Julian Elischer cc: Greg Lehey , Question=answer Subject: Re: Howto: UNUSED data on HD, Melting 2 partitions into 1 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG oooops! I missed that! On Sat, 18 Jul 1998, Julian Elischer wrote: > > ########## WARNING.. GROSS HACK!! ############################## > > fdisk -u /dev/rwd0 > > > > edit the LAST table entry (presently ) > > give it the following values: > > > > start: 2056320 > > size: 1016064 > > ending: 3072383 > > type 165 > > > > this will define a new BSD partition that points to the unused space > > below the BSD partition. > > but it is LATER in the table so it won't be the default BSD part.. > > it will show up after a reboot as /dev/rwd0s4 > > > > -reboot- in the same way you just did.. > > copy the bootblocks and disklabel from the existing BSD partition to > the > > new one. > > dd if=/dev/rwd0s2 of=/dev/rwd0s4 count=16 > > this copies the first 8k. you now have a disklabel in that slice. > > and becasue the blocks are refered to in ABSOLUTE TERMS the table entries > > for the partitions still point to the starts of the partitions in the > > other slice. > > > > reboot: (may not be needed but......) > > > > disklabel -r /dev/rwd0s4 > > we should get some valid info but it will probably complain mightily. > > > It occurs to me that this may be enough for you.. > The new space doesn't need to be part of the existing BSD slice.. > we can simply add another. > > Using disklabel -e > you can correct the partitions here so that only partition c and d exist, > and both cover the entire SLICE. then newfs the new 'd' partition. > newfs /dev/rwd0s4d > > this would be all you ned to do.. > enter it into the /etc/fstab as wd0s4d > > you should be done.. Well, I would prefer to have just one fbsd slice... Unless you tell me that it's really shooting myself in the foot... BTW, I lost some mail recently (because I'm an imbecile, and that I don't take rm seriously enough...). Could you forward me the mail greg sent me? thanks! Spidey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message