Professional Web Applications Themes

How to merge an unused partition. - FreeBSD

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 ...

  1. #1

    Default How to merge an unused partition.

    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?

    Sorry for the formatting

    Chris Guest

  2. #2

    Default Re: How to merge an unused partition.

    On Saturday, 12 March 2005 at 21:09:47 -0600, Chris wrote: 

    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.
     

    Looks fine to me.

    Greg
    --
    When replying to this message, please copy the original recipients.
    If you don't, I may ignore the reply or reply to the original recipients.
    For more information, see http://www.lemis.com/questions.html
    See complete headers for address and phone numbers.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.6 (FreeBSD)

    iD8DBQFCM8HwIubykFB6QiMRAnYBAJ4suqLTujt0+NMwhDMp2Y ioRnwdMgCdEpd3
    gcTtl/jdD7wmNufDNmk4T6g=
    =hCwE
    -----END PGP SIGNATURE-----

    Greg Guest

  3. #3

    Default Re: How to merge an unused partition.

    Greg 'groggy' Lehey wrote:
     
    >
    >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.
    >
    >

    >
    >Looks fine to me.
    >
    >Greg
    >
    >[/ref]
    I assume doing this while in single user mode. Otherwise I am getting an
    error: unable to write to disk.
    But as you mentioned,. I would prefer to somehow merge it into the
    current FBSD file system.


    Chris
    Chris Guest

  4. #4

    Default Re: How to merge an unused partition.

    Chris wrote: 
    >>
    >>
    >> 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.
    >>
    >>
    >> 
    >>
    >>
    >> Looks fine to me.
    >>
    >> Greg
    >>
    >>[/ref]
    > I assume doing this while in single user mode. Otherwise I am getting an
    > error: unable to write to disk.
    > But as you mentioned,. I would prefer to somehow merge it into the
    > current FBSD file system.
    >
    >
    > Chris[/ref]

    I think growfs(8) will do what your after. However if it all goes wrong
    and your data implodes.... ;)

    Chris
    Chris Guest

  5. #5

    Default Re: How to merge an unused partition.

    On Sat, Mar 12, 2005 at 09:09:47PM -0600, Chris wrote: 

    The big problem with merging it in is that everything is designed to
    grow at the end, not at the beginning. growfs can be used to extend a
    filesystem afterwards, but not before.

    One idea that might work is to use some kind of volume management system
    like vinum. If your current system already used that, this would be a
    simple matter. What you could do though it to setup vinum on the unused
    partition and start moving data over. Eventually you could extend vinum
    with the second partition once all the data is moved over. If you
    aren't using more than about 9 gigs total on freebsd right now, then you
    just have to move data over once.
     

    --
    I sense much NT in you.
    NT leads to Bluescreen.
    Bluescreen leads to downtime.
    Downtime leads to suffering.
    NT is the path to the darkside.
    Powerful Unix is.

    Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
    Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.1 (GNU/Linux)

    iD8DBQFCNAegbTXoRwEYo9IRArcXAJ4vF6pfkzk3QQIWJeGViz Djgru5gACfZeHh
    ExpaXv9GV+Mx+aHYJB+aDEE=
    =NisJ
    -----END PGP SIGNATURE-----

    Loren Guest

  6. #6

    Default Re: How to merge an unused partition.

    Am Sonntag, 13. März 2005 05:35 schrieb Chris: 
    > >
    > >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.
    > > 
    > >
    > >Looks fine to me.
    > >
    > >Greg[/ref]
    >
    > I assume doing this while in single user mode. Otherwise I am getting an
    > error: unable to write to disk.[/ref]

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

    -Harry
     

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQBCNFWVBylq0S4AzzwRAsYMAKCOTxg8JAREHVZE/nLPtL5/hN16CACfWGaH
    yIgKT0fgrgJ9GvJJASZUR/I=
    =EMNy
    -----END PGP SIGNATURE-----

    Emanuel Guest

Similar Threads

  1. Unused files....
    By Nazgyl in forum Dreamweaver AppDev
    Replies: 2
    Last Post: April 27th, 09:14 PM
  2. Photoshop 7 Merge Linked vs. Merge Down
    By Seth_Thompson@adobeforums.com in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 0
    Last Post: February 25th, 08:14 PM
  3. Merge wont Merge Gradients?
    By Jason_Howard@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 1
    Last Post: February 13th, 07:52 PM
  4. Getting rid of unused subforms
    By dabeck@vcu.edu in forum Microsoft Access
    Replies: 4
    Last Post: August 23rd, 01:11 PM
  5. Old unused APS film
    By Ampersand in forum Photography
    Replies: 3
    Last Post: July 31st, 11:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139