From owner-freebsd-questions Wed May 13 20:11:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA20083 for freebsd-questions-outgoing; Wed, 13 May 1998 20:11:28 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA20059 for ; Wed, 13 May 1998 20:11:10 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id UAA15556; Wed, 13 May 1998 20:05:28 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd015552; Thu May 14 03:05:21 1998 Date: Wed, 13 May 1998 20:05:18 -0700 (PDT) From: Julian Elischer To: BEAUPRE Antoine cc: freebsd-questions Subject: Re: 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 you CAN do that but you have to REALLY KNOW WHAT YOU ARE DOING! 0/ write down (or better, print) teh output of fdisk and disklabel for the appropriate device. 1/ boot the fixit floppy, (I presume it has fdisk, disklabel and dd) 2/ copy the first 8K from the existing BSD partition to the first 8k of the Win95 partition using dd and teh raw devices ( dd if=/dev/rwd0s2 of=/dev/rwd0s1 count=16) 2/ using fdisk you can make the win95 partition a BSD partition. and add the space from the 2nd (BSD) part to the first (now BSD) and delete the 2nd Since in this version of BSD, the offsets of the BSD partitions are given in ABSOLUTE SECTOR OFFSETS from the beginning of the device, the slices should all still be right in the table at the beginning. Make sure it's set active (flags 0x80) 3/ try boot it. it SHOULD boot as before. 4/ running disklabel you should see that ther is a big empty space at teh beginning of the BSD slice. using disklabel -e wd0 edit the disklabel to point an unused partition to the empty space 5/ newfs it 6/ mount it (there are other variants of this scheme) julian On Wed, 13 May 1998, BEAUPRE Antoine wrote: > Hi! > > I would like to know something... If by any hazard, I happen to delete my > Win95 partition, can I recuperate the disk space and make it "melt" into , > say, the /usr partition? > > I know about ccd, and I'd like a cleaner solution. > > thanx! > > +-----------------------------------+ > | Free the world from businessmen | > | Free yourself from your money | > +-----------------------------------+ > Free the web. > Spidey > > visit: http://www.JSP.UMontreal.CA/~beaupran > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message