How to merge an unused partition.

Emanuel Strobl emanuel.strobl at gmx.net
Sun Mar 13 07:00:49 PST 2005


Am Sonntag, 13. März 2005 05:35 schrieb Chris:
> Greg 'groggy' Lehey wrote:
> >On Saturday, 12 March 2005 at 21:09:47 -0600, Chris wrote:
> >>Heya folks - here's my issue; I removed a OS from my drive and that freed
> >>up 10 gig. I wish to "merge" the free 10 gig into my FreeBSD file system.
> >>
> >>Here's what she looks like via fdisk:
> >>
> >>Disk name:      ad1                                    FDISK Partition
> >>Editor
> >>DISK Geometry:  9729 cyls/255 heads/63 sectors = 156296385 sectors
> >> (76316MB)
> >>
> >>Offset       Size(MB)        End     Name  PType       Desc  Subtype
> >>
> >>        0      10236   20964824        -     12     unused        0
> >> 20964825      66079  156296384    ad1s1      8    freebsd      165
> >>156296385          2  156301487        -     12     unused        0
> >>
> >>
> >>So - what do I need to do to take the 1st line and merge it into the
> >>existing system?
> >
> >That depends on what you want to do with the space.  It would be
> >relatively complicated (but not impossible) to merge it into an
> >existing file system.  If you just want to create a another file
> >system, just create a new partition in the partition editor, set it to
> >tye 165, then in the label editor create one (or just possibly more
> >than one) file system.  Both here and in the label editor, use the W
> >command to actually write the stuff to disk.
> >
> >>Sorry for the formatting
> >
> >Looks fine to me.
> >
> >Greg
>
> I assume doing this while in single user mode. Otherwise I am getting an
> error: unable to write to disk.

If you want to modify a running fs you can set kern.geom.debugflags to 16.

-Harry

> But as you mentioned,. I would prefer to somehow merge it into the
> current FBSD file system.
>
>
> Chris
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050313/98d597af/attachment.bin


More information about the freebsd-questions mailing list