Date: Sat, 3 Mar 2018 15:13:34 +0800 From: "Mars G. Miro" <spry@anarchy.in.the.ph> To: Warner Losh <imp@bsdimp.com>, Martin Simmons <martin@lispworks.com> Cc: FreeBSD FS <freebsd-fs@freebsd.org> Subject: Re: growfs only works on GPT partitioning schemes? Message-ID: <5A9A4B1E.8070206@anarchy.in.the.ph> In-Reply-To: <CANCZdfrSy4N7dXj%2BNRHuCeUj1Fp3xm2_T06BvpCpL3qRsGSS-A@mail.gmail.com> References: <CADRRZEr%2BaggE3MHNK9DA6f1Jq9T=buNqiRy2Z%2B5N7=N%2BR_PAWA@mail.gmail.com> <201802261411.w1QEBRt1002026@higson.cam.lispworks.com> <CANCZdfrSy4N7dXj%2BNRHuCeUj1Fp3xm2_T06BvpCpL3qRsGSS-A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 02/26/18 22:30, Warner Losh wrote: > > On Mon, Feb 26, 2018 at 7:11 AM, Martin Simmons <martin@lispworks.com > <mailto:martin@lispworks.com>> wrote: > > >>>>> On Mon, 26 Feb 2018 11:55:10 +0800, Mars G Miro said: > > > > It seems that growfs only works on GPT partitioned schemes ? > > > > When I first installed my FreeBSD, I unfortunately chose BSD during the > > FS creation. Now that I ran out of space, I wanted to increase the > > filesystem size. Successfully did so in Virtualbox but after rebooting, the > > HD doesn't see the new allocated space. It has another virtual HD, one > > created with GPT and I was able to increase it via growfs. > > For the BSD scheme, I think you also have to resize the slice (i.e. > the MBR > entry) and then resize the BSD partition within the slice. > > > You do. The /etc/rc.d script that does resize on boot does that > automatically, but we have no other automation for the process. > > Warner You guys have any idea how to resize the slice ? I have 2 HDs, both have already been increased (in VirtualBox). The BSD partitioned scheme below doesn't see the newly allocated disk space, only the GPT one. camcontrol reprobe / gpart recover / etc doesn't do anything. mars@fbsd11vm1:~ % gpart show => 0 83886080 ada0 BSD (40G) 0 4194304 1 freebsd-ufs (2.0G) 4194304 16777216 2 freebsd-ufs (8.0G) 20971520 62914559 4 freebsd-ufs (30G) 83886079 1 - free - (512B) => 40 104857520 ada1 GPT (60G) [CORRUPT] 40 12582912 1 freebsd-swap (6.0G) 12582952 92274608 2 freebsd-ufs (44G) I think I might just have to dump/restore this to another GPT virtual HD then. Thanks. -- I sent a message to another time, But as the days unwind -- this I just can't believe, I sent a message to another plane, Maybe it's all a game -- but this I just can't conceive. ... I met someone who looks at lot like you, She does the things you do, but she is an IBM. She's only programmed to be very nice, But she's as cold as ice, whenever I get too near, She tells me that she likes me very much, But when I try to touch, she makes it all too clear. ... I realize that it must seem so strange, That time has rearranged, but time has the final word, She knows I think of you, she reads my mind, She tries to be unkind, she knows nothing of our world. -- ELO, "Yours Truly, 2095"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5A9A4B1E.8070206>