Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jul 1998 16:19:57 -0400 (EDT)
From:      Spidey <beaupran@JSP.UMontreal.CA>
To:        Julian Elischer <julian@whistle.com>
Cc:        Greg Lehey <grog@lemis.com>, Question=answer <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Howto: UNUSED data on HD, Melting 2 partitions into 1
Message-ID:  <Pine.BSF.3.96.980719161630.29114C-100000@outpost.nada.org>
In-Reply-To: <Pine.BSF.3.95.980718141150.21408A-100000@current1.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <UNUSED>)
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980719161630.29114C-100000>